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