Fix main pane minimum size
This commit is contained in:
parent
2bb13bf7f7
commit
36a214bf1a
19
TODO.md
19
TODO.md
|
@ -1,17 +1,18 @@
|
|||
# TODO
|
||||
|
||||
- add unread counts on accounts
|
||||
- add account number binds
|
||||
- rename goto*account → scrollto*account
|
||||
- account number binds
|
||||
- update glass theme
|
||||
- back/front buttons in small window
|
||||
- minimum sizes
|
||||
- lag when switching accounts
|
||||
- message delegate too tall
|
||||
- unread counts on accounts
|
||||
- fix compact mode
|
||||
- left rooms opacity
|
||||
|
||||
- fix back/front buttons in small window
|
||||
- fix message delegate too tall
|
||||
- fix compact mode
|
||||
- fix left rooms opacity
|
||||
- fix escape keybinds (filter rooms, message selection)
|
||||
|
||||
- lag when switching accounts
|
||||
- update glass theme
|
||||
|
||||
- if last room event is a membership change, it won't be visible in timeline
|
||||
- use uiState instead of open_room
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ Button {
|
|||
id: button
|
||||
enabled: ! button.loading
|
||||
spacing: theme.spacing
|
||||
topPadding: padded ? spacing / (circle ? 1.75 : 1.5) : 0
|
||||
topPadding: padded ? spacing / (circle ? 1.75 : 2) : 0
|
||||
bottomPadding: topPadding
|
||||
leftPadding: padded ? spacing / (circle ? 1.5 : 1) : 0
|
||||
rightPadding: leftPadding
|
||||
|
|
|
@ -18,6 +18,9 @@ HButton {
|
|||
property alias contextMenu: contextMenuLoader.sourceComponent
|
||||
|
||||
|
||||
Behavior on topPadding { HNumberAnimation {} }
|
||||
Behavior on bottomPadding { HNumberAnimation {} }
|
||||
|
||||
Binding on topPadding {
|
||||
value: spacing / 4
|
||||
when: compact
|
||||
|
|
|
@ -85,25 +85,6 @@ HTile {
|
|||
property bool isCurrent: false
|
||||
|
||||
|
||||
Behavior on leftPadding { HNumberAnimation {} }
|
||||
Behavior on topPadding { HNumberAnimation {} }
|
||||
|
||||
Binding on leftPadding {
|
||||
value: (mainPane.minimumSize - avatar.width) / 2
|
||||
when: mainPane.small
|
||||
}
|
||||
|
||||
Binding on topPadding {
|
||||
value: theme.spacing
|
||||
when: mainPane.small
|
||||
}
|
||||
|
||||
Binding on bottomPadding {
|
||||
value: theme.spacing
|
||||
when: mainPane.small
|
||||
}
|
||||
|
||||
|
||||
HShortcut {
|
||||
enabled: isCurrent
|
||||
sequences: window.settings.keys.accountSettings
|
||||
|
|
|
@ -8,15 +8,13 @@ HDrawer {
|
|||
id: mainPane
|
||||
saveName: "mainPane"
|
||||
background: null
|
||||
// minimumSize: bottomBar.addAccountButton.width
|
||||
minimumSize:
|
||||
accountBar.width + theme.controls.avatar.size + theme.spacing * 2
|
||||
|
||||
readonly property alias accountBar: accountBar
|
||||
readonly property alias roomList: roomList
|
||||
readonly property alias filterRoomsField: filterRoomsField
|
||||
|
||||
readonly property bool small:
|
||||
width < theme.controls.avatar.size + theme.spacing * 2
|
||||
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
|
||||
|
|
|
@ -22,11 +22,7 @@ HTileDelegate {
|
|||
displayName: model.display_name
|
||||
mxc: model.avatar_url
|
||||
compact: room.compact
|
||||
|
||||
radius:
|
||||
mainPane.small ?
|
||||
theme.accountView.roomList.room.collapsedAvatarRadius :
|
||||
theme.accountView.roomList.room.avatarRadius
|
||||
radius: theme.accountView.roomList.room.avatarRadius
|
||||
|
||||
Behavior on radius { HNumberAnimation {} }
|
||||
}
|
||||
|
@ -215,20 +211,4 @@ HTileDelegate {
|
|||
|
||||
|
||||
Behavior on opacity { HNumberAnimation {} }
|
||||
Behavior on leftPadding { HNumberAnimation {} }
|
||||
|
||||
Binding on leftPadding {
|
||||
value: (mainPane.minimumSize - avatar.width) / 2
|
||||
when: mainPane.small
|
||||
}
|
||||
|
||||
Binding on topPadding {
|
||||
value: leftPadding / 2
|
||||
when: mainPane.small
|
||||
}
|
||||
|
||||
Binding on bottomPadding {
|
||||
value: leftPadding / 2
|
||||
when: mainPane.small
|
||||
}
|
||||
}
|
||||
|
|
|
@ -310,8 +310,7 @@ accountView:
|
|||
color subtitle: colors.dimText
|
||||
color subtitleQuote: chat.message.quote
|
||||
|
||||
int avatarRadius: controls.avatar.radius
|
||||
int collapsedAvatarRadius: controls.avatar.radius
|
||||
int avatarRadius: controls.avatar.radius
|
||||
|
||||
unreadIndicator:
|
||||
color background: colors.accentBackground
|
||||
|
|
Loading…
Reference in New Issue
Block a user