diff --git a/ui/app/AppLayouts/Chat/ChatColumn/Message.qml b/ui/app/AppLayouts/Chat/ChatColumn/Message.qml index 20b05c7c40..0c6b770432 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/Message.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/Message.qml @@ -36,7 +36,7 @@ Item { property var scrollToBottom: function () {} property var appSettings - property bool isCompact: true + property bool isCompact: appSettings.compactMode id: messageItem width: parent.width diff --git a/ui/app/AppLayouts/Profile/ProfileLayout.qml b/ui/app/AppLayouts/Profile/ProfileLayout.qml index 292c2f03a6..1da01fa9d9 100644 --- a/ui/app/AppLayouts/Profile/ProfileLayout.qml +++ b/ui/app/AppLayouts/Profile/ProfileLayout.qml @@ -51,7 +51,7 @@ SplitView { NotificationsContainer {} AdvancedContainer { - appSettings: profileView.appSettings + appSettings: profileView.appSettings } HelpContainer {} diff --git a/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml b/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml index b1073033d7..bdb3128ce6 100644 --- a/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml +++ b/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml @@ -6,6 +6,7 @@ import "../../../../shared" Item { property var appSettings + id: advancedContainer width: 200 height: 200 @@ -46,18 +47,36 @@ Item { } Switch { checked: themeSetting.isDarkTheme - onCheckedChanged: function(value) { + onToggled: function() { profileModel.changeTheme(themeSetting.isDarkTheme ? 0 : 1) } } } RowLayout { - id: walletTabSettings + property bool isCompactMode: appSettings.compactMode + id: compactModeSetting anchors.top: themeSetting.bottom anchors.topMargin: 20 anchors.left: parent.left anchors.leftMargin: 24 + StyledText { + text: qsTr("Chat Compact Mode") + } + Switch { + checked: compactModeSetting.isCompactMode + onToggled: function() { + appSettings.compactMode = !compactModeSetting.isCompactMode + } + } + } + + RowLayout { + id: walletTabSettings + anchors.top: compactModeSetting.bottom + anchors.topMargin: 20 + anchors.left: parent.left + anchors.leftMargin: 24 StyledText { //% "Wallet Tab" text: qsTrId("wallet-tab") diff --git a/ui/main.qml b/ui/main.qml index 5098c219a5..bbaffa79f9 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -62,6 +62,7 @@ ApplicationWindow { property var walletSplitView property var profileSplitView property bool displayChatImages: false + property bool compactMode } SystemTrayIcon {