From 94c4bbc3db6de002b51b3ead6271ce6c04d90638 Mon Sep 17 00:00:00 2001 From: Felipe Kinoshita Date: Tue, 17 Aug 2021 16:39:55 -0300 Subject: [PATCH] Center section label and change it's color This commit horizontally centers the section label and gives it a disabled text color, this helps visually separate this label from the actual messages and makes it easier to scan. --- imports/NeoChat/Component/Timeline/SectionDelegate.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imports/NeoChat/Component/Timeline/SectionDelegate.qml b/imports/NeoChat/Component/Timeline/SectionDelegate.qml index 221c21719..e94fba922 100644 --- a/imports/NeoChat/Component/Timeline/SectionDelegate.qml +++ b/imports/NeoChat/Component/Timeline/SectionDelegate.qml @@ -9,6 +9,8 @@ import org.kde.kirigami 2.15 as Kirigami Kirigami.Heading { level: 4 text: model.showSection ? section : "" + color: Kirigami.Theme.disabledTextColor + horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter topPadding: Kirigami.Units.largeSpacing * 2 bottomPadding: Kirigami.Units.smallSpacing