style(client): toast 跟随明暗主题(1.0.25)
真相源/主题里原无 toast 定义,SnackBar 用 Material 默认黑底,明亮主题下突兀。 PangolinTheme 加 snackBarTheme:surface 底 + fg1 字 + 描边圆角(与卡片同风格)、floating, 浅色得浅 toast、深色得深 toast。自动连接的 toast 随之适配。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -289,6 +289,19 @@ class PangolinTheme {
|
||||
borderRadius: BorderRadius.circular(PangolinRadius.lg),
|
||||
),
|
||||
),
|
||||
// toast / SnackBar:跟随明暗主题(surface 底 + fg1 字 + 描边圆角,与卡片同风格),
|
||||
// 不再用 Material 默认的突兀黑底。
|
||||
snackBarTheme: SnackBarThemeData(
|
||||
backgroundColor: s.surface,
|
||||
contentTextStyle: PangolinFonts.manrope(fontWeight: FontWeight.w600, fontSize: 14)
|
||||
.copyWith(color: s.fg1),
|
||||
behavior: SnackBarBehavior.floating,
|
||||
elevation: 6,
|
||||
shape: RoundedRectangleBorder(
|
||||
side: BorderSide(color: s.border),
|
||||
borderRadius: BorderRadius.circular(PangolinRadius.md),
|
||||
),
|
||||
),
|
||||
inputDecorationTheme: InputDecorationTheme(
|
||||
filled: true,
|
||||
fillColor: s.bg,
|
||||
|
||||
Reference in New Issue
Block a user