[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))
|
||||
controlsBar.visible = true
|
||||
controlsBackground.visible = true
|
||||
titleBar.visible = true
|
||||
if (appearance.titleOnlyOnFullscreen) {
|
||||
if (mainWindow.visibility == Window.FullScreen) {
|
||||
titleBar.visible = true
|
||||
}
|
||||
} else {
|
||||
titleBar.visible = true
|
||||
}
|
||||
titleBackground.visible = true
|
||||
menuBar.visible = true
|
||||
}
|
||||
}
|
||||
|
||||
Settings {
|
||||
id: appearance
|
||||
category: "Appearance"
|
||||
property bool titleOnlyOnFullscreen: true
|
||||
}
|
||||
|
||||
Dialog {
|
||||
id: screenshotSaveDialog
|
||||
title: "Save Screenshot To"
|
||||
|
@ -759,7 +771,7 @@ ApplicationWindow {
|
|||
anchors.left: menuBar.right
|
||||
anchors.top: parent.top
|
||||
|
||||
visible: true
|
||||
visible: ! appearance.titleOnlyOnFullscreen
|
||||
color: "transparent"
|
||||
|
||||
Text {
|
||||
|
|
Loading…
Reference in a new issue