From 9dd1bfad2d0b0319eccf21303e2fa2a458783e1d Mon Sep 17 00:00:00 2001 From: David Rowe Date: Wed, 24 Feb 2016 10:54:36 +1300 Subject: [PATCH] Fix tree view branch indicator colors Using interim HiFi glyphs until branch triangles are added to the font. --- interface/resources/qml/controls-uit/Tree.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/interface/resources/qml/controls-uit/Tree.qml b/interface/resources/qml/controls-uit/Tree.qml index 18eab55563..8377812acc 100644 --- a/interface/resources/qml/controls-uit/Tree.qml +++ b/interface/resources/qml/controls-uit/Tree.qml @@ -54,6 +54,18 @@ TreeView { backgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightEven : hifi.colors.tableRowDarkEven alternateBackgroundColor: parent.isLightColorScheme ? hifi.colors.tableRowLightOdd : hifi.colors.tableRowDarkOdd + branchDelegate: HiFiGlyphs { + text: styleData.isExpanded ? "Z" : "B" + size: hifi.fontSizes.tableText * 2.5 // tableText is in points; proportionately scale to pixels + color: colorScheme == hifi.colorSchemes.light + ? (styleData.selected ? hifi.colors.black : hifi.colors.baseGrayHighlight) + : (styleData.selected ? hifi.colors.black : hifi.colors.lightGrayText) + anchors { + left: parent.left + leftMargin: hifi.dimensions.tablePadding / 2 + } + } + handle: Item { id: scrollbarHandle implicitWidth: 6