add radius to barbutton

This commit is contained in:
end-4
2025-11-15 17:29:48 +01:00
parent 5d6d9234ac
commit bbe0329df4
@@ -37,6 +37,7 @@ Button {
} }
} }
colBackgroundBorder: ColorUtils.transparentize(Looks.colors.bg1Border, root.checked ? Looks.contentTransparency : 1)
colBackground: { colBackground: {
if (root.down) { if (root.down) {
return Looks.colors.bg1Active return Looks.colors.bg1Active
@@ -46,7 +47,6 @@ Button {
return ColorUtils.transparentize(Looks.colors.bg1) return ColorUtils.transparentize(Looks.colors.bg1)
} }
} }
colBackgroundBorder: ColorUtils.transparentize(Looks.colors.bg1Border, root.checked ? Looks.contentTransparency : 1)
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
@@ -67,6 +67,7 @@ Button {
background: AcrylicRectangle { background: AcrylicRectangle {
shiny: ((root.hovered && !root.down) || root.checked) shiny: ((root.hovered && !root.down) || root.checked)
color: root.colBackground color: root.colBackground
radius: Looks.radius.medium
border.width: 1 border.width: 1
border.color: root.colBackgroundBorder border.color: root.colBackgroundBorder