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
|
||||
cupertinoicons
|
||||
fromargb
|
||||
onetwothree
|
@ -27,10 +27,14 @@ class MyApp extends StatelessWidget {
|
||||
),
|
||||
themeMode: ThemeMode.dark,
|
||||
darkTheme: ThemeData(
|
||||
useMaterial3: true,
|
||||
brightness: Brightness.dark,
|
||||
colorScheme: ColorScheme.fromSeed(
|
||||
brightness: Brightness.dark,
|
||||
onSurface: Colors.white70,
|
||||
seedColor: Colors.deepOrange,
|
||||
surface: Color.fromARGB(255, 32, 33, 36),
|
||||
surfaceContainerLow: Color.fromARGB(255, 41, 42, 45),
|
||||
),
|
||||
),
|
||||
initialRoute: '/',
|
||||
|
@ -24,7 +24,7 @@ class _MountWidgetState extends State<MountWidget> {
|
||||
final textColor = Theme.of(context).colorScheme.onSurface;
|
||||
final subTextColor =
|
||||
Theme.of(context).brightness == Brightness.dark
|
||||
? Colors.white70
|
||||
? Colors.white38
|
||||
: Colors.black87;
|
||||
|
||||
final isActive = mount.state == Icons.toggle_on;
|
||||
@ -61,7 +61,8 @@ class _MountWidgetState extends State<MountWidget> {
|
||||
trailing: IconButton(
|
||||
icon: Icon(
|
||||
mount.state,
|
||||
color: isActive ? textColor : subTextColor,
|
||||
color:
|
||||
isActive ? Color.fromARGB(255, 153, 86, 66) : subTextColor,
|
||||
),
|
||||
onPressed:
|
||||
_enabled
|
||||
|
Loading…
x
Reference in New Issue
Block a user