forked from Shinonome/dots-hyprland
add radius to barbutton
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user