Change main pane top bar buttons and layout

This commit is contained in:
miruka
2020-03-13 01:41:38 -04:00
parent 46a1c13088
commit 3a2771d138
4 changed files with 10 additions and 28 deletions

View File

@@ -13,13 +13,20 @@ Rectangle {
HButton {
backgroundColor: "transparent"
icon.name: "placeholder-logo"
icon.color: theme.mainPane.topBar.placeholderLogo
icon.name: "settings"
toolTip.text: qsTr("Open config folder")
onClicked: py.callCoro("get_config_dir", [], Qt.openUrlExternally)
Layout.fillHeight: true
}
HButton {
backgroundColor: "transparent"
text: qsTr("%1 %2")
.arg(Qt.application.displayName).arg(Qt.application.version)
label.color: theme.mainPane.topBar.nameVersionLabel
label.horizontalAlignment: Text.AlignLeft
toolTip.text: qsTr("Open project repository")
onClicked:
@@ -38,25 +45,5 @@ Rectangle {
Layout.fillHeight: true
}
HButton {
backgroundColor: "transparent"
icon.name: "reload-config-files"
toolTip.text: qsTr("Reload config files")
onClicked: mainUI.reloadSettings()
Layout.fillHeight: true
}
HButton {
backgroundColor: "transparent"
icon.name: "settings"
toolTip.text: qsTr("Open config folder")
onClicked: py.callCoro("get_config_dir", [], Qt.openUrlExternally)
Layout.fillHeight: true
}
}
}