changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > demo / ui/pages/page.slint

changeset 17: e4c9ec452eb6
author: ellis <ellis@rwest.io>
date: Sat, 27 May 2023 21:07:55 -0400
permissions: -rw-r--r--
description: ui work
1 import { CheckBox, GridBox, ListView, ScrollView, VerticalBox } from "std-widgets.slint";
2 
3 import { UiConfig } from "../config.slint";
4 
5 export component Page inherits VerticalBox {
6  in property<string> title: "title";
7  in property<string> description: "description";
8 
9  HorizontalLayout {
10  height: 24px;
11  Text {
12  font-size: 20px;
13  text <=> root.title;
14  }
15 
16  // Spacer
17  Rectangle {}
18 
19  CheckBox {
20  horizontal-stretch: 0;
21  text: "Disable widgets";
22  checked <=> UiConfig.widgets-disabled;
23  }
24  }
25 
26  @children
27 }