// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: MIT import { Palette } from "std-widgets.slint"; export global AnimationSettings { out property color-duration: 200ms; out property move-duration: 400ms; out property move-easing: cubic-bezier(0.3, 0.0, 0.8, 0.15); } export global TodoPalette { out property foreground: Palette.foreground; out property accent-background: Palette.accent-background; out property accent-foreground: Palette.accent-foreground; out property focus-border: Palette.accent-background; out property state-pressed: root.dark-color-scheme ? #ffffff.with-alpha(0.3) : #000000.with-alpha(0.3); out property state-hovered: root.dark-color-scheme ? #ffffff.with-alpha(0.2) : #000000.with-alpha(0.2); property dark-color-scheme: Palette.color-scheme == ColorScheme.dark; } export struct TextStyle { font-size: relative-font-size, font-weight: int, } export global FontSettings { out property light-font-weight: 300; out property regular-font-weight: 500; out property semi-bold-font-weight: 600; out property body: { font-size: 14 * 0.0769rem, font-weight: root.light-font-weight, }; out property body-strong: { font-size: 16 * 0.0769rem, font-weight: root.semi-bold-font-weight, }; } export global SizeSettings { out property control-icon-height: 16px; out property control-icon-big-height: 32px; out property control-height: 32px; out property control-big-height: 48px; } export global SpaceSettings { out property default-spacing: 4px; out property default-padding: 8px; } export global Icons { out property add: @image-url("../../assets/add.svg"); out property remove: @image-url("../../assets/remove.svg"); out property close: @image-url("../../assets/close.svg"); }