1// Copyright © SixtyFPS GmbH <info@slint.dev>
2// SPDX-License-Identifier: MIT
3
4import { Switch, GridBox, ListView, ScrollView, VerticalBox } from "std-widgets.slint";
5
6import { GallerySettings } from "../gallery_settings.slint";
7
8export component Page inherits VerticalBox {
9 in property<string> title: "title";
10 in property<string> description: "description";
11 in property<bool> show-enable-switch: true;
12
13 HorizontalLayout {
14 height: 24px;
15
16 Text {
17 font-size: 20px;
18 text <=> root.title;
19 }
20
21 // Spacer
22 Rectangle {}
23
24 if show-enable-switch: Switch {
25 horizontal-stretch: 0;
26 text: @tr("Widgets enabled");
27 checked <=> GallerySettings.widgets-enabled;
28 enabled: true;
29 }
30 }
31
32 @children
33}