Require double click to open homepage (#140)
Require double click to open homepage (#140) * Update TopBar.qml To raise Mirage's window in a stacking wm, clicking on an area without text, especially in the topbar, is probably what most users do. In the case of the 2nd button in the topbar this currently accidentally opens a browser window and thus becomes a privacy issue. So for now require a double click to open mirage's homepage. Alternatively the size of this button should at least be closely restricted to the text "Mirage ${version number}". In the long term it might be preferable to put this link into some kind of "about" section instead of the "title" section. * Make tooltip indicate that double click is required Co-authored-by: miruka <miruka@disroot.org>
This commit is contained in:
parent
407f9383ff
commit
fd69046528
|
@ -60,9 +60,9 @@ Rectangle {
|
|||
text: qsTr("%1 %2")
|
||||
.arg(Qt.application.displayName).arg(Qt.application.version)
|
||||
label.color: theme.mainPane.topBar.nameVersionLabel
|
||||
toolTip.text: qsTr("Open project repository")
|
||||
toolTip.text: qsTr("Double click to open project repository")
|
||||
|
||||
onClicked:
|
||||
onDoubleClicked:
|
||||
Qt.openUrlExternally("https://github.com/mirukana/mirage")
|
||||
|
||||
Layout.fillWidth: true
|
||||
|
|
Loading…
Reference in New Issue
Block a user