mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-27 12:29:41 +00:00

This is commit is just the output of running the syntax updater on the files in the internal/compiler/widgets directory. No extra manual steps were done. Note: In order to run the updater, I did a hack so that the updater wouldn't choke on internal item used by the styles by commenting out the check in ElementType::lookup_type_for_child_element
27 lines
1.1 KiB
Text
27 lines
1.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 {
|
|
in-out property<length> layout-spacing: 8px;
|
|
in-out property<length> layout-padding: 8px;
|
|
in-out property<length> text-cursor-width: 2px;
|
|
|
|
in-out property<color> default-text-color: md.sys.color.on-surface;
|
|
in-out property<brush> textedit-background: transparent;
|
|
in-out property<color> textedit-text-color: md.sys.color.on-surface;
|
|
in-out property<brush> textedit-background-disabled: transparent;
|
|
in-out property<color> textedit-text-color-disabled: md.sys.color.on-surface;
|
|
in-out property<bool> dark-color-scheme: md.dark-color-scheme;
|
|
|
|
in-out property <string> default-font-family: "Roboto";
|
|
|
|
in-out property<brush> window-background: md.sys.color.background;
|
|
}
|