live-preview: added angle label tp brush widget

This commit is contained in:
szecket 2025-03-13 16:43:43 -04:00 committed by Tobias Hunger
parent b1200a1833
commit daae2bb4c4

View file

@ -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();
}
}
}
}