Improve overall theme and pane colors
This commit is contained in:
@@ -35,9 +35,9 @@ HAvatar {
|
||||
"user-power-50"
|
||||
|
||||
colorize:
|
||||
invited ? theme.chat.roomPane.member.invitedIcon :
|
||||
admin ? theme.chat.roomPane.member.adminIcon :
|
||||
theme.chat.roomPane.member.moderatorIcon
|
||||
invited ? theme.chat.roomPane.listView.member.invitedIcon :
|
||||
admin ? theme.chat.roomPane.listView.member.adminIcon :
|
||||
theme.chat.roomPane.listView.member.moderatorIcon
|
||||
|
||||
HoverHandler { id: membershipIcon }
|
||||
|
||||
|
@@ -6,32 +6,12 @@ import QtQuick.Layouts 1.12
|
||||
|
||||
HDrawer {
|
||||
id: pane
|
||||
|
||||
defaultSize: buttonRepeater.summedImplicitWidth
|
||||
minimumSize:
|
||||
buttonRepeater.count > 0 ? buttonRepeater.itemAt(0).implicitWidth : 0
|
||||
|
||||
background: HColumnLayout{
|
||||
Rectangle {
|
||||
color: buttonsBackgroundColor
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: buttonFlow.height
|
||||
|
||||
Behavior on Layout.preferredHeight { HNumberAnimation {} }
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
color: backgroundColor
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
property color buttonsBackgroundColor
|
||||
property color backgroundColor
|
||||
|
||||
readonly property alias buttonRepeater: buttonRepeater
|
||||
readonly property alias swipeView: swipeView
|
||||
@@ -42,14 +22,20 @@ HDrawer {
|
||||
HColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
HFlow {
|
||||
id: buttonFlow
|
||||
populate: null
|
||||
Rectangle {
|
||||
color: buttonsBackgroundColor
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: childrenRect.height
|
||||
|
||||
HRepeater {
|
||||
id: buttonRepeater
|
||||
HFlow {
|
||||
id: buttonFlow
|
||||
width: parent.width
|
||||
populate: null
|
||||
|
||||
HRepeater {
|
||||
id: buttonRepeater
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user