From 18acef7fd34a591ed0b06bb383ec52fe75a1eb65 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 13 Apr 2021 12:24:12 +0200 Subject: [PATCH] fix(ui): visually remove splitview handle --- ui/app/AppLayouts/Chat/ChatLayout.qml | 11 +---------- ui/shared/SplitViewHandle.qml | 2 +- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatLayout.qml b/ui/app/AppLayouts/Chat/ChatLayout.qml index 40dafc3469..410452a707 100644 --- a/ui/app/AppLayouts/Chat/ChatLayout.qml +++ b/ui/app/AppLayouts/Chat/ChatLayout.qml @@ -27,18 +27,9 @@ SplitView { chatColumn.onActivated() } - Connections { - target: appMain - onSettingsLoaded: { - // Add recent - chatView.restoreState(appSettings.chatSplitView) - } - } - Component.onDestruction: appSettings.chatSplitView = this.saveState() - Loader { id: contactColumnLoader - SplitView.preferredWidth: Style.current.leftTabPrefferedSize + SplitView.preferredWidth: Style.current.leftTabPreferredSize SplitView.minimumWidth: Style.current.leftTabMinimumWidth SplitView.maximumWidth: Style.current.leftTabMaximumWidth sourceComponent: appSettings.communitiesEnabled && chatsModel.communities.activeCommunity.active ? communtiyColumnComponent : contactsColumnComponent diff --git a/ui/shared/SplitViewHandle.qml b/ui/shared/SplitViewHandle.qml index f0e6b5457d..800f0c7e1b 100644 --- a/ui/shared/SplitViewHandle.qml +++ b/ui/shared/SplitViewHandle.qml @@ -3,7 +3,7 @@ import QtQuick.Controls 2.13 import "../imports" Rectangle { - implicitWidth: 1.2 + implicitWidth: 0 color: SplitHandle.pressed ? Style.current.darkGrey : (SplitHandle.hovered ? Qt.darker(Style.current.border, 1.1) : Style.current.transparent) }