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,
+1 -1
View File
@@ -1,7 +1,7 @@
name: pangolin_vpn
description: 穿山甲 · Pangolin — 极简、稳定、跨平台网络加速客户端。
publish_to: "none"
version: 1.0.24+25
version: 1.0.25+26
environment:
sdk: ^3.5.0
+1 -1
View File
@@ -3,7 +3,7 @@
; 前置: 先在 client/ 跑 `flutter build windows`(Release),产物在
; ..\..\build\windows\x64\runner\Release
#define MyAppName "穿山甲 Pangolin"
#define MyAppVersion "1.0.24"
#define MyAppVersion "1.0.25"
#define MyAppPublisher "Pangolin"
#define MyAppExeName "pangolin_vpn.exe"
#define BuildDir "..\..\build\windows\x64\runner\Release"