2020-03-13 13:16:33 +11:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Layouts 1.12
|
|
|
|
import "../Base"
|
|
|
|
|
|
|
|
Rectangle {
|
2020-03-13 14:17:23 +11:00
|
|
|
clip: true
|
2020-03-13 13:16:33 +11:00
|
|
|
color: theme.mainPane.topBar.background
|
|
|
|
|
|
|
|
HRowLayout {
|
|
|
|
anchors.fill: parent
|
|
|
|
|
|
|
|
HButton {
|
2020-03-13 16:09:04 +11:00
|
|
|
backgroundColor: "transparent"
|
2020-03-13 16:41:38 +11:00
|
|
|
icon.name: "settings"
|
|
|
|
toolTip.text: qsTr("Open config folder")
|
|
|
|
|
|
|
|
onClicked: py.callCoro("get_config_dir", [], Qt.openUrlExternally)
|
|
|
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
|
|
|
|
HButton {
|
|
|
|
backgroundColor: "transparent"
|
2020-03-13 13:16:33 +11:00
|
|
|
|
|
|
|
text: qsTr("%1 %2")
|
|
|
|
.arg(Qt.application.displayName).arg(Qt.application.version)
|
|
|
|
label.color: theme.mainPane.topBar.nameVersionLabel
|
|
|
|
toolTip.text: qsTr("Open project repository")
|
|
|
|
|
|
|
|
onClicked:
|
|
|
|
Qt.openUrlExternally("https://github.com/mirukan/mirage")
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
|
|
|
|
HButton {
|
2020-03-13 16:09:04 +11:00
|
|
|
backgroundColor: "transparent"
|
2020-03-16 15:25:30 +11:00
|
|
|
icon.name: "developer-console"
|
|
|
|
toolTip.text: qsTr("Developer console")
|
2020-03-13 13:16:33 +11:00
|
|
|
|
|
|
|
onClicked: mainUI.shortcuts.toggleConsole() // FIXME
|
|
|
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|