Skip to content

Commit cb63f52

Browse files
committed
workaround for a huge button
1 parent 9f5ee9f commit cb63f52

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/gui/qml/FolderDelegate.qml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ Pane {
7070
id: notificationButton
7171
spacing: folderSyncPanel.spacing
7272

73+
text: accountSettings.notifications.length
74+
icon.source: OpenCloud.resourcePath("fontawesome", "", enabled)
75+
icon.color: "transparent"
76+
Layout.preferredHeight: manageAccountButton.implicitHeight
77+
// TODO: this is a hack to force our icon engine to not use rediculess dpi scaling
78+
// https://github.com/opencloud-eu/desktop/issues/142
79+
icon.height: 0
80+
icon.width: 0
81+
7382
Dialog {
7483
id: notificationPopup
7584
width: 300
@@ -93,12 +102,6 @@ Pane {
93102
}
94103
}
95104

96-
text: accountSettings.notifications.length
97-
icon.source: OpenCloud.resourcePath("fontawesome", "", enabled)
98-
icon.color: "transparent"
99-
icon.height: 16
100-
icon.width: 16
101-
102105
onClicked: notificationPopup.open()
103106

104107
Keys.onBacktabPressed: {

0 commit comments

Comments
 (0)