opt: get theme color

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-28 21:32:30 +08:00
parent 451a84e696
commit ca993df0c6
149 changed files with 4415 additions and 4803 deletions

View File

@@ -8,6 +8,7 @@ class RecommendSetting extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Scaffold(
appBar: showAppBar == false ? null : AppBar(title: const Text('推荐流设置')),
body: ListView(
@@ -20,9 +21,8 @@ class RecommendSetting extends StatelessWidget {
'* 其它(如热门视频、手动搜索、链接跳转等)均不受过滤器影响。\n'
'* 设定较严苛的条件可导致推荐项数锐减或多次请求,请酌情选择。\n'
'* 后续可能会增加更多过滤条件,敬请期待。',
style: Theme.of(context).textTheme.labelSmall!.copyWith(
color:
Theme.of(context).colorScheme.outline.withOpacity(0.7)),
style: theme.textTheme.labelSmall!
.copyWith(color: theme.colorScheme.outline.withOpacity(0.7)),
),
),
SizedBox(height: MediaQuery.paddingOf(context).bottom + 80),