forked from Shinonome/dots-hyprland
less weird no text selection buttons
This commit is contained in:
@@ -23,7 +23,7 @@ GroupButton {
|
|||||||
colBackgroundActive: Appearance.colors.colSecondaryContainerActive
|
colBackgroundActive: Appearance.colors.colSecondaryContainerActive
|
||||||
|
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
spacing: 4
|
spacing: 4 * (root.buttonText?.length > 0)
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
@@ -42,7 +42,7 @@ GroupButton {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
implicitWidth: textItem.implicitWidth
|
implicitWidth: root.buttonText?.length > 0 ? textItem.implicitWidth : 0
|
||||||
implicitHeight: textMetrics.height // Force height to that of regular text
|
implicitHeight: textMetrics.height // Force height to that of regular text
|
||||||
|
|
||||||
TextMetrics {
|
TextMetrics {
|
||||||
|
|||||||
Reference in New Issue
Block a user