mod: disable palette when using dyn theme

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-13 12:48:57 +08:00
parent 5707c08011
commit ef7b8c4c7f

View File

@@ -81,12 +81,15 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
subtitle: Obx(() => Text('当前模式:${ctr.themeType.value.description}', subtitle: Obx(() => Text('当前模式:${ctr.themeType.value.description}',
style: subTitleStyle)), style: subTitleStyle)),
), ),
ListTile( Obx(
() => ListTile(
enabled: ctr.type.value != 0,
title: Row( title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
const Text('调色板风格'), const Text('调色板风格'),
PopupMenuButton( PopupMenuButton(
enabled: ctr.type.value != 0,
initialValue: _dynamicSchemeVariant, initialValue: _dynamicSchemeVariant,
onSelected: (item) async { onSelected: (item) async {
_dynamicSchemeVariant = item; _dynamicSchemeVariant = item;
@@ -108,14 +111,24 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
style: TextStyle( style: TextStyle(
height: 1, height: 1,
fontSize: 13, fontSize: 13,
color: Theme.of(context).colorScheme.primary, color: ctr.type.value == 0
? Theme.of(context)
.colorScheme
.outline
.withOpacity(0.8)
: Theme.of(context).colorScheme.secondary,
), ),
strutStyle: StrutStyle(leading: 0, height: 1), strutStyle: StrutStyle(leading: 0, height: 1),
), ),
Icon( Icon(
size: 20, size: 20,
Icons.keyboard_arrow_right, Icons.keyboard_arrow_right,
color: Theme.of(context).colorScheme.primary, color: ctr.type.value == 0
? Theme.of(context)
.colorScheme
.outline
.withOpacity(0.8)
: Theme.of(context).colorScheme.secondary,
) )
], ],
), ),
@@ -132,6 +145,7 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
style: TextStyle(fontSize: 12), style: TextStyle(fontSize: 12),
), ),
), ),
),
Obx( Obx(
() => RadioListTile( () => RadioListTile(
value: 0, value: 0,