From c3a44c7fd827a18d5fbd4c8fb2165ff08b231834 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 22 Aug 2022 07:30:00 +0200 Subject: edit: improve color box composition --- src/edit.rs | 19 ++++++++++++------- 1 file 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; + } } } } -- cgit v1.2.3