Evan's Blog
EvanZhu0721 / 公开仓库

SBMS

镜像已同步

SBMS complete the calculation rules for the default logical desktop topology relationship and the physical dimensions of the displays in the Windows multi-screen collaboration system.

上游 GitHub
READ-ONLY MIRROR

README、源码与 Release 已保存到本站;源码视图固定到 commit a37d6c4b。

main/ root / ui
a37d6c4b· 固定源码快照
ui/theme.slint2.1 KB
1import { Palette } from "std-widgets.slint";
2
3// Stable Material 3 semantic roles. The platform palette selects only the
4// light/dark scheme; every SBMS semantic brush is fixed so Windows accent-color
5// refreshes cannot change the application's colors after startup.
6export global MdTokens {
7 private property <bool> dark-color-scheme: Palette.color-scheme == ColorScheme.dark;
8
9 out property <brush> surface: dark-color-scheme ? #2a282d : #f8f3f9;
10 out property <brush> on-surface: dark-color-scheme ? #e6e1e5 : #1c1b1f;
11 out property <brush> surface-container: dark-color-scheme ? #1c1b1f : #fffbfe;
12 out property <brush> on-surface-variant: dark-color-scheme ? #e6e1e5 : #1c1b1f;
13 out property <brush> primary: dark-color-scheme ? #cacaca : #343236;
14 out property <brush> on-primary: dark-color-scheme ? #343236 : #ffffff;
15 out property <brush> primary-container: dark-color-scheme ? #4f378b : #eaddff;
16 out property <brush> on-primary-container: dark-color-scheme ? #eaddff : #21005d;
17 out property <brush> error: dark-color-scheme ? #ffb4ab : #ba1a1a;
18 out property <brush> error-container: dark-color-scheme ? #93000a : #ffdad6;
19 out property <brush> on-error-container: dark-color-scheme ? #ffdad6 : #410002;
20 out property <brush> success-container: dark-color-scheme ? #173824 : #d5f5df;
21 out property <brush> on-success-container: dark-color-scheme ? #8fdaa5 : #155c2d;
22 out property <brush> outline-variant: dark-color-scheme ? #938f99 : #79747e;
23
24 out property <length> space-1: 8px;
25 out property <length> space-2: 16px;
26 out property <length> shape-medium: 12px;
27 out property <length> shape-large: 16px;
28 out property <length> shape-full: 999px;
29 out property <length> button-radius: 20px;
30 out property <length> target: 48px;
31 out property <length> type-title-large: 22px;
32 out property <length> type-title-medium: 16px;
33 out property <length> type-body-large: 16px;
34 out property <length> type-body-medium: 14px;
35 out property <length> type-body-small: 12px;
36 out property <int> weight-medium: 500;
37}
38