theme changes
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good
This commit is contained in:
parent
4a598d00d1
commit
69ce560728
@ -1,3 +1,4 @@
|
|||||||
cupertino
|
cupertino
|
||||||
cupertinoicons
|
cupertinoicons
|
||||||
|
fromargb
|
||||||
onetwothree
|
onetwothree
|
@ -27,10 +27,14 @@ class MyApp extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
themeMode: ThemeMode.dark,
|
themeMode: ThemeMode.dark,
|
||||||
darkTheme: ThemeData(
|
darkTheme: ThemeData(
|
||||||
|
useMaterial3: true,
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
colorScheme: ColorScheme.fromSeed(
|
colorScheme: ColorScheme.fromSeed(
|
||||||
brightness: Brightness.dark,
|
brightness: Brightness.dark,
|
||||||
|
onSurface: Colors.white70,
|
||||||
seedColor: Colors.deepOrange,
|
seedColor: Colors.deepOrange,
|
||||||
|
surface: Color.fromARGB(255, 32, 33, 36),
|
||||||
|
surfaceContainerLow: Color.fromARGB(255, 41, 42, 45),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
initialRoute: '/',
|
initialRoute: '/',
|
||||||
|
@ -24,7 +24,7 @@ class _MountWidgetState extends State<MountWidget> {
|
|||||||
final textColor = Theme.of(context).colorScheme.onSurface;
|
final textColor = Theme.of(context).colorScheme.onSurface;
|
||||||
final subTextColor =
|
final subTextColor =
|
||||||
Theme.of(context).brightness == Brightness.dark
|
Theme.of(context).brightness == Brightness.dark
|
||||||
? Colors.white70
|
? Colors.white38
|
||||||
: Colors.black87;
|
: Colors.black87;
|
||||||
|
|
||||||
final isActive = mount.state == Icons.toggle_on;
|
final isActive = mount.state == Icons.toggle_on;
|
||||||
@ -61,7 +61,8 @@ class _MountWidgetState extends State<MountWidget> {
|
|||||||
trailing: IconButton(
|
trailing: IconButton(
|
||||||
icon: Icon(
|
icon: Icon(
|
||||||
mount.state,
|
mount.state,
|
||||||
color: isActive ? textColor : subTextColor,
|
color:
|
||||||
|
isActive ? Color.fromARGB(255, 153, 86, 66) : subTextColor,
|
||||||
),
|
),
|
||||||
onPressed:
|
onPressed:
|
||||||
_enabled
|
_enabled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user