From c942a44f6aa29e24efe58b7eafbe85b73fb35919 Mon Sep 17 00:00:00 2001 From: Xavier Michelon Date: Thu, 22 Jun 2023 17:15:56 +0200 Subject: [PATCH] feat(GODT-2686): Change the orientation of the expand/collapse arrow for Advanced settings. --- internal/frontend/bridge-gui/bridge-gui/Resources.qrc | 1 + .../bridge-gui/bridge-gui/qml/GeneralSettings.qml | 4 ++-- .../bridge-gui/bridge-gui/qml/icons/ic-chevron-right.svg | 9 +++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 internal/frontend/bridge-gui/bridge-gui/qml/icons/ic-chevron-right.svg diff --git a/internal/frontend/bridge-gui/bridge-gui/Resources.qrc b/internal/frontend/bridge-gui/bridge-gui/Resources.qrc index f5a078f5..e7521f98 100644 --- a/internal/frontend/bridge-gui/bridge-gui/Resources.qrc +++ b/internal/frontend/bridge-gui/bridge-gui/Resources.qrc @@ -19,6 +19,7 @@ qml/icons/ic-card-identity.svg qml/icons/ic-check.svg qml/icons/ic-chevron-down.svg + qml/icons/ic-chevron-right.svg qml/icons/ic-chevron-up.svg qml/icons/ic-cog-wheel.svg qml/icons/ic-connected.svg diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/GeneralSettings.qml b/internal/frontend/bridge-gui/bridge-gui/qml/GeneralSettings.qml index 7d6860da..63be1c42 100644 --- a/internal/frontend/bridge-gui/bridge-gui/qml/GeneralSettings.qml +++ b/internal/frontend/bridge-gui/bridge-gui/qml/GeneralSettings.qml @@ -90,9 +90,9 @@ SettingsView { RowLayout { ColorImage { - Layout.alignment: Qt.AlignTop + Layout.alignment: Qt.AlignCenter - source: root._isAdvancedShown ? "/qml/icons/ic-chevron-up.svg" : "/qml/icons/ic-chevron-down.svg" + source: root._isAdvancedShown ? "/qml/icons/ic-chevron-down.svg" : "/qml/icons/ic-chevron-right.svg" color: root.colorScheme.interaction_norm height: root.colorScheme.body_font_size sourceSize.height: root.colorScheme.body_font_size diff --git a/internal/frontend/bridge-gui/bridge-gui/qml/icons/ic-chevron-right.svg b/internal/frontend/bridge-gui/bridge-gui/qml/icons/ic-chevron-right.svg new file mode 100644 index 00000000..5804d862 --- /dev/null +++ b/internal/frontend/bridge-gui/bridge-gui/qml/icons/ic-chevron-right.svg @@ -0,0 +1,9 @@ + + + + + + + + +