mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -171,13 +171,13 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
|
||||
width: 46,
|
||||
height: 46,
|
||||
decoration: BoxDecoration(
|
||||
color: e['color'].withValues(alpha: 0.8),
|
||||
color: e['color'].withOpacity(0.8),
|
||||
borderRadius: BorderRadius.circular(50),
|
||||
border: Border.all(
|
||||
width: 2,
|
||||
color: ctr.currentColor.value == index
|
||||
? Colors.black
|
||||
: e['color'].withValues(alpha: 0.8),
|
||||
: e['color'].withOpacity(0.8),
|
||||
),
|
||||
),
|
||||
child: AnimatedOpacity(
|
||||
|
||||
@@ -72,7 +72,7 @@ class _FontSizeSelectPageState extends State<FontSizeSelectPage> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.primary
|
||||
.withValues(alpha: 0.3))),
|
||||
.withOpacity(0.3))),
|
||||
color: Theme.of(context).colorScheme.surface,
|
||||
),
|
||||
child: Row(
|
||||
|
||||
@@ -220,8 +220,8 @@ class _RecommendSettingState extends State<RecommendSetting> {
|
||||
...defDurations,
|
||||
if (defDurations.contains(minDurationForRcmd).not)
|
||||
minDurationForRcmd,
|
||||
-1
|
||||
]..sort(),
|
||||
-1
|
||||
].map((e) {
|
||||
if (e == -1) {
|
||||
return {'title': '自定义', 'value': e};
|
||||
@@ -271,7 +271,7 @@ class _RecommendSettingState extends State<RecommendSetting> {
|
||||
Get.back();
|
||||
updateDuration(int.tryParse(duration) ?? 0);
|
||||
},
|
||||
child: const Text('确定'),
|
||||
child: Text('确定'),
|
||||
),
|
||||
],
|
||||
);
|
||||
@@ -337,10 +337,8 @@ class _RecommendSettingState extends State<RecommendSetting> {
|
||||
'* 设定较严苛的条件可导致推荐项数锐减或多次请求,请酌情选择。\n'
|
||||
'* 后续可能会增加更多过滤条件,敬请期待。',
|
||||
style: Theme.of(context).textTheme.labelSmall!.copyWith(
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.outline
|
||||
.withValues(alpha: 0.7)),
|
||||
color:
|
||||
Theme.of(context).colorScheme.outline.withOpacity(0.7)),
|
||||
),
|
||||
)
|
||||
],
|
||||
|
||||
@@ -362,14 +362,14 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
|
||||
Widget get _divider => SliverToBoxAdapter(
|
||||
child: Divider(
|
||||
height: 1,
|
||||
color: Theme.of(context).colorScheme.outline.withValues(alpha: 0.1),
|
||||
color: Theme.of(context).colorScheme.outline.withOpacity(0.1),
|
||||
),
|
||||
);
|
||||
|
||||
Widget get _dividerL => SliverToBoxAdapter(
|
||||
child: Divider(
|
||||
thickness: 16,
|
||||
color: Theme.of(context).colorScheme.outline.withValues(alpha: 0.1),
|
||||
color: Theme.of(context).colorScheme.outline.withOpacity(0.1),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -529,8 +529,7 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
|
||||
),
|
||||
separatorBuilder: (context, index) => Divider(
|
||||
height: 1,
|
||||
color:
|
||||
Theme.of(context).colorScheme.outline.withValues(alpha: 0.1),
|
||||
color: Theme.of(context).colorScheme.outline.withOpacity(0.1),
|
||||
),
|
||||
),
|
||||
_dividerL,
|
||||
|
||||
Reference in New Issue
Block a user