diff options
author | Adrian Kummerlaender | 2015-07-26 22:23:08 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2015-07-26 22:23:08 +0200 |
commit | e2d2c1232d10511693d058e0790183ba57ecd5d1 (patch) | |
tree | b783c60b19eadc8db54c54d7a4ab7b0ee5c5f504 /qml/main.qml | |
parent | 3af7553b2e7cf4f301d61eeac563f07bd405c66c (diff) | |
download | MetaTerm-e2d2c1232d10511693d058e0790183ba57ecd5d1.tar MetaTerm-e2d2c1232d10511693d058e0790183ba57ecd5d1.tar.gz MetaTerm-e2d2c1232d10511693d058e0790183ba57ecd5d1.tar.bz2 MetaTerm-e2d2c1232d10511693d058e0790183ba57ecd5d1.tar.lz MetaTerm-e2d2c1232d10511693d058e0790183ba57ecd5d1.tar.xz MetaTerm-e2d2c1232d10511693d058e0790183ba57ecd5d1.tar.zst MetaTerm-e2d2c1232d10511693d058e0790183ba57ecd5d1.zip |
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.
Diffstat (limited to 'qml/main.qml')
-rw-r--r-- | qml/main.qml | 16 |
1 files changed, 9 insertions, 7 deletions
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 { |