From e2d2c1232d10511693d058e0790183ba57ecd5d1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 26 Jul 2015 22:23:08 +0200 Subject: Extended available settings and changed them to value properties Otherwise each runtime change of a property leads to storing the new value to disk which we don't want - setting changes should be explicit and visible as such. --- qml/main.qml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'qml/main.qml') diff --git a/qml/main.qml b/qml/main.qml index a45ee73..19d19fc 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -7,17 +7,19 @@ ApplicationWindow { id: root visible: true - color: "#161616" - - Component.onCompleted: { - terminalList.createItem(); - terminalList.focusCurrent(); - } Settings { + id: settings category: "window" - property alias color : root.color + property color background : "#161616" + } + + color: settings.background + + Component.onCompleted: { + terminalList.createItem(); + terminalList.focusCurrent(); } Flickable { -- cgit v1.2.3