Add setting controlling when panes should collapse
This commit is contained in:
parent
84734599e3
commit
5392016dab
|
@ -196,6 +196,7 @@ class UISettings(JSONDataFile):
|
|||
"alertOnMessageForMsec": 4000,
|
||||
"clearRoomFilterOnEnter": True,
|
||||
"clearRoomFilterOnEscape": True,
|
||||
"collapseSidePanesUnderWindowWidth": 400,
|
||||
"theme": "Midnight.qpl",
|
||||
"writeAliases": {},
|
||||
"media": {
|
||||
|
|
|
@ -54,7 +54,8 @@ Drawer {
|
|||
property Item referenceSizeParent: parent
|
||||
|
||||
property bool collapse:
|
||||
(horizontal ? window.width : window.height) < 400 * theme.uiScale
|
||||
(horizontal ? window.width : window.height) <
|
||||
window.settings.collapseSidePanesUnderWindowWidth * theme.uiScale
|
||||
|
||||
property int peekSizeWhileCollapsed:
|
||||
horizontal ? referenceSizeParent.width : referenceSizeParent.height
|
||||
|
|
Loading…
Reference in New Issue
Block a user