From 1284a8423cca8b6547cb3024cf64630038869abc Mon Sep 17 00:00:00 2001 From: Ming Rui Zhang Date: Tue, 1 Jun 2021 13:37:26 -0400 Subject: [PATCH] settings: use new menu svgs Change-Id: I6d4456218448d1ca5c4682d33341207e2a0953eb --- images/icons/account_black-24dp.svg | 16 +++++++++++++++ images/icons/baseline-people-24px.svg | 1 - images/icons/gear_black-24dp.svg | 20 +++++++++++++++++++ images/icons/media_black-24dp.svg | 14 +++++++++++++ images/icons/plugin_settings_black-24dp.svg | 13 ++++++++++++ resources.qrc | 5 ++++- src/settingsview/components/SettingsMenu.qml | 21 ++++++++++++-------- 7 files changed, 80 insertions(+), 10 deletions(-) create mode 100644 images/icons/account_black-24dp.svg delete mode 100644 images/icons/baseline-people-24px.svg create mode 100644 images/icons/gear_black-24dp.svg create mode 100644 images/icons/media_black-24dp.svg create mode 100644 images/icons/plugin_settings_black-24dp.svg diff --git a/images/icons/account_black-24dp.svg b/images/icons/account_black-24dp.svg new file mode 100644 index 000000000..5754afc83 --- /dev/null +++ b/images/icons/account_black-24dp.svg @@ -0,0 +1,16 @@ + + + + + + + + + diff --git a/images/icons/baseline-people-24px.svg b/images/icons/baseline-people-24px.svg deleted file mode 100644 index 6bcb85918..000000000 --- a/images/icons/baseline-people-24px.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/images/icons/gear_black-24dp.svg b/images/icons/gear_black-24dp.svg new file mode 100644 index 000000000..55d658086 --- /dev/null +++ b/images/icons/gear_black-24dp.svg @@ -0,0 +1,20 @@ + + + + + + + + diff --git a/images/icons/media_black-24dp.svg b/images/icons/media_black-24dp.svg new file mode 100644 index 000000000..3f66dc084 --- /dev/null +++ b/images/icons/media_black-24dp.svg @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/images/icons/plugin_settings_black-24dp.svg b/images/icons/plugin_settings_black-24dp.svg new file mode 100644 index 000000000..3045af9f0 --- /dev/null +++ b/images/icons/plugin_settings_black-24dp.svg @@ -0,0 +1,13 @@ + + + + + diff --git a/resources.qrc b/resources.qrc index 9b40183a6..c551f33b9 100644 --- a/resources.qrc +++ b/resources.qrc @@ -79,7 +79,6 @@ images/icons/ic_hide_password.png images/icons/ic_show_password.png images/icons/baseline-desktop_windows-24px.svg - images/icons/baseline-people-24px.svg images/icons/ic_high_quality_24px.svg images/icons/insert_photo-24px.svg images/icons/round-add_a_photo-24px.svg @@ -135,6 +134,10 @@ images/icons/quote.svg images/icons/plugins-24px.svg images/icons/record_black_24dp.svg + images/icons/account_black-24dp.svg + images/icons/gear_black-24dp.svg + images/icons/media_black-24dp.svg + images/icons/plugin_settings_black-24dp.svg images/icons/share_stop_black_24dp.svg images/icons/share_screen_black_24dp.svg images/icons/chat_black_24dp.svg diff --git a/src/settingsview/components/SettingsMenu.qml b/src/settingsview/components/SettingsMenu.qml index 0a2eb8e5e..af8384e8f 100644 --- a/src/settingsview/components/SettingsMenu.qml +++ b/src/settingsview/components/SettingsMenu.qml @@ -34,13 +34,13 @@ Rectangle { Component.onCompleted: { listModel.append({ 'type': SettingsView.Account, 'name': qsTr("Account"), - 'iconSource': "qrc:/images/icons/baseline-people-24px.svg"}) + 'iconSource': "qrc:/images/icons/account_black-24dp.svg"}) listModel.append({ 'type': SettingsView.General, 'name': qsTr("General"), - 'iconSource': "qrc:/images/icons/round-settings-24px.svg"}) + 'iconSource': "qrc:/images/icons/gear_black-24dp.svg"}) listModel.append({ 'type': SettingsView.Media, 'name': qsTr("Audio/Video"), - 'iconSource': "qrc:/images/icons/baseline-desktop_windows-24px.svg"}) + 'iconSource': "qrc:/images/icons/media_black-24dp.svg"}) listModel.append({ 'type': SettingsView.Plugin, 'name': qsTr("Plugin"), - 'iconSource': "qrc:/images/icons/extension_24dp.svg"}) + 'iconSource': "qrc:/images/icons/plugin_settings_black-24dp.svg"}) } anchors.fill: parent @@ -71,18 +71,23 @@ Rectangle { width: root.width height: 64 + preferredMargin: 24 buttonText: name + buttonTextFont.pointSize: JamiTheme.textFontSize + 2 + textHAlign: Text.AlignLeft + source: iconSource imageColor: JamiTheme.textColor + imageContainerHeight: 40 + imageContainerWidth: 40 + + normalColor: root.color pressedColor: Qt.lighter(JamiTheme.pressedButtonColor, 1.25) checkedColor: JamiTheme.selectedColor hoveredColor: JamiTheme.hoverColor - buttonTextFont.pointSize: JamiTheme.textFontSize + 2 + duration: 0 - textHAlign: Text.AlignLeft - preferredMargin: 24 - normalColor: root.color checkable: true radius: 0 }