changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/ui/base.slint

changeset 698: 96958d3eb5b0
parent: 2a4f11c0e8c8
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 import { SpinBox, Button, CheckBox, Slider, LineEdit, ScrollView, ListView,
2  HorizontalBox, VerticalBox, GridBox, StandardButton, Palette } from "std-widgets.slint";
3 
4 // @rust-attr(derive(serde::Serialize, serde::Deserialize))
5 // export struct TodoItem {
6 // title: string,
7 // checked: bool,
8 // }
9 
10 export component TextInput inherits Window {
11  width: 200px;
12  height: 25px;
13  LineEdit {
14  font-size: 14px;
15  width: 120px;
16  height: 16px;
17  placeholder-text: "Input";
18  }
19 }
20 
21 export component MainWindow inherits Window {
22  in property <bool> full-screen: false;
23  in-out property <bool> is-sort-by-name: false;
24  in-out property <bool> hide-done-items: false;
25  callback rx();
26  callback tx();
27  preferred-width: 400px;
28  preferred-height: 600px;
29  VerticalBox {
30  HorizontalBox {
31  TextInput {}
32  }
33  }
34 }