From 96a78d06c9dd856284cecaeb64e87200ba398449 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Thu, 19 Jul 2018 17:19:09 +0200 Subject: [PATCH] graphical improvements --- graphics/TreffpunktFannyLogo.png | Bin 0 -> 8941 bytes qml/AppToolBar.qml | 7 +--- qml/FoodPlanForm.qml | 1 + qml/HomeForm.qml | 1 + qml/MainPage.qml | 65 +++++++++++++++++++++++++++---- qml/WebsitePage.qml | 1 + shared.qrc | 2 + 7 files changed, 64 insertions(+), 13 deletions(-) create mode 100644 graphics/TreffpunktFannyLogo.png diff --git a/graphics/TreffpunktFannyLogo.png b/graphics/TreffpunktFannyLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..23872c783b606d69d856860855d857d52fb58b43 GIT binary patch literal 8941 zcma)i1%OdH??em?J>W^v_5TqGO;zu!2iK z&cvC6lJx`t*Z?{(RYb(%QE_Au4YqagQ+1a|qT5TLD>ZE%W#H#xKZI>*K?m2se~(-ib=Cd)_$m4#Sok@Oi8lLx|1Yq4&RO&f@RjPBHZ!FL_KShg%49WX z*GlH&l4T|tYAi{-K%nU~u|NF+Gd7NWstyMpzc)UsdMtjRNHHhis-9U zTDaz-|DRFH-==BjQ;U+J3z4R+$iFlU>e7f~F%=WoERIMLq|(K9>+yOR0PN1>fvy#$4{5$m1yk%&>yc_~ z*Q>x0w?O$qjRH-D>s0e|wB;8ul2WNlS$uRpM$?h3E@enqB@Qv2IEp+_#~U!kvwek^ zrHzYa-I}*{bXm?k_`6xPN({`B7yW3&oS+Rd6Ok|b4$xP3<;?h4KEzB1WJ;sW*4zgD zz9qc`_pRb#@A(cDSCykb*7?)jD$!`TI_9chPf%7=r+qQN(s!&GsMrDar2M?BK96lA zcuJgZi(|}WF0zaWl6eM!#{eZ6*j+LH1kT`Am7y07WPQH$b=R_B&+CHmo5u(a_p)lx z9D7g((8-3ovAk>k8@zvyG54B5_1tvbc6nwCkFMuar2RnnnQVXy+Sr!t&*RM_1%wE> zthT~FK(wz>k)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Un-$%MU`BZQ+4mY zWMON19aXaUTx`wCe{G2>1S+vma7b%7 literal 0 HcmV?d00001 diff --git a/qml/AppToolBar.qml b/qml/AppToolBar.qml index efe3643..980493a 100644 --- a/qml/AppToolBar.qml +++ b/qml/AppToolBar.qml @@ -32,16 +32,15 @@ ToolBar { Text { anchors { - top: parent.top horizontalCenter: parent.horizontalCenter - topMargin: ( parent.height / 2 ) - ( height / 2 ) + verticalCenter: parent.verticalCenter } id: errorText font.family: "Helvetica" color: "White" font.pointSize: 8 - + visible: parent.height !== 0 text: window.error } } @@ -50,12 +49,10 @@ ToolBar { State { name: "moveOut" PropertyChanges { target: errorField; height: 0 } - PropertyChanges { target: errorText; height: 0 } }, State { name: "moveIn" PropertyChanges { target: errorField; height: 30 } - PropertyChanges { target: errorText; height: 0 } } ] diff --git a/qml/FoodPlanForm.qml b/qml/FoodPlanForm.qml index 03fbd33..db419e5 100644 --- a/qml/FoodPlanForm.qml +++ b/qml/FoodPlanForm.qml @@ -7,6 +7,7 @@ Page { //anchors.fill: parent property bool cookplanChanged title: qsTr("Speiseplanplan") + property string icon: "qrc:/graphics/TreffpunktFannyLogo.png" // Image{ // source: "qrc:/graphics/chat_background.jpg"; diff --git a/qml/HomeForm.qml b/qml/HomeForm.qml index e3a8fd3..5164979 100644 --- a/qml/HomeForm.qml +++ b/qml/HomeForm.qml @@ -6,6 +6,7 @@ Page { //anchors.fill: parent title: qsTr("Vertretungsplan") + property string icon: "qrc:/graphics/FannyLogo.png" // Image{ // source: "qrc:/graphics/chat_background.jpg"; diff --git a/qml/MainPage.qml b/qml/MainPage.qml index a2c2a74..e77e578 100644 --- a/qml/MainPage.qml +++ b/qml/MainPage.qml @@ -11,7 +11,6 @@ Page { enabled: stackView.depth > 1 onActivated: { stackView.pop() - listView.currentIndex = -1 } } @@ -27,7 +26,7 @@ Page { } background: Label { - text: stackView.depth > 1 ? "\u25C0" : "\u4E09" + text: stackView.depth > 1 ? "\u2BC7" : "\u4E09" font.pixelSize: Qt.application.font.pixelSize * 2 color: "white" } @@ -43,18 +42,60 @@ Page { Label { text: stackView.currentItem.title - anchors.centerIn: parent + anchors { + verticalCenter: parent.verticalCenter + left: toolButton.right + leftMargin: parent.width *0.01 + } + color: "white" } + + Image { + source: stackView.currentItem.icon + anchors.right: parent.right + anchors.rightMargin: parent.width *0.1 + anchors.top: parent.top + height: parent.height + fillMode: Image.PreserveAspectFit + mipmap: true + asynchronous: true + } } Drawer { id: drawer width: window.width * 0.66 height: window.height + AppToolBar { + id: header + showErrorBar: false + anchors { + top: parent.top + left: parent.left + right: parent.right + } + Label { + text: "MenĂ¼" + anchors { + verticalCenter: parent.verticalCenter + left: parent.left + leftMargin: 17 + } + + font.bold: true + } + } Column { - anchors.fill: parent + anchors { + top: header.bottom + bottom: parent.bottom + left: parent.left + right: parent.right + } + + ItemDelegate { text: qsTr("Fanny Webseite") width: parent.width @@ -79,11 +120,19 @@ Page { } ItemDelegate { - text: qsTr("abmelden") - width: parent.width - onClicked: { - confirmationDialog.open() + Label { + text: "abmelden" + color: "red" + anchors { + verticalCenter: parent.verticalCenter + left: parent.left + leftMargin: 17 + } + + font.bold: true } + width: parent.width + Dialog { id: confirmationDialog diff --git a/qml/WebsitePage.qml b/qml/WebsitePage.qml index 4522a63..dac2cb6 100644 --- a/qml/WebsitePage.qml +++ b/qml/WebsitePage.qml @@ -13,6 +13,7 @@ Page { objectName: "WebsitePage"; title: qsTr("Fanny Webseite") + property string icon: "qrc:/graphics/FannyLogo.png" ProgressBar { id: progress diff --git a/shared.qrc b/shared.qrc index f87ef6e..eda4938 100644 --- a/shared.qrc +++ b/shared.qrc @@ -4,5 +4,7 @@ graphics/sheute.png graphics/smorgen.png graphics/chat_background.jpg + graphics/FannyLogo.png + graphics/TreffpunktFannyLogo.png