зеркало из https://github.com/nextcloud/desktop.git
Make sizing of addacount button more reasonable
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
d21a1911ea
Коммит
6b1c88fc25
|
@ -319,20 +319,13 @@ ApplicationWindow {
|
||||||
onObjectRemoved: accountMenu.removeItem(object)
|
onObjectRemoved: accountMenu.removeItem(object)
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
implicitHeight: 1
|
|
||||||
color: palette.dark
|
|
||||||
}
|
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
id: addAccountButton
|
id: addAccountButton
|
||||||
height: Systray.enableAddAccount ? Style.addAccountButtonHeight : 0
|
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
visible: Systray.enableAddAccount
|
visible: Systray.enableAddAccount
|
||||||
|
|
||||||
icon.source: "image://svgimage-custom-color/add.svg/" + palette.windowText
|
icon.source: "image://svgimage-custom-color/add.svg/" + palette.windowText
|
||||||
|
icon.width: Style.accountAvatarSize
|
||||||
text: qsTr("Add account")
|
text: qsTr("Add account")
|
||||||
onClicked: UserModel.addAccount()
|
onClicked: UserModel.addAccount()
|
||||||
|
|
||||||
|
@ -341,6 +334,13 @@ ApplicationWindow {
|
||||||
Accessible.onPressAction: addAccountButton.clicked()
|
Accessible.onPressAction: addAccountButton.clicked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
implicitHeight: 1
|
||||||
|
color: palette.dark
|
||||||
|
}
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
id: syncPauseButton
|
id: syncPauseButton
|
||||||
font.pixelSize: Style.topLinePixelSize
|
font.pixelSize: Style.topLinePixelSize
|
||||||
|
|
Загрузка…
Ссылка в новой задаче