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
|
# TODO
|
||||||
|
|
||||||
|
- add unread counts on accounts
|
||||||
|
- add account number binds
|
||||||
- rename goto*account → scrollto*account
|
- 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)
|
- 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
|
- if last room event is a membership change, it won't be visible in timeline
|
||||||
- use uiState instead of open_room
|
- use uiState instead of open_room
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ Button {
|
||||||
id: button
|
id: button
|
||||||
enabled: ! button.loading
|
enabled: ! button.loading
|
||||||
spacing: theme.spacing
|
spacing: theme.spacing
|
||||||
topPadding: padded ? spacing / (circle ? 1.75 : 1.5) : 0
|
topPadding: padded ? spacing / (circle ? 1.75 : 2) : 0
|
||||||
bottomPadding: topPadding
|
bottomPadding: topPadding
|
||||||
leftPadding: padded ? spacing / (circle ? 1.5 : 1) : 0
|
leftPadding: padded ? spacing / (circle ? 1.5 : 1) : 0
|
||||||
rightPadding: leftPadding
|
rightPadding: leftPadding
|
||||||
|
|
|
@ -18,6 +18,9 @@ HButton {
|
||||||
property alias contextMenu: contextMenuLoader.sourceComponent
|
property alias contextMenu: contextMenuLoader.sourceComponent
|
||||||
|
|
||||||
|
|
||||||
|
Behavior on topPadding { HNumberAnimation {} }
|
||||||
|
Behavior on bottomPadding { HNumberAnimation {} }
|
||||||
|
|
||||||
Binding on topPadding {
|
Binding on topPadding {
|
||||||
value: spacing / 4
|
value: spacing / 4
|
||||||
when: compact
|
when: compact
|
||||||
|
|
|
@ -85,25 +85,6 @@ HTile {
|
||||||
property bool isCurrent: false
|
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 {
|
HShortcut {
|
||||||
enabled: isCurrent
|
enabled: isCurrent
|
||||||
sequences: window.settings.keys.accountSettings
|
sequences: window.settings.keys.accountSettings
|
||||||
|
|
|
@ -8,15 +8,13 @@ HDrawer {
|
||||||
id: mainPane
|
id: mainPane
|
||||||
saveName: "mainPane"
|
saveName: "mainPane"
|
||||||
background: null
|
background: null
|
||||||
// minimumSize: bottomBar.addAccountButton.width
|
minimumSize:
|
||||||
|
accountBar.width + theme.controls.avatar.size + theme.spacing * 2
|
||||||
|
|
||||||
readonly property alias accountBar: accountBar
|
readonly property alias accountBar: accountBar
|
||||||
readonly property alias roomList: roomList
|
readonly property alias roomList: roomList
|
||||||
readonly property alias filterRoomsField: filterRoomsField
|
readonly property alias filterRoomsField: filterRoomsField
|
||||||
|
|
||||||
readonly property bool small:
|
|
||||||
width < theme.controls.avatar.size + theme.spacing * 2
|
|
||||||
|
|
||||||
|
|
||||||
Behavior on opacity { HNumberAnimation {} }
|
Behavior on opacity { HNumberAnimation {} }
|
||||||
|
|
||||||
|
|
|
@ -22,11 +22,7 @@ HTileDelegate {
|
||||||
displayName: model.display_name
|
displayName: model.display_name
|
||||||
mxc: model.avatar_url
|
mxc: model.avatar_url
|
||||||
compact: room.compact
|
compact: room.compact
|
||||||
|
radius: theme.accountView.roomList.room.avatarRadius
|
||||||
radius:
|
|
||||||
mainPane.small ?
|
|
||||||
theme.accountView.roomList.room.collapsedAvatarRadius :
|
|
||||||
theme.accountView.roomList.room.avatarRadius
|
|
||||||
|
|
||||||
Behavior on radius { HNumberAnimation {} }
|
Behavior on radius { HNumberAnimation {} }
|
||||||
}
|
}
|
||||||
|
@ -215,20 +211,4 @@ HTileDelegate {
|
||||||
|
|
||||||
|
|
||||||
Behavior on opacity { HNumberAnimation {} }
|
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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -311,7 +311,6 @@ accountView:
|
||||||
color subtitleQuote: chat.message.quote
|
color subtitleQuote: chat.message.quote
|
||||||
|
|
||||||
int avatarRadius: controls.avatar.radius
|
int avatarRadius: controls.avatar.radius
|
||||||
int collapsedAvatarRadius: controls.avatar.radius
|
|
||||||
|
|
||||||
unreadIndicator:
|
unreadIndicator:
|
||||||
color background: colors.accentBackground
|
color background: colors.accentBackground
|
||||||
|
|
Loading…
Reference in New Issue
Block a user