Skip to content

Commit b5be071

Browse files
committed
style(server_settings_page): 根据主题亮度调整应用栏颜色和文本样式
1 parent fbc47e7 commit b5be071

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

lib/pages/server_settings_page.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,21 @@ class _SiteEditPageState extends State<SiteEditPage> {
888888
appBar: AppBar(
889889
title: Text(widget.site != null ? '编辑服务器' : '添加服务器'),
890890
actions: const [QbSpeedIndicator()],
891+
backgroundColor: Theme.of(context).brightness == Brightness.light
892+
? Theme.of(context).colorScheme.primary
893+
: Theme.of(context).colorScheme.surface,
894+
iconTheme: IconThemeData(
895+
color: Theme.of(context).brightness == Brightness.light
896+
? Theme.of(context).colorScheme.onPrimary
897+
: Theme.of(context).colorScheme.onSurface,
898+
),
899+
titleTextStyle: TextStyle(
900+
color: Theme.of(context).brightness == Brightness.light
901+
? Theme.of(context).colorScheme.onPrimary
902+
: Theme.of(context).colorScheme.onSurface,
903+
fontSize: 20,
904+
fontWeight: FontWeight.w500,
905+
),
891906
),
892907
body: Form(
893908
key: _formKey,

0 commit comments

Comments
 (0)