AccountBar: reduce opacity of collapsed accounts
This commit is contained in:
parent
9157cbd590
commit
82c8496216
|
@ -57,6 +57,13 @@ Rectangle {
|
||||||
// compact: tile.compact
|
// compact: tile.compact
|
||||||
|
|
||||||
radius: theme.mainPane.accountBar.account.avatarRadius
|
radius: theme.mainPane.accountBar.account.avatarRadius
|
||||||
|
|
||||||
|
opacity:
|
||||||
|
tile.collapsed ?
|
||||||
|
theme.mainPane.accountBar.account.collapsedOpacity :
|
||||||
|
1
|
||||||
|
|
||||||
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageIndicator {
|
MessageIndicator {
|
||||||
|
@ -94,6 +101,10 @@ Rectangle {
|
||||||
contextMenu: AccountContextMenu { userId: model.id }
|
contextMenu: AccountContextMenu { userId: model.id }
|
||||||
|
|
||||||
onLeftClicked: roomList.goToAccount(model.id)
|
onLeftClicked: roomList.goToAccount(model.id)
|
||||||
|
|
||||||
|
readonly property bool collapsed:
|
||||||
|
(window.uiState.collapseAccounts[model.id] || false) &&
|
||||||
|
! roomList.filter
|
||||||
}
|
}
|
||||||
|
|
||||||
highlight: Item {
|
highlight: Item {
|
||||||
|
|
|
@ -283,13 +283,14 @@ mainPane:
|
||||||
color background: colors.mediumBackground
|
color background: colors.mediumBackground
|
||||||
|
|
||||||
account:
|
account:
|
||||||
color background: "transparent"
|
real collapsedOpacity: 0.3
|
||||||
int avatarRadius: controls.avatar.radius
|
color background: "transparent"
|
||||||
|
int avatarRadius: controls.avatar.radius
|
||||||
|
|
||||||
color selectedBackground: colors.accentBackground
|
color selectedBackground: colors.accentBackground
|
||||||
real selectedBackgroundOpacity: 0.3
|
real selectedBackgroundOpacity: 0.3
|
||||||
color selectedBorder: colors.strongAccentElement
|
color selectedBorder: colors.strongAccentElement
|
||||||
int selectedBorderSize: 2
|
int selectedBorderSize: 2
|
||||||
|
|
||||||
unreadIndicator:
|
unreadIndicator:
|
||||||
color background: colors.accentBackground
|
color background: colors.accentBackground
|
||||||
|
|
Loading…
Reference in New Issue
Block a user