// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 import { Palette } from "std-widgets.slint"; export global Icons { out property add: @image-url("../assets/add.svg"); out property chevron-down: @image-url("../assets/chevron-down.svg"); out property inspect: @image-url("../assets/inspect.svg"); out property sidebar-left-off: @image-url("../assets/layout-sidebar-left-off.svg"); out property sidebar-right-off: @image-url("../assets/layout-sidebar-right-off.svg"); out property sidebar-left: @image-url("../assets/layout-sidebar-left.svg"); out property sidebar-right: @image-url("../assets/layout-sidebar-right.svg"); out property sync: @image-url("../assets/sync.svg"); } export struct TextStyle { font-size: relative-font-size, font-weight: int, } export global EditorFontSettings { out property light-font-weight: 300; out property regular-font-weight: 400; out property semibold-font-weight: 600; out property bold-font-weight: 900; out property header: { font-size: 18 * 0.0769rem, font-weight: root.semibold-font-weight }; out property body: { font-size: 14 * 0.0769rem, font-weight: root.regular-font-weight }; out property body-strong: { font-size: 16 * 0.0769rem, font-weight: root.bold-font-weight }; } export global EditorSpaceSettings { in property default-spacing: 8px; in property default-padding: 8px; in property property-spacing: 5px; in property group-indent: 10px; } export global EditorSizeSettings { in property header-height: 32px; in property item-height: 24px; in property side-bar-width: 280px; in property property-bar-width: 360px; in property default-icon-width: 20px; in property min-prefix-text-width: 120px; in property eightbit-int-size: 40px; in property hex-size: 80px; in property float-size: 100px; in property length-combo: 70px; } export global EditorPalette { out property state-pressed: root.dark-color-scheme ? #ffffff.with-alpha(0.2) : #000000.with-alpha(0.2); out property state-hovered: root.dark-color-scheme ? #ffffff.with-alpha(0.1) : #000000.with-alpha(0.1); property dark-color-scheme: Palette.color-scheme == ColorScheme.dark; out property general-element-selection-primary: #2379f4ff; out property general-element-selection-secondary: #2379f480; out property layout-element-selection-primary: #ff0000ff; out property layout-element-selection-secondary: #ff000080; out property interactive-element-selection-primary: #ff00ffff; out property interactive-element-selection-secondary: #ff00ff80; } export global EditorAnimationSettings { out property color-duration: 200ms; out property roation-duration: 200ms; }