hefty: bar: proper vertical layouting

This commit is contained in:
end-4
2026-02-06 22:38:45 +01:00
parent 8fccfef9f1
commit ea35ca1582
4 changed files with 69 additions and 19 deletions
@@ -0,0 +1,15 @@
pragma ComponentBehavior: Bound
import QtQuick
StyledRectangle {
id: root
property bool vertical: false
property real startRadius
property real endRadius
topLeftRadius: startRadius
topRightRadius: vertical ? startRadius : endRadius
bottomLeftRadius: vertical ? endRadius : startRadius
bottomRightRadius: endRadius
}