mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-01 16:48:16 +08:00
mod: disable palette when using dyn theme
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user