[UI] Added setting to only show title when fullscreen.
This commit is contained in:
parent
8a993db7c0
commit
a44ebe93f7
|
@ -233,12 +233,24 @@ ApplicationWindow {
|
||||||
//player.setOption("sub-margin-y", String(controlsBar.height + progressBar.height))
|
//player.setOption("sub-margin-y", String(controlsBar.height + progressBar.height))
|
||||||
controlsBar.visible = true
|
controlsBar.visible = true
|
||||||
controlsBackground.visible = true
|
controlsBackground.visible = true
|
||||||
|
if (appearance.titleOnlyOnFullscreen) {
|
||||||
|
if (mainWindow.visibility == Window.FullScreen) {
|
||||||
titleBar.visible = true
|
titleBar.visible = true
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
titleBar.visible = true
|
||||||
|
}
|
||||||
titleBackground.visible = true
|
titleBackground.visible = true
|
||||||
menuBar.visible = true
|
menuBar.visible = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Settings {
|
||||||
|
id: appearance
|
||||||
|
category: "Appearance"
|
||||||
|
property bool titleOnlyOnFullscreen: true
|
||||||
|
}
|
||||||
|
|
||||||
Dialog {
|
Dialog {
|
||||||
id: screenshotSaveDialog
|
id: screenshotSaveDialog
|
||||||
title: "Save Screenshot To"
|
title: "Save Screenshot To"
|
||||||
|
@ -759,7 +771,7 @@ ApplicationWindow {
|
||||||
anchors.left: menuBar.right
|
anchors.left: menuBar.right
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
||||||
visible: true
|
visible: ! appearance.titleOnlyOnFullscreen
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
|
|
Loading…
Reference in a new issue