From 49231b55aaa746543fa3d6e6ff95e1839e156fa5 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 17 Aug 2022 06:53:01 +0200 Subject: edit: convert color ids to TextInput --- src/edit.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/edit.rs b/src/edit.rs index 0e89097..f43dcbd 100644 --- a/src/edit.rs +++ b/src/edit.rs @@ -57,6 +57,7 @@ slint::slint! { } prect := Rectangle { + forward-focus: pval; y : 3px; x : 3px; width : psquare.width - 6px; @@ -69,7 +70,7 @@ slint::slint! { } Rectangle { background : ptouch.has-hover ? #ffffff77 : #cccccc33; - pval := Text { + pval := TextInput { text : Aux.format-rgb-hex(current-color); font-size : 9pt; } @@ -97,6 +98,7 @@ slint::slint! { height : (squares-secondary.width / 8) - 12px; border-color : stouch.has-hover ? #eeeeee : #333333; border-width : 3px; + forward-focus: sval; stouch := TouchArea { } @@ -114,7 +116,7 @@ slint::slint! { } Rectangle { background : stouch.has-hover ? #ffffff77 : #cccccc33; - sval := Text { + sval := TextInput { text : Aux.format-rgb-hex(current-color); font-size : 9pt; } -- cgit v1.2.3