Added brightness to keep alive popup

This commit is contained in:
JHubi1 2024-09-07 23:20:41 +02:00
parent 43d085ae8e
commit 6c84f51267
No known key found for this signature in database
GPG Key ID: 7BF82570CBBBD050
1 changed files with 12 additions and 9 deletions

View File

@ -248,15 +248,18 @@ class _ScreenSettingsInterfaceState extends State<ScreenSettingsInterface> {
return Padding(
padding: const EdgeInsets.all(16),
child: Theme(
data:
(prefs?.getBool("useDeviceTheme") ??
false)
? Theme.of(context)
: ThemeData.from(
colorScheme:
ColorScheme.fromSeed(
seedColor:
Colors.black)),
data: (prefs?.getBool(
"useDeviceTheme") ??
false)
? Theme.of(context)
: ThemeData.from(
colorScheme:
ColorScheme.fromSeed(
seedColor: Colors.black,
brightness:
Theme.of(context)
.colorScheme
.brightness)),
child: DurationPicker(
duration: Duration(
seconds: int.parse(prefs!