Refactor button colors for light and fan states: Update to a consistent color scheme for better visibility
This commit is contained in:
@@ -85,7 +85,7 @@ display:
|
|||||||
|
|
||||||
// Button 2: Light 1 (top-right)
|
// Button 2: Light 1 (top-right)
|
||||||
if (id(light1_state)) {
|
if (id(light1_state)) {
|
||||||
it.filled_rectangle(170, 50, 130, 80, Color(0xFFC107));
|
it.filled_rectangle(170, 50, 130, 80, Color(0x4CAF50));
|
||||||
} else {
|
} else {
|
||||||
it.filled_rectangle(170, 50, 130, 80, Color(0x424242));
|
it.filled_rectangle(170, 50, 130, 80, Color(0x424242));
|
||||||
}
|
}
|
||||||
@@ -93,7 +93,7 @@ display:
|
|||||||
|
|
||||||
// Button 3: Light 2 (bottom-left)
|
// Button 3: Light 2 (bottom-left)
|
||||||
if (id(light2_state)) {
|
if (id(light2_state)) {
|
||||||
it.filled_rectangle(20, 150, 130, 80, Color(0xFFC107));
|
it.filled_rectangle(20, 150, 130, 80, Color(0x4CAF50));
|
||||||
} else {
|
} else {
|
||||||
it.filled_rectangle(20, 150, 130, 80, Color(0x424242));
|
it.filled_rectangle(20, 150, 130, 80, Color(0x424242));
|
||||||
}
|
}
|
||||||
@@ -101,7 +101,7 @@ display:
|
|||||||
|
|
||||||
// Button 4: Fan (bottom-right)
|
// Button 4: Fan (bottom-right)
|
||||||
if (id(fan_state)) {
|
if (id(fan_state)) {
|
||||||
it.filled_rectangle(170, 150, 130, 80, Color(0x2196F3));
|
it.filled_rectangle(170, 150, 130, 80, Color(0x4CAF50));
|
||||||
} else {
|
} else {
|
||||||
it.filled_rectangle(170, 150, 130, 80, Color(0x424242));
|
it.filled_rectangle(170, 150, 130, 80, Color(0x424242));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user