diff options
Diffstat (limited to 'src/Authoring/Studio/Application/FilterVariantsDlg.qml')
-rw-r--r-- | src/Authoring/Studio/Application/FilterVariantsDlg.qml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Application/FilterVariantsDlg.qml b/src/Authoring/Studio/Application/FilterVariantsDlg.qml index 1f971509..d66e88a3 100644 --- a/src/Authoring/Studio/Application/FilterVariantsDlg.qml +++ b/src/Authoring/Studio/Application/FilterVariantsDlg.qml @@ -165,7 +165,8 @@ Rectangle { Rectangle { property bool toggled: tagsModel ? tagsModel.selected : false - property string grpColor: grpModel ? grpModel.color : "" + property color grpColor: grpModel ? grpModel.color : "" + property bool isBright: grpModel ? _utils.isBright(grpModel.color) : false width: Math.max(tLabel.width + 10, 60) height: 25 @@ -176,7 +177,8 @@ Rectangle { id: tLabel anchors.centerIn: parent text: tagsModel ? tagsModel.tag : "" - color: toggled ? _textColor : _studioColor4 + color: toggled ? (isBright ? _studioColor1 : _textColor) + : _studioColor4 } MouseArea { |