From 1b44351b5c10d439286ac130050e3ec7f13fd162 Mon Sep 17 00:00:00 2001 From: Emeric Date: Mon, 9 Oct 2023 17:11:21 +0200 Subject: [PATCH] Update QML components --- .github/workflows/builds_mobile_cmake.yml | 8 +++--- qml/PageSelectors.qml | 28 ++++++++++++++----- qml/components_generic/ActionMenuItem.qml | 1 - qml/components_generic/RoundButtonText.qml | 1 - qml/components_generic/SelectorMenuItem.qml | 1 - .../SelectorMenuThemedItem.qml | 3 +- 6 files changed, 26 insertions(+), 16 deletions(-) diff --git a/.github/workflows/builds_mobile_cmake.yml b/.github/workflows/builds_mobile_cmake.yml index cb6f8cb..3497785 100644 --- a/.github/workflows/builds_mobile_cmake.yml +++ b/.github/workflows/builds_mobile_cmake.yml @@ -70,8 +70,8 @@ jobs: # Setup env - name: Setup env run: | - echo "QT_HOST_PATH=/home/runner/work/${{env.REPO_NAME}}/Qt/${{env.QT_VERSION}}/gcc_64" >> $GITHUB_ENV - echo "QT_TARGET_PATH=/home/runner/work/${{env.REPO_NAME}}/Qt/${{env.QT_VERSION}}/android_arm64_v8a" >> $GITHUB_ENV + echo "QT_HOST_PATH=/home/runner/work/${{env.APP_NAME}}/Qt/${{env.QT_VERSION}}/gcc_64" >> $GITHUB_ENV + echo "QT_TARGET_PATH=/home/runner/work/${{env.APP_NAME}}/Qt/${{env.QT_VERSION}}/android_arm64_v8a" >> $GITHUB_ENV cmake --version # Build application @@ -121,8 +121,8 @@ jobs: # Setup env - name: Setup env run: | - echo "QT_HOST_PATH=/home/runner/work/${{env.REPO_NAME}}/Qt/${{env.QT_VERSION}}/macos" >> $GITHUB_ENV - echo "QT_TARGET_PATH=/home/runner/work/${{env.REPO_NAME}}/Qt/${{env.QT_VERSION}}/ios" >> $GITHUB_ENV + echo "QT_HOST_PATH=/home/runner/work/${{env.APP_NAME}}/Qt/${{env.QT_VERSION}}/macos" >> $GITHUB_ENV + echo "QT_TARGET_PATH=/home/runner/work/${{env.APP_NAME}}/Qt/${{env.QT_VERSION}}/ios" >> $GITHUB_ENV cmake --version # Build application diff --git a/qml/PageSelectors.qml b/qml/PageSelectors.qml index 86e1ab0..a3a4bb6 100644 --- a/qml/PageSelectors.qml +++ b/qml/PageSelectors.qml @@ -20,13 +20,7 @@ Flickable { bottomPadding: Theme.componentMarginXL spacing: Theme.componentMarginXL - ListTitle { //////////////////////////////////////////////////////////// - anchors.leftMargin: singleColumn ? 0 : Theme.componentMargin - anchors.rightMargin: singleColumn ? 0 : Theme.componentMargin - - text: qsTr("Selectors") - icon: "" - } + //// ListModel { id: lmSelectorMenuTxt @@ -49,6 +43,16 @@ Flickable { //// + ListTitle { //////////////////////////////////////////////////////////// + anchors.leftMargin: singleColumn ? 0 : Theme.componentMargin + anchors.rightMargin: singleColumn ? 0 : Theme.componentMargin + + text: qsTr("Selectors") + icon: "" + } + + //// + SelectorMenuThemed { anchors.horizontalCenter: parent.horizontalCenter height: 32 @@ -93,6 +97,16 @@ Flickable { //// + ListTitle { //////////////////////////////////////////////////////////// + anchors.leftMargin: singleColumn ? 0 : Theme.componentMargin + anchors.rightMargin: singleColumn ? 0 : Theme.componentMargin + + text: qsTr("Selectors") + icon: "" + } + + //// + SelectorMenu { anchors.horizontalCenter: parent.horizontalCenter height: 32 diff --git a/qml/components_generic/ActionMenuItem.qml b/qml/components_generic/ActionMenuItem.qml index 4189beb..9449c91 100644 --- a/qml/components_generic/ActionMenuItem.qml +++ b/qml/components_generic/ActionMenuItem.qml @@ -27,7 +27,6 @@ T.Button { // settings property int index - //property string text property url source property int sourceSize: 20 property int layoutDirection: Qt.RightToLeft diff --git a/qml/components_generic/RoundButtonText.qml b/qml/components_generic/RoundButtonText.qml index cdae5f1..b1b00c2 100644 --- a/qml/components_generic/RoundButtonText.qml +++ b/qml/components_generic/RoundButtonText.qml @@ -13,7 +13,6 @@ T.Button { focusPolicy: Qt.NoFocus - //property string text property int textSize: Math.round(width * 0.333) // settings diff --git a/qml/components_generic/SelectorMenuItem.qml b/qml/components_generic/SelectorMenuItem.qml index c4611c2..4e4f3b9 100644 --- a/qml/components_generic/SelectorMenuItem.qml +++ b/qml/components_generic/SelectorMenuItem.qml @@ -19,7 +19,6 @@ T.Button { // settings property int index - //property string text property url source property int sourceSize: 32 diff --git a/qml/components_themed/SelectorMenuThemedItem.qml b/qml/components_themed/SelectorMenuThemedItem.qml index c438ec3..ba92181 100644 --- a/qml/components_themed/SelectorMenuThemedItem.qml +++ b/qml/components_themed/SelectorMenuThemedItem.qml @@ -19,7 +19,6 @@ T.Button { // settings property int index - //property string text property url source property int sourceSize: 32 @@ -68,7 +67,7 @@ T.Button { text: control.text textFormat: Text.PlainText - font.pixelSize: Theme.componentFontSize + font: control.font verticalAlignment: Text.AlignVCenter color: control.highlighted ? control.colorContentHighlight : control.colorContent