From a3f0f13ff3b937f59e8829f4f7283ec7ca478c6f Mon Sep 17 00:00:00 2001 From: dorian Date: Fri, 31 May 2019 19:06:04 +0200 Subject: [PATCH] finished up the layout of the profile and results view --- graphics/icons/ok.png | Bin 0 -> 2131 bytes qml/ProfilesDialog.qml | 72 +++++++++++++++++++------- qml/components/RemoteDataListView.qml | 7 +++ shared.qrc | 1 + sources/apptheme.cpp | 6 ++- 5 files changed, 64 insertions(+), 22 deletions(-) create mode 100644 graphics/icons/ok.png diff --git a/graphics/icons/ok.png b/graphics/icons/ok.png new file mode 100644 index 0000000000000000000000000000000000000000..e24854f8d826993ff8ec75fe7deaf860f39f9d6e GIT binary patch literal 2131 zcmV-Z2(0&sP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+T~bTvg^7H{KqP?1kS^9I99zKWcg`O)aXg}y_Ju| zs&gn)BnWgj0m{_={ZFTV;iH2wWULP^Iw$Zk(L|MS6U6daS}Dx zG+MoUb#0DM=(qa>KPSk1?k8WSoiGi_&G7hWUYYObxG)WAwe-vRo#LFA%psilr^+-t zjbFbT4=}2QJ*`MJEw#Y^z^iC@prcM`E&eO*757No>)HPTJKAn9;B9vo>_nRV`V0jL zHwU;2MzdeqOTXThQ74b&zVhiotD=hI=YU=BHT2$==#p_j%FzsJ4Q1S6UA|zcI4caz?JRwr1^^M(wr~cD zHc~jLt#nd&rM#5DF@T>0&y_YRg8^x+s**am(b|EWpm=S}@p6n+RxRB~Eg-^br#+~_ zMgdvISm?)_01YLpts!fzv)%?9ZF1TfXPtB2agIt}d*iKl-uvLAPXQS$*x-T>A;gfP ziW(`*Mi)KB5MxXUizb*(n4K^prL3~fCfn??&mqU03glBvvBec%LWw0+RdvPoudaHk zp~jk;Y>-kj%{JG33oW+Pp|!5N>9)J>d+4#JjkU?@nKgM~?mcUAvc`;=G0yL-q1*e_ zgyeK$nKLk^j0EGJ8GxV_b0&f`Mlo~DnTQIT!YZ&PEt69vGX@4tlgf6vakn$~mN&BI zE8f&A=7_2L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root.opacity < 1 ? Math.pow( root.opacity, 100 ) : Math.pow( root.opacity, 100 ) + glowOpacity: opacity < 1 ? Math.pow( opacity, 100 ) : Math.pow( opacity, 100 ) backgroundColor: appTheme.style.buttonColor - image: "qrc:/graphics/icons/ok_black.png" + image: appTheme.style.confirmIcon imageScale: profiles_stack.currentItem.secondButt === "ok" ? 1:0 Label { diff --git a/qml/components/RemoteDataListView.qml b/qml/components/RemoteDataListView.qml index e184bab..b750739 100644 --- a/qml/components/RemoteDataListView.qml +++ b/qml/components/RemoteDataListView.qml @@ -11,6 +11,9 @@ Item { property int status: -1 + property alias contentY: listView.contentY + property alias model: listView.model + signal refresh() Component.onCompleted: { @@ -27,6 +30,10 @@ Item { boundsBehavior: Flickable.DragOverBounds boundsMovement: Flickable.StopAtBounds + anchors.margins: 1 + anchors.rightMargin: 14 + clip: true + //enabled: status === 200 || status === 902 //opacity: enabled ? 1:0 diff --git a/shared.qrc b/shared.qrc index a5e6cc5..c430b9e 100644 --- a/shared.qrc +++ b/shared.qrc @@ -26,5 +26,6 @@ graphics/icons/buzzer.png graphics/icons/startpad.png graphics/icons/user_black.png + graphics/icons/ok.png diff --git a/sources/apptheme.cpp b/sources/apptheme.cpp index 74e7ddd..799f9d4 100644 --- a/sources/apptheme.cpp +++ b/sources/apptheme.cpp @@ -35,7 +35,8 @@ AppTheme::AppTheme(QObject *parent) : QObject(parent) {"buzzerIcon", "qrc:/graphics/icons/buzzer.png"}, {"startpadIcon", "qrc:/graphics/icons/startpad.png"}, {"baseStationIcon", "qrc:/graphics/icons/BaseStation.png"}, - {"profilesIcon", "qrc:/graphics/icons/user.png"} + {"profilesIcon", "qrc:/graphics/icons/user.png"}, + {"confirmIcon", "qrc:/graphics/icons/ok.png"} }; this->darkTheme = tmpDarkTheme; @@ -72,7 +73,8 @@ AppTheme::AppTheme(QObject *parent) : QObject(parent) {"buzzerIcon", "qrc:/graphics/icons/buzzer_black.png"}, {"startpadIcon", "qrc:/graphics/icons/startpad_black.png"}, {"baseStationIcon", "qrc:/graphics/icons/BaseStation_black.png"}, - {"profilesIcon", "qrc:/graphics/icons/user_black.png"} + {"profilesIcon", "qrc:/graphics/icons/user_black.png"}, + {"confirmIcon", "qrc:/graphics/icons/ok_black.png"} }; this->lightTheme = tmpLightTheme;