Skip to content

Commit

Permalink
Update QML components
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed Oct 9, 2023
1 parent 2c4ec88 commit 1b44351
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 16 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/builds_mobile_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
28 changes: 21 additions & 7 deletions qml/PageSelectors.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion qml/components_generic/ActionMenuItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion qml/components_generic/RoundButtonText.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ T.Button {

focusPolicy: Qt.NoFocus

//property string text
property int textSize: Math.round(width * 0.333)

// settings
Expand Down
1 change: 0 additions & 1 deletion qml/components_generic/SelectorMenuItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ T.Button {

// settings
property int index
//property string text
property url source
property int sourceSize: 32

Expand Down
3 changes: 1 addition & 2 deletions qml/components_themed/SelectorMenuThemedItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ T.Button {

// settings
property int index
//property string text
property url source
property int sourceSize: 32

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b44351

Please sign in to comment.