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
}
}
}

View File

@ -1,3 +0,0 @@
<svg clip-rule="evenodd" fill-rule="evenodd" height="24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="m12 0-12 12.001 12 11.999 12.001-11.999zm-9.171 12.001 9.171-9.172 9.172 9.172-9.172 9.172z"/>
</svg>

Before

Width:  |  Height:  |  Size: 219 B

View File

@ -258,7 +258,6 @@ mainPane:
topBar:
color background: colors.strongBackground
color placeholderLogo: icons.colorize
color nameVersionLabel: colors.text
listView:

View File

@ -268,7 +268,6 @@ mainPane:
topBar:
color background: colors.strongBackground
color placeholderLogo: icons.colorize
color nameVersionLabel: colors.text
listView: