Change the divider height and color to be more consistent.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-06-27 07:16:11 -04:00 committed by AT
parent 8d6e11fcad
commit a1ec6f2150
8 changed files with 18 additions and 25 deletions

View File

@ -77,7 +77,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
} }
@ -307,7 +307,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
} }
@ -463,7 +463,7 @@ MySettingsTab {
Layout.column: 0 Layout.column: 0
Layout.columnSpan: 3 Layout.columnSpan: 3
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
} }

View File

@ -23,7 +23,7 @@ Rectangle {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.right: parent.right anchors.right: parent.right
width: 2 width: 1
color: theme.dividerColor color: theme.dividerColor
} }
@ -44,8 +44,8 @@ Rectangle {
anchors.right: parent.right anchors.right: parent.right
anchors.margins: 20 anchors.margins: 20
font.pixelSize: theme.fontSizeLarger font.pixelSize: theme.fontSizeLarger
topPadding: 20 topPadding: 24
bottomPadding: 20 bottomPadding: 24
text: qsTr("\uFF0B New chat") text: qsTr("\uFF0B New chat")
Accessible.description: qsTr("Create a new chat") Accessible.description: qsTr("Create a new chat")
onClicked: { onClicked: {
@ -59,7 +59,7 @@ Rectangle {
id: divider id: divider
anchors.top: newChat.bottom anchors.top: newChat.bottom
anchors.margins: 20 anchors.margins: 20
anchors.topMargin: 15 anchors.topMargin: 14
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
height: 1 height: 1

View File

@ -525,7 +525,7 @@ Rectangle {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
color: theme.conversationDivider color: theme.conversationDivider
height: 2 height: 1
} }
CollectionsDrawer { CollectionsDrawer {

View File

@ -21,7 +21,7 @@ Rectangle {
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: parent.left anchors.left: parent.left
width: 2 width: 1
color: theme.dividerColor color: theme.dividerColor
} }

View File

@ -31,7 +31,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.bottomMargin: 15 Layout.bottomMargin: 15
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
@ -92,7 +92,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.bottomMargin: 15 Layout.bottomMargin: 15
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.grayRed500 color: theme.grayRed500
} }
@ -154,7 +154,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.bottomMargin: 15 Layout.bottomMargin: 15
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.grayRed500 color: theme.grayRed500
} }
@ -184,7 +184,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.bottomMargin: 15 Layout.bottomMargin: 15
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
@ -254,7 +254,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.topMargin: 15 Layout.topMargin: 15
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
} }

View File

@ -38,7 +38,7 @@ MySettingsTab {
Rectangle { Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
} }
@ -803,7 +803,7 @@ MySettingsTab {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: 15 Layout.topMargin: 15
Layout.fillWidth: true Layout.fillWidth: true
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }
} }

View File

@ -57,7 +57,7 @@ Item {
anchors.rightMargin: 15 anchors.rightMargin: 15
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
height: 2 height: 1
color: theme.settingsDivider color: theme.settingsDivider
} }

View File

@ -195,14 +195,7 @@ QtObject {
} }
property color conversationDivider: { property color conversationDivider: {
switch (MySettings.chatTheme) { return dividerColor;
case "LegacyDark":
return blue900;
case "Dark":
return darkgray100;
default:
return gray100;
}
} }
property color settingsDivider: { property color settingsDivider: {