summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2022-08-17 06:53:01 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2022-08-17 06:53:01 +0200
commit49231b55aaa746543fa3d6e6ff95e1839e156fa5 (patch)
tree3cd8c838d916c4e2bd6b7c3d8015b523bad14f55 /src
parentee73fda85b7b329fce19c23a5eab4a00bad1e560 (diff)
downloadvtcol-49231b55aaa746543fa3d6e6ff95e1839e156fa5.tar.gz
edit: convert color ids to TextInput
Diffstat (limited to 'src')
-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;
}