forked from Shinonome/dots-hyprland
make wbutton not have stupid inset by default
This commit is contained in:
@@ -58,7 +58,6 @@ Item {
|
|||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
left: parent.left
|
left: parent.left
|
||||||
}
|
}
|
||||||
inset: 0
|
|
||||||
implicitHeight: 40
|
implicitHeight: 40
|
||||||
implicitWidth: contentItem.implicitWidth + 30
|
implicitWidth: contentItem.implicitWidth + 30
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|||||||
@@ -96,7 +96,6 @@ WChoiceButton {
|
|||||||
checked: !(root.wifiNetwork?.active ?? false)
|
checked: !(root.wifiNetwork?.active ?? false)
|
||||||
colBackgroundHover: Looks.colors.bg2Hover
|
colBackgroundHover: Looks.colors.bg2Hover
|
||||||
colBackgroundActive: Looks.colors.bg2Active
|
colBackgroundActive: Looks.colors.bg2Active
|
||||||
inset: 0
|
|
||||||
implicitHeight: 30
|
implicitHeight: 30
|
||||||
implicitWidth: 148
|
implicitWidth: 148
|
||||||
text: root.wifiNetwork?.active ? Translation.tr("Disconnect") : Translation.tr("Connect")
|
text: root.wifiNetwork?.active ? Translation.tr("Disconnect") : Translation.tr("Connect")
|
||||||
|
|||||||
@@ -95,7 +95,6 @@ Item {
|
|||||||
verticalCenter: parent.verticalCenter
|
verticalCenter: parent.verticalCenter
|
||||||
left: parent.left
|
left: parent.left
|
||||||
}
|
}
|
||||||
inset: 0
|
|
||||||
implicitHeight: 40
|
implicitHeight: 40
|
||||||
implicitWidth: contentItem.implicitWidth + 30
|
implicitWidth: contentItem.implicitWidth + 30
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|||||||
@@ -40,6 +40,7 @@ BarPopup {
|
|||||||
WButton {
|
WButton {
|
||||||
id: btn
|
id: btn
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
inset: 2
|
||||||
|
|
||||||
required property var modelData
|
required property var modelData
|
||||||
forceShowIcon: root.hasIcons
|
forceShowIcon: root.hasIcons
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ Button {
|
|||||||
property var altAction: () => {}
|
property var altAction: () => {}
|
||||||
property var middleClickAction: () => {}
|
property var middleClickAction: () => {}
|
||||||
|
|
||||||
property real inset: 2
|
property real inset: 0
|
||||||
topInset: inset
|
topInset: inset
|
||||||
bottomInset: inset
|
bottomInset: inset
|
||||||
leftInset: inset
|
leftInset: inset
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ WButton {
|
|||||||
implicitWidth: contentItem.implicitWidth
|
implicitWidth: contentItem.implicitWidth
|
||||||
horizontalPadding: 10
|
horizontalPadding: 10
|
||||||
verticalPadding: 11
|
verticalPadding: 11
|
||||||
inset: 0
|
|
||||||
buttonSpacing: 8
|
buttonSpacing: 8
|
||||||
|
|
||||||
color: {
|
color: {
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ WButton {
|
|||||||
|
|
||||||
property alias iconName: iconContent.icon
|
property alias iconName: iconContent.icon
|
||||||
property alias monochrome: iconContent.monochrome
|
property alias monochrome: iconContent.monochrome
|
||||||
inset: 0
|
|
||||||
implicitWidth: 40
|
implicitWidth: 40
|
||||||
implicitHeight: 40
|
implicitHeight: 40
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user