Skip to content
Snippets Groups Projects
Commit 0aa3275b authored by Ming Rui Zhang's avatar Ming Rui Zhang
Browse files

misc: use BackButton when necessary

Change-Id: I220038edeb4dc83d85d8e4048168c97c2a992940
parent 234ee7a2
No related branches found
No related tags found
No related merge requests found
...@@ -430,6 +430,7 @@ Item { ...@@ -430,6 +430,7 @@ Item {
// PluginListSettingsView // PluginListSettingsView
property string addNewPlugin: qsTr("Add new plugin") property string addNewPlugin: qsTr("Add new plugin")
property string goBackToPluginsList: qsTr("Go back to plugins list")
// PreferenceItemDelegate // PreferenceItemDelegate
property string selectFile: qsTr("Select a file") property string selectFile: qsTr("Select a file")
......
...@@ -201,15 +201,14 @@ Popup { ...@@ -201,15 +201,14 @@ Popup {
RowLayout { RowLayout {
height: JamiTheme.preferredFieldHeight height: JamiTheme.preferredFieldHeight
PushButton { BackButton {
id: backButton id: backButton
Layout.leftMargin: 5 Layout.leftMargin: 5
Layout.topMargin: 5 Layout.topMargin: 5
imageColor: JamiTheme.textColor toolTipText: JamiStrings.goBackToPluginsList
source: JamiResources.ic_arrow_back_24dp_svg
toolTipText: qsTr("Go back to plugins list")
hoverEnabled: true
onClicked: { onClicked: {
stack.pop(null, StackView.Immediate) stack.pop(null, StackView.Immediate)
} }
......
...@@ -33,19 +33,12 @@ RowLayout { ...@@ -33,19 +33,12 @@ RowLayout {
property string title: "" property string title: ""
signal backArrowClicked signal backArrowClicked
PushButton { BackButton {
id: backToSettingsMenuButton id: backToSettingsMenuButton
Layout.preferredWidth: JamiTheme.preferredFieldHeight Layout.preferredWidth: JamiTheme.preferredFieldHeight
Layout.preferredHeight: JamiTheme.preferredFieldHeight Layout.preferredHeight: JamiTheme.preferredFieldHeight
radius: JamiTheme.preferredFieldHeight
source: JamiResources.ic_arrow_back_24dp_svg
normalColor: JamiTheme.backgroundColor
imageColor: JamiTheme.textColor
toolTipText: JamiStrings.back
hoverEnabled: true
visible: mainView.sidePanelOnly visible: mainView.sidePanelOnly
onClicked: backArrowClicked() onClicked: backArrowClicked()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment