From aca84cb4ef24c1b4b9e3d53126081db8b14855e2 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 12 Aug 2015 20:24:52 +0200 Subject: Change color setting types to `string` While `color` would obviously be the correct type to store a color value it is serialized as a `QVariant` value which is not easily changeable by the user. This requirement is satisfied by `string` and as such this type is - at this point in time - a superior replacement of `color`. Should the QML settings module be changed to serialize color values in a human readable fashion these types should be changed back to their formally correct value. --- qml/CommandInput.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'qml/CommandInput.qml') diff --git a/qml/CommandInput.qml b/qml/CommandInput.qml index 1f67f7c..5fbde77 100644 --- a/qml/CommandInput.qml +++ b/qml/CommandInput.qml @@ -17,11 +17,11 @@ Item { id: settings category: "command" - property color background : "black" + property string background : "black" property int fontSize : 12 property string fontFamily : "Monospace" - property color fontColor : "white" - property color errorColor : "red" + property string fontColor : "white" + property string errorColor : "red" } onVisibleChanged: container.reset() -- cgit v1.2.3