re-add sign out button
This commit is contained in:
parent
93668ff75a
commit
3119aebed4
|
@ -65,12 +65,15 @@ ScrollView {
|
|||
model: ProfileConstants.extraMenuButtons
|
||||
delegate: MenuButton {
|
||||
menuItemId: modelData.id
|
||||
text: modelData .text
|
||||
text: modelData.text
|
||||
source: "../../../img/profile/" + modelData.filename
|
||||
active: profileMenu.profileCurrentIndex === modelData.id
|
||||
Layout.fillWidth: true
|
||||
width: profileMenu.width
|
||||
onClicked: function () {
|
||||
if (modelData.function === "exit") {
|
||||
return Qt.quit()
|
||||
}
|
||||
profileMenu.profileCurrentIndex = modelData.id
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ var BROWSER_SETTINGS = 10
|
|||
var ADVANCED = 11
|
||||
var NEED_HELP = 12
|
||||
var ABOUT = 13
|
||||
var SIGNOUT = 14
|
||||
|
||||
var mainMenuButtons = [{
|
||||
"id": PROFILE,
|
||||
|
@ -73,4 +74,9 @@ var extraMenuButtons = [{
|
|||
"id": ABOUT,
|
||||
"text": qsTr("About"),
|
||||
"filename": "about.svg"
|
||||
}, {
|
||||
"id": SIGNOUT,
|
||||
"function": "exit",
|
||||
"text": qsTr("Sign out"),
|
||||
"filename": "signout.svg"
|
||||
}]
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M12 20.5C16.6944 20.5 20.5 16.6944 20.5 12C20.5 9.20669 19.1526 6.72807 17.0723 5.17865C16.7521 4.94015 16.6341 4.50408 16.8253 4.15357C17.0315 3.77566 17.5137 3.64502 17.8623 3.89765C20.3693 5.71473 22 8.66693 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 8.66693 3.63066 5.71473 6.13772 3.89765C6.48627 3.64502 6.96854 3.77566 7.17467 4.15357C7.36586 4.50408 7.24793 4.94016 6.92772 5.17865C4.8474 6.72807 3.5 9.20669 3.5 12C3.5 16.6944 7.30558 20.5 12 20.5Z" fill="#FF2D55"/>
|
||||
<path d="M12.75 3C12.75 2.58579 12.4142 2.25 12 2.25C11.5858 2.25 11.25 2.58579 11.25 3V12C11.25 12.4142 11.5858 12.75 12 12.75C12.4142 12.75 12.75 12.4142 12.75 12V3Z" fill="#FF2D55"/>
|
||||
</svg>
|
Before Width: | Height: | Size: 793 B |
|
@ -0,0 +1,4 @@
|
|||
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M10 18.5C14.6944 18.5 18.5 14.6944 18.5 10C18.5 7.20669 17.1526 4.72807 15.0723 3.17865C14.7521 2.94015 14.6341 2.50408 14.8253 2.15357C15.0315 1.77566 15.5137 1.64502 15.8623 1.89765C18.3693 3.71473 20 6.66693 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 2.41411e-07 15.5228 0 10C-1.45693e-07 6.66693 1.63066 3.71473 4.13772 1.89765C4.48627 1.64502 4.96854 1.77566 5.17467 2.15357C5.36586 2.50408 5.24793 2.94016 4.92772 3.17865C2.8474 4.72807 1.5 7.20669 1.5 10C1.5 14.6944 5.30558 18.5 10 18.5Z" fill="#FF2D55"/>
|
||||
<path d="M10.75 1C10.75 0.585787 10.4142 0.25 10 0.25C9.58579 0.25 9.25 0.585787 9.25 1V10C9.25 10.4142 9.58579 10.75 10 10.75C10.4142 10.75 10.75 10.4142 10.75 10V1Z" fill="#FF2D55"/>
|
||||
</svg>
|
After Width: | Height: | Size: 813 B |
Loading…
Reference in New Issue