mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-24 05:55:59 +03:00
Fix dark/light mode for account menu.
Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
parent
bbf4f3125a
commit
589bff16df
3 changed files with 11 additions and 7 deletions
|
@ -48,7 +48,7 @@ AbstractButton {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: accountAvatar
|
id: accountAvatar
|
||||||
Layout.leftMargin: 7
|
Layout.leftMargin: Style.accountIconsMenuMargin
|
||||||
verticalAlignment: Qt.AlignCenter
|
verticalAlignment: Qt.AlignCenter
|
||||||
cache: false
|
cache: false
|
||||||
source: model.avatar !== "" ? model.avatar : Theme.darkMode ? "image://avatars/fallbackWhite" : "image://avatars/fallbackBlack"
|
source: model.avatar !== "" ? model.avatar : Theme.darkMode ? "image://avatars/fallbackWhite" : "image://avatars/fallbackBlack"
|
||||||
|
@ -148,7 +148,7 @@ AbstractButton {
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
source: "image://svgimage-custom-color/more.svg/"
|
source: "image://svgimage-custom-color/more.svg/" + palette.windowText
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -324,11 +324,12 @@ ApplicationWindow {
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
Layout.leftMargin: 12
|
Layout.leftMargin: Style.accountIconsMenuMargin
|
||||||
verticalAlignment: Qt.AlignCenter
|
verticalAlignment: Qt.AlignVCenter
|
||||||
source: "image://svgimage-custom-color/add.svg"
|
horizontalAlignment: Qt.AlignCenter
|
||||||
sourceSize.width: Style.headerButtonIconSize
|
source: "image://svgimage-custom-color/add.svg/" + palette.windowText
|
||||||
sourceSize.height: Style.headerButtonIconSize
|
sourceSize.width: Style.addButtonIconSize
|
||||||
|
sourceSize.height: Style.addButtonIconSize
|
||||||
}
|
}
|
||||||
EnforcedPlainTextLabel {
|
EnforcedPlainTextLabel {
|
||||||
Layout.leftMargin: 14
|
Layout.leftMargin: 14
|
||||||
|
|
|
@ -103,9 +103,12 @@ QtObject {
|
||||||
property int addAccountButtonHeight: 50
|
property int addAccountButtonHeight: 50
|
||||||
|
|
||||||
property int headerButtonIconSize: 32
|
property int headerButtonIconSize: 32
|
||||||
|
property int addButtonIconSize: 26
|
||||||
property int dismissButtonSize: 26
|
property int dismissButtonSize: 26
|
||||||
property int minimumActivityItemHeight: 24
|
property int minimumActivityItemHeight: 24
|
||||||
|
|
||||||
|
property int accountIconsMenuMargin: 7
|
||||||
|
|
||||||
property int activityLabelBaseWidth: 240
|
property int activityLabelBaseWidth: 240
|
||||||
|
|
||||||
property int talkReplyTextFieldPreferredHeight: 34
|
property int talkReplyTextFieldPreferredHeight: 34
|
||||||
|
|
Loading…
Reference in a new issue