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}',
style: subTitleStyle)),
),
ListTile(
Obx(
() => ListTile(
enabled: ctr.type.value != 0,
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
const Text('调色板风格'),
PopupMenuButton(
enabled: ctr.type.value != 0,
initialValue: _dynamicSchemeVariant,
onSelected: (item) async {
_dynamicSchemeVariant = item;
@@ -108,14 +111,24 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
style: TextStyle(
height: 1,
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),
),
Icon(
size: 20,
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),
),
),
),
Obx(
() => RadioListTile(
value: 0,