Active window tweaks
This commit is contained in:
parent
a465872e0d
commit
7844cc2975
1 changed files with 7 additions and 4 deletions
|
|
@ -7,6 +7,10 @@ import qs.Settings
|
||||||
|
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: activeWindowPanel
|
id: activeWindowPanel
|
||||||
|
|
||||||
|
// Lower case "screen" from modelData
|
||||||
|
property int barHeight: 36 * Theme.scale(screen)
|
||||||
|
|
||||||
screen: (typeof modelData !== 'undefined' ? modelData : null)
|
screen: (typeof modelData !== 'undefined' ? modelData : null)
|
||||||
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
WlrLayershell.exclusionMode: ExclusionMode.Ignore
|
||||||
anchors.top: true
|
anchors.top: true
|
||||||
|
|
@ -17,7 +21,6 @@ PanelWindow {
|
||||||
visible: Settings.settings.showActiveWindow && !activeWindowWrapper.finallyHidden
|
visible: Settings.settings.showActiveWindow && !activeWindowWrapper.finallyHidden
|
||||||
implicitHeight: activeWindowTitleContainer.height
|
implicitHeight: activeWindowTitleContainer.height
|
||||||
implicitWidth: 0
|
implicitWidth: 0
|
||||||
property int barHeight: 36 * Theme.scale(Screen)
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
|
|
||||||
function getIcon() {
|
function getIcon() {
|
||||||
|
|
@ -44,7 +47,7 @@ PanelWindow {
|
||||||
|
|
||||||
Timer {
|
Timer {
|
||||||
id: visibilityTimer
|
id: visibilityTimer
|
||||||
interval: 1200
|
interval: 1500
|
||||||
running: false
|
running: false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
activeWindowWrapper.shouldShow = false;
|
activeWindowWrapper.shouldShow = false;
|
||||||
|
|
@ -111,11 +114,11 @@ PanelWindow {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: innerRect
|
id: innerRect
|
||||||
|
|
||||||
bottomLeftRadius: Math.max(0, width / 2)
|
bottomLeftRadius: Math.max(0, width / 2)
|
||||||
bottomRightRadius: Math.max(0, width / 2)
|
bottomRightRadius: Math.max(0, width / 2)
|
||||||
color: Theme.backgroundSecondary
|
color: Theme.backgroundPrimary
|
||||||
anchors {
|
anchors {
|
||||||
fill: parent
|
fill: parent
|
||||||
leftMargin: 0
|
leftMargin: 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue