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:
wangjia
2026-06-29 19:39:00 +08:00
parent e89f3de748
commit 828bb4ca94
3 changed files with 15 additions and 2 deletions
+13
View File
@@ -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,