From a44ebe93f71d84111cac98a11f758e18a9168dc4 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Fri, 26 Oct 2018 17:09:35 +0100 Subject: [PATCH] [UI] Added setting to only show title when fullscreen. --- src/qml/main.qml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/qml/main.qml b/src/qml/main.qml index 2456c92..cc188c4 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -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 {