1 | // Copyright © SixtyFPS GmbH <info@slint.dev> |
2 | // SPDX-License-Identifier: MIT |
3 | |
4 | import { SettingsAdapter } from "../pages/menu_page/settings.slint" ; |
5 | import { Theme } from "../theme.slint" ; |
6 | |
7 | export component KioskOverlay { |
8 | preferred-width: 100%; |
9 | preferred-height: 100%; |
10 | |
11 | TouchArea { |
12 | clicked => { |
13 | SettingsAdapter.kiosk-mode-checked = false; |
14 | } |
15 | } |
16 | |
17 | Rectangle { |
18 | x: i-text.x - 1px; |
19 | y: i-text.y - 1px; |
20 | width: i-text.width + 2px; |
21 | height: i-text.height + 2px; |
22 | background: Theme.palette.pure-black; |
23 | opacity: 0.5; |
24 | } |
25 | |
26 | i-text := Text { |
27 | x: parent.width - self.width - 5px; |
28 | y: 5px; |
29 | font-size: Theme.typo.description.size; |
30 | font-weight: Theme.typo.description.weight; |
31 | text: "Kiosk" ; |
32 | color: Theme.palette.lemon-green; |
33 | opacity: 0.5; |
34 | } |
35 | } |
36 | |