mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-14 17:58:40 +00:00
live-preview: added angle label tp brush widget
This commit is contained in:
parent
b1200a1833
commit
daae2bb4c4
1 changed files with 22 additions and 15 deletions
|
|
@ -175,7 +175,14 @@ export component BrushWidget inherits GridLayout {
|
|||
|
||||
Rectangle {
|
||||
clip: true;
|
||||
height: root.current-brush-kind == BrushKind.linear ? angle.height : 0px;
|
||||
height: root.current-brush-kind == BrushKind.linear ? self.preferred-height : 0px;
|
||||
|
||||
HorizontalLayout {
|
||||
spacing: EditorSpaceSettings.default-spacing;
|
||||
Text {
|
||||
text: "Angle:";
|
||||
vertical-alignment: center;
|
||||
}
|
||||
|
||||
angle := ResettingLineEdit {
|
||||
enabled <=> root.enabled;
|
||||
|
|
@ -194,7 +201,7 @@ export component BrushWidget inherits GridLayout {
|
|||
root.set-brush-binding(root.current-brush-kind, root.current-angle, root.current-color, root.current-gradient-stops);
|
||||
update-brush();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue