aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Gottfried <sebastian.gottfried@posteo.de>2016-10-14 07:17:56 (GMT)
committerSebastian Gottfried <sebastian.gottfried@posteo.de>2016-10-14 07:17:56 (GMT)
commit303915efbed2719712ec161ce411d68af7304804 (patch)
tree9400f43162a065a41342128b6f6a7910f91e22ea
parenta04275a4d3ca7e83f2592fea59920addfc317049 (diff)
KeyItem: Remove Old Tinting Hack
In Qt Quick 2 we can properly access color components don't have to use string manipulation to achieve color tinting.
-rw-r--r--src/qml/KeyItem.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/KeyItem.qml b/src/qml/KeyItem.qml
index 20c825f..9f283d7 100644
--- a/src/qml/KeyItem.qml
+++ b/src/qml/KeyItem.qml
@@ -74,8 +74,7 @@ Item {
}
function getTint(color) {
- // stupid hack to set alpha because in Qt Quick 1.1 it's impossible to access color components
- color = "#20" + ("" + color).substr(1)
+ color.a = 0.125
return color
}