From 1ff6ee682c91a39e2df3a9b11a8daab73005c3ed Mon Sep 17 00:00:00 2001 From: Svintsov Dmitry Date: Tue, 17 May 2016 15:54:59 +0500 Subject: [PATCH] Added color options for SectionHEader --- src/listitems/SectionHeader.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/listitems/SectionHeader.qml b/src/listitems/SectionHeader.qml index e5b8679c..477c079c 100644 --- a/src/listitems/SectionHeader.qml +++ b/src/listitems/SectionHeader.qml @@ -25,6 +25,8 @@ BaseListItem { property alias text: label.text property alias iconName: icon.name property bool expanded: false + property color iconSelectedColor: listItem.expanded ? Theme.primaryColor : Theme.light.iconColor + property color labelSelectedColor: listItem.expanded ? Theme.primaryColor : Theme.light.textColor height: 48 * Units.dp @@ -52,7 +54,7 @@ BaseListItem { } visible: name != "" - color: listItem.expanded ? Theme.primaryColor : Theme.light.iconColor + color: iconSelectedColor size: 24 * Units.dp } } @@ -66,7 +68,7 @@ BaseListItem { elide: Text.ElideRight style: "subheading" - color: listItem.expanded ? Theme.primaryColor : Theme.light.textColor + color: labelSelectedColor } Item {