aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Erias <felipeerias@igalia.com>2021-12-01 14:43:33 +0900
committerFelipe Erias <felipeerias@igalia.com>2021-12-01 14:43:33 +0900
commit77ba5c09a4d90a7fa6585b6d1dbbe279b3d68593 (patch)
tree754787b5eeab899b97c0f1d9fe0bf775a3c349ae
parent10187dc068e85865118410f7f26482c61c006cee (diff)
Colors and styles
-rw-r--r--lib/homescreen.dart6
-rw-r--r--lib/page_hvac.dart16
2 files changed, 13 insertions, 9 deletions
diff --git a/lib/homescreen.dart b/lib/homescreen.dart
index 29702aa..3c1934f 100644
--- a/lib/homescreen.dart
+++ b/lib/homescreen.dart
@@ -136,7 +136,11 @@ class _HomescreenState extends State<Homescreen> with TickerProviderStateMixin {
],
),
),
- const VerticalDivider(thickness: 1, width: 1),
+ VerticalDivider(
+ thickness: 1,
+ width: 1,
+ color: Colors.grey.shade900,
+ ),
// This is the main content.
Expanded(
child: AnimatedSwitcher(
diff --git a/lib/page_hvac.dart b/lib/page_hvac.dart
index 47aea03..2b5b825 100644
--- a/lib/page_hvac.dart
+++ b/lib/page_hvac.dart
@@ -102,7 +102,7 @@ String circulationInactive = 'images/HMI_HVAC_Circulation_Inactive.png';
// Get from API
bool leftChairSelected = true;
bool rightChairSelected = true;
-bool ACSelected = true;
+bool acSelected = true;
bool autoSelected = true;
bool circulationSelected = true;
@@ -192,18 +192,18 @@ class _HVACPageState extends State<HVACPage> {
margin: EdgeInsets.all(sizeHelper.defaultPadding),
decoration: BoxDecoration(
border: Border.all(
- color: ACSelected ? Colors.green : Colors.grey,
- ),
- borderRadius: BorderRadius.circular(20)),
+ color: acSelected ? Colors.green : Colors.grey,
+ ),
+ ),
child: OutlinedButton(
onPressed: () {
setState(() {
- ACSelected = !ACSelected;
+ acSelected = !acSelected;
});
},
child: Text(
"A / C",
- style: ACSelected ? buttonTextStyle : unselectedButtonTextStyle,
+ style: acSelected ? buttonTextStyle : unselectedButtonTextStyle,
),
),
),
@@ -215,7 +215,7 @@ class _HVACPageState extends State<HVACPage> {
border: Border.all(
color: autoSelected ? Colors.green : Colors.grey,
),
- borderRadius: BorderRadius.circular(20)),
+ ),
child: OutlinedButton(
onPressed: () {
setState(() {
@@ -237,7 +237,7 @@ class _HVACPageState extends State<HVACPage> {
border: Border.all(
color: circulationSelected ? Colors.green : Colors.grey,
),
- borderRadius: BorderRadius.circular(20)),
+ ),
child: OutlinedButton(
onPressed: () {
setState(() {