mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-29 13:24:48 +00:00

* Apply the "Roboto" family by default to the Window. * Don't use "Roboto XXX" as that is not the name that's encoded as family name in the TrueType fonts. The variants should be chose based on the weight, not the family name. * Don't apply the font family in the MD's LineEdit - that should not be necessary anymore.
27 lines
1 KiB
Text
27 lines
1 KiB
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
// widget imports
|
|
import { Button } from "widget-button.slint";
|
|
import { CheckBox } from "widget-checkbox.slint";
|
|
import { ScrollView } from "widget-scrollview.slint";
|
|
import { md } from "md.slint";
|
|
|
|
export { Button, CheckBox, ScrollView }
|
|
|
|
export global StyleMetrics := {
|
|
property<length> layout-spacing: 8px;
|
|
property<length> layout-padding: 8px;
|
|
property<length> text-cursor-width: 2px;
|
|
|
|
property<color> default-text-color: md.sys.color.on-surface;
|
|
property<brush> textedit-background: transparent;
|
|
property<color> textedit-text-color: md.sys.color.on-surface;
|
|
property<brush> textedit-background-disabled: transparent;
|
|
property<color> textedit-text-color-disabled: md.sys.color.on-surface;
|
|
property<bool> dark-color-scheme: md.dark-color-scheme;
|
|
|
|
property <string> default-font-family: "Roboto";
|
|
|
|
property<brush> window-background: md.sys.color.background;
|
|
}
|