Add toggleCompactMode keybind, re-rename setting
This commit is contained in:
parent
18c16ca486
commit
53dfd08131
|
@ -208,7 +208,7 @@ class UISettings(JSONDataFile):
|
||||||
return {
|
return {
|
||||||
"alertOnMessageForMsec": 4000,
|
"alertOnMessageForMsec": 4000,
|
||||||
"alwaysCenterRoomHeader": False,
|
"alwaysCenterRoomHeader": False,
|
||||||
"compactModeByDefault": False,
|
"compactMode": True,
|
||||||
"clearRoomFilterOnEnter": True,
|
"clearRoomFilterOnEnter": True,
|
||||||
"clearRoomFilterOnEscape": True,
|
"clearRoomFilterOnEscape": True,
|
||||||
"collapseSidePanesUnderWindowWidth": 400,
|
"collapseSidePanesUnderWindowWidth": 400,
|
||||||
|
@ -232,6 +232,7 @@ class UISettings(JSONDataFile):
|
||||||
"zoomIn": ["Ctrl++"],
|
"zoomIn": ["Ctrl++"],
|
||||||
"zoomOut": ["Ctrl+-"],
|
"zoomOut": ["Ctrl+-"],
|
||||||
"zoomReset": ["Ctrl+="],
|
"zoomReset": ["Ctrl+="],
|
||||||
|
"toggleCompactMode": ["Ctrl+Alt+C"],
|
||||||
|
|
||||||
"scrollUp": ["Alt+Up", "Alt+K"],
|
"scrollUp": ["Alt+Up", "Alt+K"],
|
||||||
"scrollDown": ["Alt+Down", "Alt+J"],
|
"scrollDown": ["Alt+Down", "Alt+J"],
|
||||||
|
|
|
@ -11,7 +11,7 @@ HButton {
|
||||||
|
|
||||||
default property alias additionalData: contentItem.data
|
default property alias additionalData: contentItem.data
|
||||||
|
|
||||||
property bool compact: window.settings.compactModeByDefault
|
property bool compact: window.settings.compactMode
|
||||||
property real contentOpacity: 1
|
property real contentOpacity: 1
|
||||||
|
|
||||||
readonly property alias title: title
|
readonly property alias title: title
|
||||||
|
|
|
@ -78,6 +78,14 @@ Item {
|
||||||
onActivated: theme.uiScale = 1
|
onActivated: theme.uiScale = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HShortcut {
|
||||||
|
sequences: settings.keys.toggleCompactMode
|
||||||
|
onActivated: {
|
||||||
|
settings.compactMode = ! settings.compactMode
|
||||||
|
settingsChanged()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Pages
|
// Pages
|
||||||
|
|
||||||
HShortcut {
|
HShortcut {
|
||||||
|
|
|
@ -20,7 +20,7 @@ HColumnLayout {
|
||||||
readonly property var nextModel: eventList.model.get(model.index - 1)
|
readonly property var nextModel: eventList.model.get(model.index - 1)
|
||||||
readonly property QtObject currentModel: model
|
readonly property QtObject currentModel: model
|
||||||
|
|
||||||
property bool compact: window.settings.compactModeByDefault
|
property bool compact: window.settings.compactMode
|
||||||
property bool isOwn: chat.userId === model.sender_id
|
property bool isOwn: chat.userId === model.sender_id
|
||||||
property bool onRight: eventList.ownEventsOnRight && isOwn
|
property bool onRight: eventList.ownEventsOnRight && isOwn
|
||||||
property bool combine: eventList.canCombine(previousModel, model)
|
property bool combine: eventList.canCombine(previousModel, model)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user