Improve accounts bar appearance
This commit is contained in:
parent
9b3127b7c3
commit
bbc462239c
1
TODO.md
1
TODO.md
|
@ -8,6 +8,7 @@
|
||||||
- lag when switching accounts
|
- lag when switching accounts
|
||||||
- message delegate too tall
|
- message delegate too tall
|
||||||
- unread counts on accounts
|
- unread counts on accounts
|
||||||
|
- fix compact mode
|
||||||
|
|
||||||
- fix escape keybinds (filter rooms, message selection)
|
- fix escape keybinds (filter rooms, message selection)
|
||||||
- if last room event is a membership change, it won't be visible in timeline
|
- if last room event is a membership change, it won't be visible in timeline
|
||||||
|
|
|
@ -24,13 +24,34 @@ HColumnLayout {
|
||||||
|
|
||||||
HListView {
|
HListView {
|
||||||
id: accountList
|
id: accountList
|
||||||
|
clip: true
|
||||||
model: ModelStore.get("accounts")
|
model: ModelStore.get("accounts")
|
||||||
currentIndex: accountView.currentIndex
|
currentIndex: accountView.currentIndex
|
||||||
|
|
||||||
|
highlight: Item {
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors.fill: parent
|
||||||
|
color: theme.accountsBar.accountList.account.selectedBackground
|
||||||
|
opacity: theme.accountsBar.accountList.account
|
||||||
|
.selectedBackgroundOpacity
|
||||||
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
z: 100
|
||||||
|
width: theme.accountsBar.accountList.account.selectedBorderSize
|
||||||
|
height: parent.height
|
||||||
|
color: theme.accountsBar.accountList.account.selectedBorder
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
delegate: HTileDelegate {
|
delegate: HTileDelegate {
|
||||||
id: tile
|
id: tile
|
||||||
width: accountList.width
|
width: accountList.width
|
||||||
backgroundColor: theme.accountsBar.accountList.account.background
|
backgroundColor: theme.accountsBar.accountList.account.background
|
||||||
|
|
||||||
|
topPadding: (accountList.width - avatar.width) / 4
|
||||||
|
bottomPadding: topPadding
|
||||||
leftPadding: 0
|
leftPadding: 0
|
||||||
rightPadding: leftPadding
|
rightPadding: leftPadding
|
||||||
|
|
||||||
|
|
|
@ -285,6 +285,11 @@ accountsBar:
|
||||||
color background: "transparent"
|
color background: "transparent"
|
||||||
int avatarRadius: controls.avatar.radius
|
int avatarRadius: controls.avatar.radius
|
||||||
|
|
||||||
|
color selectedBackground: colors.accentBackground
|
||||||
|
real selectedBackgroundOpacity: 0.3
|
||||||
|
color selectedBorder: colors.strongAccentElement
|
||||||
|
int selectedBorderSize: 2
|
||||||
|
|
||||||
|
|
||||||
accountView:
|
accountView:
|
||||||
account:
|
account:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user