remove everything
This commit is contained in:
@@ -1,71 +0,0 @@
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import org.kde.layershell 1.0 as LayerShell
|
||||
import Nebula.UI
|
||||
|
||||
Window {
|
||||
id: root
|
||||
|
||||
readonly property int outputWidth: OutputTracker.width > 0
|
||||
? OutputTracker.width
|
||||
: (screen && screen.width > 0 ? screen.width : Screen.width)
|
||||
readonly property int outputHeight: OutputTracker.height > 0
|
||||
? OutputTracker.height
|
||||
: (screen && screen.height > 0 ? screen.height : Screen.height)
|
||||
|
||||
title: qsTr("Nebula Desktop")
|
||||
color: "transparent"
|
||||
flags: Qt.FramelessWindowHint | Qt.WindowDoesNotAcceptFocus
|
||||
visible: true
|
||||
width: outputWidth
|
||||
height: outputHeight
|
||||
|
||||
LayerShell.Window.scope: "nebula-desktop"
|
||||
LayerShell.Window.layer: LayerShell.Window.LayerBackground
|
||||
LayerShell.Window.anchors: LayerShell.Window.AnchorTop
|
||||
| LayerShell.Window.AnchorBottom
|
||||
| LayerShell.Window.AnchorLeft
|
||||
| LayerShell.Window.AnchorRight
|
||||
LayerShell.Window.exclusionZone: 0
|
||||
LayerShell.Window.keyboardInteractivity: LayerShell.Window.KeyboardInteractivityNone
|
||||
|
||||
Canvas {
|
||||
id: backdrop
|
||||
anchors.fill: parent
|
||||
onPaint: {
|
||||
const ctx = getContext("2d")
|
||||
ctx.reset()
|
||||
ctx.fillStyle = Theme.background
|
||||
ctx.fillRect(0, 0, width, height)
|
||||
|
||||
let glow = ctx.createRadialGradient(width * 0.12, height * -0.08, 0, width * 0.12, height * -0.08, width * 0.7)
|
||||
glow.addColorStop(0, "rgba(110, 140, 180, 0.16)")
|
||||
glow.addColorStop(0.52, "rgba(110, 140, 180, 0)")
|
||||
ctx.fillStyle = glow
|
||||
ctx.fillRect(0, 0, width, height)
|
||||
|
||||
glow = ctx.createRadialGradient(width * 0.88, height * 1.08, 0, width * 0.88, height * 1.08, width * 0.45)
|
||||
glow.addColorStop(0, "rgba(42, 68, 98, 0.28)")
|
||||
glow.addColorStop(0.58, "rgba(42, 68, 98, 0)")
|
||||
ctx.fillStyle = glow
|
||||
ctx.fillRect(0, 0, width, height)
|
||||
|
||||
glow = ctx.createRadialGradient(width * 0.62, height * 0.38, 0, width * 0.62, height * 0.38, width * 0.28)
|
||||
glow.addColorStop(0, "rgba(72, 92, 120, 0.08)")
|
||||
glow.addColorStop(0.7, "rgba(72, 92, 120, 0)")
|
||||
ctx.fillStyle = glow
|
||||
ctx.fillRect(0, 0, width, height)
|
||||
|
||||
const veil = ctx.createLinearGradient(0, 0, 0, height)
|
||||
veil.addColorStop(0, "rgba(8, 11, 17, 0.22)")
|
||||
veil.addColorStop(0.16, "rgba(8, 11, 17, 0)")
|
||||
veil.addColorStop(0.78, "rgba(8, 11, 17, 0)")
|
||||
veil.addColorStop(1, "rgba(8, 11, 17, 0.38)")
|
||||
ctx.fillStyle = veil
|
||||
ctx.fillRect(0, 0, width, height)
|
||||
}
|
||||
|
||||
onWidthChanged: requestPaint()
|
||||
onHeightChanged: requestPaint()
|
||||
}
|
||||
}
|
||||
@@ -1,82 +0,0 @@
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import org.kde.layershell 1.0 as LayerShell
|
||||
import Nebula.UI
|
||||
|
||||
Window {
|
||||
id: root
|
||||
|
||||
readonly property int outputWidth: OutputTracker.width > 0
|
||||
? OutputTracker.width
|
||||
: (screen && screen.width > 0 ? screen.width : Screen.width)
|
||||
readonly property int outputHeight: OutputTracker.height > 0
|
||||
? OutputTracker.height
|
||||
: (screen && screen.height > 0 ? screen.height : Screen.height)
|
||||
|
||||
title: qsTr("Nebula Launcher")
|
||||
color: "transparent"
|
||||
flags: Qt.FramelessWindowHint
|
||||
visible: ShellState.launcherOpen || launcher.opacity > 0.01
|
||||
width: outputWidth
|
||||
height: Math.max(1, outputHeight - Theme.topBarHeight)
|
||||
|
||||
LayerShell.Window.scope: "nebula-launcher"
|
||||
LayerShell.Window.layer: LayerShell.Window.LayerOverlay
|
||||
LayerShell.Window.anchors: LayerShell.Window.AnchorTop
|
||||
| LayerShell.Window.AnchorBottom
|
||||
| LayerShell.Window.AnchorLeft
|
||||
| LayerShell.Window.AnchorRight
|
||||
LayerShell.Window.margins.top: Theme.topBarHeight
|
||||
LayerShell.Window.exclusionZone: 0
|
||||
LayerShell.Window.keyboardInteractivity: ShellState.launcherOpen
|
||||
? LayerShell.Window.KeyboardInteractivityExclusive
|
||||
: LayerShell.Window.KeyboardInteractivityNone
|
||||
|
||||
Item {
|
||||
anchors.fill: parent
|
||||
focus: ShellState.launcherOpen
|
||||
Keys.onEscapePressed: {
|
||||
event.accepted = true
|
||||
ShellState.closeLauncher()
|
||||
}
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
onClicked: ShellState.closeLauncher()
|
||||
}
|
||||
|
||||
Launcher {
|
||||
id: launcher
|
||||
x: 10
|
||||
y: 10
|
||||
width: Math.min(420, parent.width - 20)
|
||||
height: Math.min(implicitHeight, Math.min(640, parent.height - 24))
|
||||
opacity: ShellState.launcherOpen ? 1 : 0
|
||||
yOffset: ShellState.launcherOpen ? 0 : -6
|
||||
scale: ShellState.launcherOpen ? 1 : 0.985
|
||||
focus: ShellState.launcherOpen
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
duration: Theme.animationNormal
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on yOffset {
|
||||
NumberAnimation {
|
||||
duration: Theme.animationNormal
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on scale {
|
||||
NumberAnimation {
|
||||
duration: Theme.animationNormal
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import org.kde.layershell 1.0 as LayerShell
|
||||
import Nebula.UI
|
||||
|
||||
Window {
|
||||
id: root
|
||||
|
||||
readonly property int outputWidth: OutputTracker.width > 0
|
||||
? OutputTracker.width
|
||||
: (screen && screen.width > 0 ? screen.width : Screen.width)
|
||||
|
||||
title: qsTr("Nebula Top Bar")
|
||||
color: "transparent"
|
||||
flags: Qt.FramelessWindowHint | Qt.WindowDoesNotAcceptFocus
|
||||
visible: true
|
||||
width: outputWidth
|
||||
height: Theme.topBarHeight
|
||||
|
||||
LayerShell.Window.scope: "nebula-topbar"
|
||||
LayerShell.Window.layer: LayerShell.Window.LayerTop
|
||||
LayerShell.Window.anchors: LayerShell.Window.AnchorTop
|
||||
| LayerShell.Window.AnchorLeft
|
||||
| LayerShell.Window.AnchorRight
|
||||
LayerShell.Window.exclusionZone: Theme.topBarHeight
|
||||
LayerShell.Window.keyboardInteractivity: LayerShell.Window.KeyboardInteractivityNone
|
||||
|
||||
TopBar {
|
||||
anchors.fill: parent
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
import QtQuick
|
||||
import QtQuick.Window
|
||||
import org.kde.layershell 1.0 as LayerShell
|
||||
import Nebula.UI
|
||||
import Nebula.Windows
|
||||
|
||||
Window {
|
||||
id: root
|
||||
|
||||
readonly property bool active: WindowService.hasFocusedWindow
|
||||
&& !WindowService.focusedWindowFullscreen
|
||||
&& !ShellState.launcherOpen
|
||||
readonly property int chromeX: WindowService.focusedWindowX
|
||||
+ Theme.windowChromeInset
|
||||
- WindowService.focusedWorkspaceX
|
||||
readonly property int chromeY: {
|
||||
const barH = WindowService.focusedWindowTitleBarHeight
|
||||
const centered = WindowService.focusedWindowTitleBarY
|
||||
+ Math.max(0, Math.round((barH - height) / 2))
|
||||
return centered - WindowService.focusedWorkspaceY
|
||||
}
|
||||
|
||||
title: qsTr("Nebula Window Chrome")
|
||||
color: "transparent"
|
||||
flags: Qt.FramelessWindowHint | Qt.WindowDoesNotAcceptFocus
|
||||
visible: root.active
|
||||
width: Math.max(1, controls.implicitWidth)
|
||||
height: Math.max(1, controls.implicitHeight)
|
||||
|
||||
LayerShell.Window.scope: "nebula-window-chrome"
|
||||
LayerShell.Window.layer: LayerShell.Window.LayerTop
|
||||
LayerShell.Window.anchors: LayerShell.Window.AnchorLeft | LayerShell.Window.AnchorTop
|
||||
LayerShell.Window.margins.left: Math.max(0, chromeX)
|
||||
LayerShell.Window.margins.top: Math.max(0, chromeY)
|
||||
LayerShell.Window.exclusionZone: 0
|
||||
LayerShell.Window.keyboardInteractivity: LayerShell.Window.KeyboardInteractivityNone
|
||||
|
||||
WindowControls {
|
||||
id: controls
|
||||
anchors.centerIn: parent
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user