fix: fix handle being to ugly and channel list interfering with handle
This commit is contained in:
parent
9683b7a79e
commit
61d62eea79
|
@ -15,11 +15,8 @@ Rectangle {
|
||||||
id: wrapper
|
id: wrapper
|
||||||
color: ListView.isCurrentItem ? Theme.lightBlue : Theme.transparent
|
color: ListView.isCurrentItem ? Theme.lightBlue : Theme.transparent
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Theme.padding
|
|
||||||
anchors.top: applicationWindow.top
|
anchors.top: applicationWindow.top
|
||||||
anchors.topMargin: 0
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Theme.padding
|
|
||||||
radius: 8
|
radius: 8
|
||||||
// Hide the box if it is filtered out
|
// Hide the box if it is filtered out
|
||||||
property bool isVisible: searchStr == "" || name.includes(searchStr)
|
property bool isVisible: searchStr == "" || name.includes(searchStr)
|
||||||
|
|
|
@ -14,7 +14,12 @@ Item {
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: chatGroupsListView
|
id: chatGroupsListView
|
||||||
anchors.fill: parent
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: parent.right
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.rightMargin: Theme.padding
|
||||||
|
anchors.leftMargin: Theme.padding
|
||||||
model: chatsModel.chats
|
model: chatsModel.chats
|
||||||
delegate: Channel {
|
delegate: Channel {
|
||||||
name: model.name
|
name: model.name
|
||||||
|
|
|
@ -3,8 +3,7 @@ import QtQuick.Controls 2.13
|
||||||
import "../imports"
|
import "../imports"
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
// FIXME setting this 1 is prettier, but makes the handle complety unusable (too small to grab)
|
implicitWidth: 1.2
|
||||||
implicitWidth: 2
|
|
||||||
color: SplitHandle.pressed ? Theme.darkGrey
|
color: SplitHandle.pressed ? Theme.darkGrey
|
||||||
: (SplitHandle.hovered ? Qt.darker(Theme.grey, 1.1) : Theme.grey)
|
: (SplitHandle.hovered ? Qt.darker(Theme.grey, 1.1) : Theme.grey)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue