summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2022-08-22 07:30:00 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2022-08-22 07:30:00 +0200
commitc3a44c7fd827a18d5fbd4c8fb2165ff08b231834 (patch)
tree7f9e2f5a2d828b890cae8a7d44ce803fedc4fe87
parent305a7c2a22b02dde982f1b9fa60db6d277a3bc91 (diff)
downloadvtcol-c3a44c7fd827a18d5fbd4c8fb2165ff08b231834.tar.gz
edit: improve color box composition
-rw-r--r--src/edit.rs19
1 files changed, 12 insertions, 7 deletions
diff --git a/src/edit.rs b/src/edit.rs
index 016ed9a..3d8b688 100644
--- a/src/edit.rs
+++ b/src/edit.rs
@@ -55,18 +55,23 @@ slint::slint! {
background : current-color;
VerticalBox {
- pdesc := Text {
- /* Text will be set through callback from Rust. */
- text : i;
+ Rectangle {
+ pdesc := Text {
+ /* Text will be set through callback from Rust. */
+ text : i;
+ }
}
Rectangle {
background : ptouch.has-hover ? #ffffff77 : #cccccc33;
- pval := TextInput {
- text : Aux.format-rgb-hex(current-color);
- font-size : 9pt;
+ pval := Text {
+ text : Aux.format-rgb-hex(current-color);
+ font-family : "mono";
+ font-size : 9pt;
}
}
- Rectangle { }
+ Rectangle {
+ background : green;
+ }
}
}
}