diff --git a/AppWindow.qml b/AppWindow.qml new file mode 100644 index 0000000..57d7b7f --- /dev/null +++ b/AppWindow.qml @@ -0,0 +1,23 @@ +import QtQuick +import QtQuick.Controls.Basic + +ApplicationWindow { + id: root + visible: true + + palette { + accent: Theme.accent + dark: Theme.foreground + window: Theme.background + windowText: Theme.foreground + buttonText: Theme.foreground + base: Theme.muted + brightText: Theme.muted + text: Theme.foreground + button: Theme.accent + } + + title: qsTr("Flowy") + width: 640 + height: 480 +} diff --git a/CMakeLists.txt b/CMakeLists.txt index d6100c0..3897cd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,6 +19,7 @@ set(plain_qml_files AppSubHeadline.qml AppLabel.qml AppLogo.qml + AppWindow.qml ) set(qml_singletons Fonts.qml diff --git a/gallery/Main.qml b/gallery/Main.qml index 9b21ff6..00cce2e 100644 --- a/gallery/Main.qml +++ b/gallery/Main.qml @@ -5,7 +5,7 @@ import DesignSystem import QtQuick.Layouts import QtQuick.Controls.Basic -ApplicationWindow { +AppWindow { id: window width: 640 height: 480