| 1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
| 2 | // SPDX-License-Identifier: MIT |
| 3 | |
| 4 | import { Palette } from "std-widgets.slint" ; |
| 5 | |
| 6 | import "../assets/weathericons-font.ttf" ; |
| 7 | |
| 8 | export global AppPalette { |
| 9 | out property<brush> background: #1673b4; |
| 10 | out property<brush> alternate-background: #2296bc; |
| 11 | out property<brush> foreground: white; |
| 12 | |
| 13 | out property<brush> sun-yellow: Colors.yellow; |
| 14 | out property<brush> snow-white: Colors.cornsilk; |
| 15 | out property<brush> rain-blue: #7DCDFF.brighter(15%); |
| 16 | |
| 17 | out property<brush> error-red: Colors.red.darker(20%); |
| 18 | } |
| 19 | |
| 20 | export global AppFonts { |
| 21 | out property<length> default-font-size: 10pt; |
| 22 | |
| 23 | out property<string> weather-icons-font-name: "Weather Icons" ; |
| 24 | } |
| 25 | |
| 26 | export global AppImages { |
| 27 | out property <image> arrow-down: @image-url("../assets/icons/arrow-down.svg" ); |
| 28 | out property <image> arrow-up: @image-url("../assets/icons/arrow-up.svg" ); |
| 29 | out property <image> plus: @image-url("../assets/icons/plus.svg" ); |
| 30 | out property <image> refresh: @image-url("../assets/icons/refresh.svg" ); |
| 31 | out property <image> search: @image-url("../assets/icons/search.svg" ); |
| 32 | out property <image> trash: @image-url("../assets/icons/trash.svg" ); |
| 33 | out property <image> xmark: @image-url("../assets/icons/xmark.svg" ); |
| 34 | } |
| 35 | |