From 5582d39a3f2146000925e56755c90918de9ddd6d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Wed, 5 Jul 2023 09:48:38 -0400
Subject: [PATCH] settings: update selected colors

Change-Id: I18191ef1a4e5e3a62d509e3871ea33550951e690
GitLab: #1237
---
 src/app/settingsview/SettingsSidePanel.qml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/app/settingsview/SettingsSidePanel.qml b/src/app/settingsview/SettingsSidePanel.qml
index 10d1bb8ce..0ad243d62 100644
--- a/src/app/settingsview/SettingsSidePanel.qml
+++ b/src/app/settingsview/SettingsSidePanel.qml
@@ -209,7 +209,7 @@ SidePanelBase {
                     buttonTextFont.weight: isChildSelected ? Font.Medium : Font.Normal
                     buttonTextEnableElide: true
 
-                    normalColor: isChildSelected ? JamiTheme.smartListSelectedColor : "transparent"
+                    normalColor: "transparent"
                     hoveredColor: JamiTheme.smartListHoveredColor
                     imageColor: JamiTheme.tintedBlue
 
@@ -244,9 +244,8 @@ SidePanelBase {
                             radius: 0
 
                             alignement: Text.AlignLeft
-                            Layout.preferredWidth: parent.width - 28
-                            Layout.leftMargin: 28
-                            preferredLeftMargin: 47
+                            Layout.fillWidth: true
+                            preferredLeftMargin: 74
 
                             imageContainerWidth: 0
                             height: JamiTheme.settingsMenuChildrenButtonHeight
@@ -256,7 +255,7 @@ SidePanelBase {
                             buttonTextFont.weight: isSelected ? Font.Medium : Font.Normal
                             buttonTextEnableElide: true
 
-                            normalColor: "transparent"
+                            normalColor: isSelected ? JamiTheme.smartListSelectedColor : "transparent"
                             hoveredColor: JamiTheme.smartListHoveredColor
 
                             onClicked: open(modelData.id)
-- 
GitLab