From a1adce298e76a8c130fcd10a24aee51b4f051744 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 24 Jan 2018 16:56:53 +0100 Subject: [PATCH] Add color to "recommended"/"custom" button texts --- resources/qml/Sidebar.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/resources/qml/Sidebar.qml b/resources/qml/Sidebar.qml index d12515c004..a16894a33f 100644 --- a/resources/qml/Sidebar.qml +++ b/resources/qml/Sidebar.qml @@ -214,6 +214,18 @@ Rectangle horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter elide: Text.ElideRight + color: + { + if(control.pressed) + { + return UM.Theme.getColor("action_button_active_text"); + } + else if(control.hovered) + { + return UM.Theme.getColor("action_button_hovered_text"); + } + return UM.Theme.getColor("action_button_text"); + } } } }