diff options
author | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-28 21:23:19 +0700 |
---|---|---|
committer | Anatasof Wirapraja <anatasof.wirapraja@gmail.com> | 2019-08-28 21:23:19 +0700 |
commit | a21a42f2b1ae8fefe57c80409a1dbc24698933d5 (patch) | |
tree | 02d94b54dc3978f416c64f9767d2536a481f75cc | |
parent | 9e568057534642a43dfb2f1332930004e8002d60 (diff) |
prepare for Material components
-rw-r--r-- | kelakon.qrc | 1 | ||||
-rw-r--r-- | main.qml | 7 | ||||
-rw-r--r-- | qtquickcontrols2.conf | 8 |
3 files changed, 14 insertions, 2 deletions
diff --git a/kelakon.qrc b/kelakon.qrc index e36056f..98784b9 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -10,5 +10,6 @@ <file>assets/arrow-back-24px.svg</file> <file>pages/Password.qml</file> <file>pages/PasswordForm.ui.qml</file> + <file>qtquickcontrols2.conf</file> </qresource> </RCC> @@ -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 |