// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 // widget imports export { Button } from "button.slint"; export { CheckBox } from "checkbox.slint"; export { ScrollView } from "scrollview.slint"; import { MaterialPalette } from "styling.slint"; export { Switch } from "switch.slint"; export { ListItem } from "components.slint"; export { LineEdit } from "lineedit.slint"; export { MenuBarItem, MenuBar, MenuFrame, MenuItem } from "menu.slint"; export global StyleMetrics { out property layout-spacing: 16px; out property layout-padding: 16px; out property text-cursor-width: 2px; out property default-text-color: MaterialPalette.foreground; out property textedit-background: transparent; out property textedit-text-color: MaterialPalette.foreground; out property textedit-background-disabled: transparent; out property textedit-text-color-disabled: MaterialPalette.foreground; out property dark-color-scheme: Palette.color-scheme == ColorScheme.dark; out property default-font-family: "Roboto"; out property window-background: MaterialPalette.background; } export global Palette { out property background: MaterialPalette.background; out property foreground: MaterialPalette.foreground; out property alternate-background: MaterialPalette.alternate-background; out property alternate-foreground: MaterialPalette.alternate-foreground; out property control-background: MaterialPalette.control-background; out property control-foreground: MaterialPalette.control-foreground; out property accent-background: MaterialPalette.accent-background; out property accent-foreground: MaterialPalette.accent-foreground; out property selection-background: MaterialPalette.selection-background; out property selection-foreground: MaterialPalette.selection-foreground; out property border: MaterialPalette.border; in-out property color-scheme <=> MaterialPalette.color-scheme; }