Rename compact mode setting → compactModeByDefault

This commit is contained in:
miruka 2020-03-22 13:24:38 -04:00
parent d29b393ad2
commit 18c16ca486
3 changed files with 3 additions and 3 deletions

View File

@ -208,7 +208,7 @@ class UISettings(JSONDataFile):
return {
"alertOnMessageForMsec": 4000,
"alwaysCenterRoomHeader": False,
"alwaysUseCompactMode": False,
"compactModeByDefault": False,
"clearRoomFilterOnEnter": True,
"clearRoomFilterOnEscape": True,
"collapseSidePanesUnderWindowWidth": 400,

View File

@ -11,7 +11,7 @@ HButton {
default property alias additionalData: contentItem.data
property bool compact: window.settings.alwaysUseCompactMode
property bool compact: window.settings.compactModeByDefault
property real contentOpacity: 1
readonly property alias title: title

View File

@ -20,7 +20,7 @@ HColumnLayout {
readonly property var nextModel: eventList.model.get(model.index - 1)
readonly property QtObject currentModel: model
property bool compact: window.settings.alwaysUseCompactMode
property bool compact: window.settings.compactModeByDefault
property bool isOwn: chat.userId === model.sender_id
property bool onRight: eventList.ownEventsOnRight && isOwn
property bool combine: eventList.canCombine(previousModel, model)