mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
46 lines
No EOL
1.7 KiB
Text
46 lines
No EOL
1.7 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
import "fonts/Roboto-Regular.ttf";
|
|
import "fonts/Roboto-Bold.ttf";
|
|
|
|
export global Theme := {
|
|
// brushes
|
|
property <brush> window-background: #2C2F36;
|
|
property <brush> background-regular: #0025FF;
|
|
property <brush> background-hover: background-regular.darker(0.2);
|
|
property <brush> background-pressed: background-regular.darker(0.4);
|
|
property <brush> background-selected: foreground;
|
|
property <brush> background-selected-hover: background-selected.darker(0.2);
|
|
property <brush> background-selected-pressed: background-selected.darker(0.4);
|
|
property <brush> foreground: #FFFFFF;
|
|
property <brush> foreground-hover: foreground.darker(0.2);
|
|
property <brush> foreground-pressed: foreground.darker(0.4);
|
|
property <brush> foreground-selected: background-regular;
|
|
property <brush> foreground-selected-hover: foreground-selected.darker(0.2);
|
|
property <brush> foreground-selected-pressed: foreground-selected.darker(0.4);
|
|
|
|
// durations
|
|
property <duration> duration-fast: 100ms;
|
|
property <duration> duration-regular: 250ms;
|
|
|
|
// radius
|
|
property <length> radius-regular: 16px;
|
|
|
|
// sizes
|
|
property <length> size-small: 24px;
|
|
property <length> size-regular: 32px;
|
|
property <length> size-medium: 128px;
|
|
property <length> size-big: 170px;
|
|
|
|
// spacings
|
|
property <length> spacing-regular: 4px;
|
|
property <length> spacing-medium: 8px;
|
|
|
|
// typo
|
|
property <string> font-family: "Roboto";
|
|
property <length> font-size-regular: 12px;
|
|
property <length> font-size-medium: 28px;
|
|
property <int> font-weight-regular: 400;
|
|
property <int> font-weight-bold: 900;
|
|
} |