From 2917767f4fead4e59996bf0f1b4d1344516049df Mon Sep 17 00:00:00 2001 From: restitux Date: Fri, 19 Aug 2022 13:37:49 -0400 Subject: [PATCH] Change sidebar font color based on selected prop --- layouts/components/SidebarElement.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/components/SidebarElement.qml b/layouts/components/SidebarElement.qml index 769727e..aa639af 100644 --- a/layouts/components/SidebarElement.qml +++ b/layouts/components/SidebarElement.qml @@ -8,10 +8,10 @@ Rectangle { height: parent.height * 0.08 Row { anchors.verticalCenter: parent.verticalCenter - //Item { width: 50; height: 100} Text { font.pointSize: 15 text: name + color: selected ? "white" : "black" } } }