summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/edit.rs6
1 files 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;
}