Use the same radius value, border colors and hover colors in all header menus.

Signed-off-by: Camila Ayres <hello@camilasan.com>
This commit is contained in:
Camila Ayres 2024-09-12 18:20:36 +02:00
Родитель eab2088a5d
Коммит 2d91aa9000
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 7A4A6121E88E2AD4
2 изменённых файлов: 50 добавлений и 3 удалений

Просмотреть файл

@ -40,6 +40,7 @@ AbstractButton {
color: (userLine.hovered || userLine.visualFocus) &&
!(userMoreButton.hovered || userMoreButton.visualFocus) ?
palette.highlight : palette.window
radius: Style.trayWindowRadius
}
contentItem: RowLayout {
@ -156,6 +157,12 @@ AbstractButton {
id: userMoreButtonMenu
closePolicy: Menu.CloseOnPressOutsideParent | Menu.CloseOnEscape
background: Rectangle {
border.color: palette.dark
radius: Style.trayWindowRadius
color: palette.window
}
MenuItem {
visible: model.isConnected && model.serverHasUserStatus
height: visible ? implicitHeight : 0
@ -163,6 +170,11 @@ AbstractButton {
font.pixelSize: Style.topLinePixelSize
hoverEnabled: true
onClicked: showUserStatusSelector(index)
background: Rectangle {
radius: Style.trayWindowRadius
color: parent.hovered ? palette.highlight : palette.window
}
}
MenuItem {
@ -185,6 +197,11 @@ AbstractButton {
}
accountMenu.close()
}
background: Rectangle {
radius: Style.trayWindowRadius
color: parent.hovered ? palette.highlight : palette.window
}
}
MenuItem {
@ -200,6 +217,11 @@ AbstractButton {
Accessible.role: Accessible.Button
Accessible.name: text
Accessible.onPressAction: removeAccountButton.clicked()
background: Rectangle {
radius: Style.trayWindowRadius
color: parent.hovered ? palette.highlight : palette.window
}
}
}
}

Просмотреть файл

@ -289,7 +289,7 @@ ApplicationWindow {
background: Rectangle {
border.color: palette.dark
color: palette.window
radius: Style.currentAccountButtonRadius
radius: Style.trayWindowRadius
}
onClosed: {
@ -347,6 +347,12 @@ ApplicationWindow {
Accessible.role: Accessible.MenuItem
Accessible.name: qsTr("Add new account")
Accessible.onPressAction: addAccountButton.clicked()
background: Rectangle {
radius: Style.trayWindowRadius
color: palette.highlight
visible: addAccountButton.hovered
}
}
Rectangle {
@ -364,6 +370,12 @@ ApplicationWindow {
Accessible.role: Accessible.MenuItem
Accessible.name: Systray.syncIsPaused ? qsTr("Resume sync for all") : qsTr("Pause sync for all")
Accessible.onPressAction: syncPauseButton.clicked()
background: Rectangle {
radius: Style.trayWindowRadius
color: palette.highlight
visible: syncPauseButton.hovered
}
}
MenuItem {
@ -375,6 +387,12 @@ ApplicationWindow {
Accessible.role: Accessible.MenuItem
Accessible.name: text
Accessible.onPressAction: settingsButton.clicked()
background: Rectangle {
radius: Style.trayWindowRadius
color: palette.highlight
visible: settingsButton.hovered
}
}
MenuItem {
@ -386,6 +404,12 @@ ApplicationWindow {
Accessible.role: Accessible.MenuItem
Accessible.name: text
Accessible.onPressAction: exitButton.clicked()
background: Rectangle {
radius: Style.trayWindowRadius
color: palette.highlight
visible: exitButton.hovered
}
}
}
@ -587,7 +611,7 @@ ApplicationWindow {
background: Rectangle {
border.color: palette.dark
radius: Style.currentAccountButtonRadius
radius: Style.trayWindowRadius
color: palette.window
}
@ -622,7 +646,8 @@ ApplicationWindow {
background: Rectangle {
anchors.fill: parent
anchors.margins: 1
color: (appEntry.hovered || appEntry.visualFocus) ? palette.highlight : palette.window
color: appEntry.hovered ? palette.highlight : palette.window
radius: Style.trayWindowRadius
}
}
}