1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
3
4export { Button } from "button.slint";
5export { ScrollView } from "scrollview.slint";
6export { ListItem } from "components.slint";
7export { LineEdit } from "lineedit.slint";
8import { FluentPalette } from "styling.slint";
9export { MenuBarItem, MenuBar, MenuFrame, MenuItem } from "menu.slint";
10
11export global StyleMetrics {
12 out property <length> layout-spacing: 8px;
13 out property <length> layout-padding: 8px;
14 out property <length> text-cursor-width: 1px;
15 out property <color> window-background: FluentPalette.background;
16 out property <color> default-text-color: FluentPalette.foreground;
17 out property <color> textedit-background: FluentPalette.background;
18 out property <color> textedit-text-color: FluentPalette.foreground;
19 out property <color> textedit-background-disabled: FluentPalette.control-disabled;
20 out property <color> textedit-text-color-disabled: FluentPalette.text-disabled;
21 out property <bool> dark-color-scheme: Palette.color-scheme == ColorScheme.dark;
22 out property <string> style-name: "fluent";
23}
24
25export global Palette {
26 out property <brush> background: FluentPalette.background;
27 out property <brush> foreground: FluentPalette.foreground;
28 out property <brush> alternate-background: FluentPalette.alternate-background;
29 out property <brush> alternate-foreground: FluentPalette.alternate-foreground;
30 out property <brush> control-background: FluentPalette.control-background;
31 out property <brush> control-foreground: FluentPalette.control-foreground;
32 out property <brush> accent-background: FluentPalette.accent-background;
33 out property <brush> accent-foreground: FluentPalette.accent-foreground;
34 out property <brush> selection-background: FluentPalette.selection-background;
35 out property <brush> selection-foreground: FluentPalette.selection-foreground;
36 out property <brush> border: FluentPalette.border;
37 in-out property <ColorScheme> color-scheme <=> FluentPalette.color-scheme;
38}
39