From a21a42f2b1ae8fefe57c80409a1dbc24698933d5 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Wed, 28 Aug 2019 21:23:19 +0700 Subject: prepare for Material components --- kelakon.qrc | 1 + main.qml | 7 +++++-- qtquickcontrols2.conf | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 qtquickcontrols2.conf diff --git a/kelakon.qrc b/kelakon.qrc index e36056f..98784b9 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -10,5 +10,6 @@ assets/arrow-back-24px.svg pages/Password.qml pages/PasswordForm.ui.qml + qtquickcontrols2.conf diff --git a/main.qml b/main.qml index 6bbb5af..3882c25 100644 --- a/main.qml +++ b/main.qml @@ -1,12 +1,15 @@ import QtQuick 2.12 import QtQuick.Controls 2.12 +import QtQuick.Controls.Material 2.12 ApplicationWindow { id: appWindow - width: 362 - height: 628 + width: 360 + height: 640 visible: true + Material.accent: Material.DeepPurple + StackView { id: stackView anchors.fill : parent diff --git a/qtquickcontrols2.conf b/qtquickcontrols2.conf new file mode 100644 index 0000000..1554f7a --- /dev/null +++ b/qtquickcontrols2.conf @@ -0,0 +1,8 @@ +[Controls] +Style=Material + +[Material] +Theme=Light +Primary=DeepPurple +Accent=DeepPurple +QT_QUICK_CONTROLS_MATERIAL_VARIANT=Normal \ No newline at end of file -- cgit v1.2.3