Use the "Binding on ..." syntax whenever possible
This commit is contained in:
parent
e694f1739b
commit
c2b7b458f9
7
TODO.md
7
TODO.md
@ -1,4 +1,4 @@
|
|||||||
- binding on ...
|
- invite keybind & context menu
|
||||||
- better cancel for all boxes
|
- better cancel for all boxes
|
||||||
|
|
||||||
- Media
|
- Media
|
||||||
@ -72,11 +72,6 @@
|
|||||||
- In join room page, show the matching room's avatar when typing
|
- In join room page, show the matching room's avatar when typing
|
||||||
- In find someone page, show the matching user's avatar when typing
|
- In find someone page, show the matching user's avatar when typing
|
||||||
|
|
||||||
- Inviting members to a room
|
|
||||||
- Make invite icon blink if there's no one but ourself in the room,
|
|
||||||
but never do it again once the user hovered it long enough to show
|
|
||||||
tooltip or clicked on it once
|
|
||||||
|
|
||||||
- Combine events so they take less space
|
- Combine events so they take less space
|
||||||
- After combining is implemented, no need to hide profile changes anymore.
|
- After combining is implemented, no need to hide profile changes anymore.
|
||||||
- Replies
|
- Replies
|
||||||
|
@ -28,16 +28,12 @@ RadialBar {
|
|||||||
theme.controls.circleProgressBar.indeterminateSpan
|
theme.controls.circleProgressBar.indeterminateSpan
|
||||||
|
|
||||||
|
|
||||||
Binding {
|
Binding on value {
|
||||||
target: bar;
|
|
||||||
property: "value";
|
|
||||||
value: bar.to * bar.indeterminateSpan
|
value: bar.to * bar.indeterminateSpan
|
||||||
when: bar.indeterminate
|
when: bar.indeterminate
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding on showText {
|
||||||
target: bar
|
|
||||||
property: "showText"
|
|
||||||
value: false
|
value: false
|
||||||
when: bar.indeterminate
|
when: bar.indeterminate
|
||||||
}
|
}
|
||||||
|
@ -130,9 +130,7 @@ HColumnLayout {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding on value {
|
||||||
target: timeSlider
|
|
||||||
property: "value"
|
|
||||||
value: boundPosition
|
value: boundPosition
|
||||||
when: ! timeSlider.pressed
|
when: ! timeSlider.pressed
|
||||||
}
|
}
|
||||||
|
@ -17,9 +17,7 @@ HLabel {
|
|||||||
radius: theme.radius
|
radius: theme.radius
|
||||||
}
|
}
|
||||||
|
|
||||||
Binding {
|
Binding on visible {
|
||||||
target: bubble
|
|
||||||
property: "visible"
|
|
||||||
value: false
|
value: false
|
||||||
when: ! Boolean(bubble.text)
|
when: ! Boolean(bubble.text)
|
||||||
}
|
}
|
||||||
|
@ -28,9 +28,7 @@ HDrawer {
|
|||||||
|
|
||||||
Behavior on opacity { HOpacityAnimator {} }
|
Behavior on opacity { HOpacityAnimator {} }
|
||||||
|
|
||||||
Binding {
|
Binding on visible {
|
||||||
target: mainPane
|
|
||||||
property: "visible"
|
|
||||||
value: false
|
value: false
|
||||||
when: ! mainUI.accountsPresent
|
when: ! mainUI.accountsPresent
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user