Compare commits
56
Commits
da0a61b50b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc197339fa | ||
|
|
3f0e31b116 | ||
|
|
660fa69be6 | ||
|
|
1a394955cf | ||
|
|
629287f7f3 | ||
|
|
f756d37f6d | ||
|
|
68281b0874 | ||
|
|
4f078bdf5c | ||
|
|
f96d16df87 | ||
|
|
d37f9b7121 | ||
|
|
1e918414d1 | ||
|
|
972ab1120e | ||
|
|
604424869d | ||
|
|
b03bd77941 | ||
|
|
6ad9c0b17e | ||
|
|
476ad75ba4 | ||
|
|
eb81d51c07 | ||
|
|
84c2385cfa | ||
|
|
fc272e45b2 | ||
|
|
a0de1d2c41 | ||
|
|
049ce180da | ||
|
|
8d9903b65e | ||
|
|
065b728af6 | ||
|
|
415b1b3cd6 | ||
|
|
1f029922ec | ||
|
|
5e56abd877 | ||
|
|
bb429cb9d9 | ||
|
|
af81bf9c90 | ||
|
|
52a0e29959 | ||
|
|
f65c475455 | ||
|
|
ea8fc29544 | ||
|
|
cc0bc0a72f | ||
|
|
de0295e18e | ||
|
|
efaace0f15 | ||
|
|
e4ca1f5d9c | ||
|
|
73de4b06a8 | ||
|
|
74b6ad50ec | ||
|
|
5217af4f67 | ||
|
|
178041edf9 | ||
|
|
aecee213f8 | ||
|
|
cc0ae50b95 | ||
|
|
ebace10767 | ||
|
|
2a41cde6f5 | ||
|
|
de9b863f3f | ||
|
|
b6d0da4679 | ||
|
|
ad740ef631 | ||
|
|
c716a20e04 | ||
|
|
bfbfc8961e | ||
|
|
9e1ac4efe7 | ||
|
|
7f1189606c | ||
|
|
72a21c9363 | ||
|
|
11bdc4c751 | ||
|
|
0dcf37346c | ||
|
|
d6a6cf69f4 | ||
|
|
b3076a4cde | ||
|
|
29dd64572a |
No files matched your search
@@ -65,7 +65,7 @@ unless they provide the tested dependencies. Newer versions must be validated;
|
||||
|
||||
- Floating, configurable left/center/right bar on each screen.
|
||||
- Cog and centered settings surface, active-monitor selection, Escape/outside dismissal.
|
||||
- Workspaces 1–9, occupied/urgent states and animated active indicator.
|
||||
- Workspaces 1–9, occupied/urgent states and animated active indicator. Hovering another workspace shows it live in the bar popout, laid out as on its monitor; click it to go there (Settings → Bar → Preview on hover).
|
||||
- Clock, shared glass controls, custom/system accent, watched Matugen palette input.
|
||||
- Actual StatusNotifier tray entries with glass DBusMenu menus and recursive submenus.
|
||||
- 400 ms hover intent, immediate right-click, left/middle activation and scroll forwarding.
|
||||
@@ -161,6 +161,8 @@ Schema 3 preserves existing pins/settings and adds dock defaults.
|
||||
Run `./scripts/glassmxrph launcher` to toggle the running shell's launcher.
|
||||
Search applications, use Up/Down and Enter, or type `>` for Settings commands such
|
||||
as `>dock`, `>appearance`, `>wallpaper` and `>media`. Escape/outside click closes.
|
||||
The two round pills beside the search bar switch to Clipboard History and the Emoji
|
||||
picker (click again to go back); `>clipboard` and `>emoji` do the same.
|
||||
Other future destinations remain explicitly labelled until their phases are implemented. All destinations are also in Settings' page selector.
|
||||
|
||||
Recent-file indexing is deferred.
|
||||
@@ -175,9 +177,21 @@ without replacing your saved layout. Cava is optional and off by default.
|
||||
## Control Center
|
||||
|
||||
Click the right-hand system pill or run `./scripts/glassmxrph controlcenter`.
|
||||
Control Center opens at the active monitor's upper-right, with configurable modules
|
||||
for connectivity, audio/microphone, brightness, Night Light, DND, power profiles,
|
||||
shared media and power actions. Settings → Control Center enables/reorders modules.
|
||||
Control Center opens at the active monitor's upper-right. Its modules sit on a
|
||||
4-column grid: Wi-Fi, Bluetooth, network throughput, sound, microphone, display
|
||||
brightness, Night Light, DND, Caffeine (keeps the system awake via `systemd-inhibit`),
|
||||
power profile, Now Playing, power actions and system metrics, with Notifications
|
||||
below. Each tile can be any size from 1×1 to 4×4 and adapts its layout to it.
|
||||
Tiles sit wherever you put them, gaps included. **Edit Controls** at the bottom
|
||||
of the panel lets you drag tiles to any cell, resize them from the corner handle
|
||||
(tiles in the way are pushed down), remove them with the badge and add others.
|
||||
Plugins with a Noctalia `controlCenterWidget` entry point appear there as tiles too.
|
||||
Right-click Sound to extend it with a volume slider per app (the players
|
||||
EasyEffects processes); right-click a toggle to open its settings.
|
||||
**Game Mode** (tile) turns off animations, blur, shadows and HyprGlass, switches to
|
||||
the performance power profile and turns on Do Not Disturb until you switch it off;
|
||||
Settings → Power chooses which. Changed values are journalled and restored exactly,
|
||||
also after a shell crash. `glassmxrph`'s IPC target `gamemode` toggles it.
|
||||
Logout, reboot and shutdown require explicit confirmation.
|
||||
|
||||
NetworkManager, BlueZ and PipeWire use native Quickshell models. Other controls reuse
|
||||
|
||||
+3
-2
@@ -35,11 +35,12 @@
|
||||
"easyeffects": "Dashboard Media tab equalizer only; writes the glassmxrph_eq output preset and starts EasyEffects in service mode on apply",
|
||||
"wttr.in (network)": "Weather desktop widget only; fetched every 30 minutes while a weather widget exists",
|
||||
"Nerd Font": "Icon glyphs in Settings (any installed Nerd Font, e.g. Symbols Nerd Font); letters are used otherwise",
|
||||
"nvidia-smi": "Read-only NVIDIA GPU telemetry through the host driver tool; other metrics do not require it"
|
||||
"nvidia-smi": "Read-only NVIDIA GPU telemetry through the host driver tool; other metrics do not require it",
|
||||
"BiRefNet + onnxruntime/opencv/numpy/pillow": "Outline wallpaper transitions only; set GLASSMXRPH_WALLFX_PYTHON (an interpreter with those modules) and GLASSMXRPH_WALLFX_MODEL (the BiRefNet ONNX file). The Nix package sets both; without them every change uses colonies"
|
||||
},
|
||||
"development": [
|
||||
"qmllint",
|
||||
"qsb from Qt Shader Tools (only to rebuild lock/shaders/*.qsb: scripts/build-shaders)",
|
||||
"qsb from Qt Shader Tools (only to rebuild lock/shaders and wallpaper/shaders *.qsb: scripts/build-shaders)",
|
||||
"node (configuration, dock and launcher logic tests)",
|
||||
"QtTest (tray, dock, launcher, settings, media and Control Center input tests only)",
|
||||
"Python 3 with dbus-python and PyGObject (isolated tray and MPRIS fixtures)",
|
||||
|
||||
@@ -114,6 +114,18 @@ failures do not cause restart loops. Song artwork never changes the global accen
|
||||
## Phase 7 system controls
|
||||
|
||||
`ControlCenter` is an active-monitor overlay with a registry-driven module layout.
|
||||
Modules are `CCModule` tiles placed freely on a 4-column grid
|
||||
(`controlcenter/GridLogic.js`): each entry in `controlCenter.modules` may store its
|
||||
cell (`x` 0–3, `y`) and size (`w`/`h` 1–4, else the `ControlRegistry` default).
|
||||
Tiles without a cell take the first free spot; moving or resizing one in the
|
||||
panel's edit mode pushes overlapped tiles straight down and saves every cell, so
|
||||
gaps persist. Enabled plugins with a Noctalia `controlCenterWidget` entry point
|
||||
add `plugin:<id>` tiles hosted by `modules/Plugin.qml`. Tiles adapt their layout to their size. A tile can extend below
|
||||
its cells (`extraHeight`: the Sound mixer, power confirmation) and the grid moves
|
||||
the tiles underneath down. Config version 2 split the old Connectivity and Audio
|
||||
cards into Wi-Fi/Bluetooth/Network and Output/Input. `CaffeineService` holds a
|
||||
`systemd-inhibit` idle/sleep lock while on; `AudioService.streams` lists app
|
||||
playback streams, tracked only while a mixer holds a `Demand`.
|
||||
`ShellState` coordinates its visibility with existing shell popups. `AudioService`,
|
||||
`NetworkService` and `BluetoothService` adapt native Quickshell event-driven models.
|
||||
`SystemService` serializes one-shot JSON provider jobs for visible display/DND/power
|
||||
@@ -133,6 +145,16 @@ MetricsService owns a single demand-driven streaming Python collector. MetricsCa
|
||||
|
||||
Theme owns contrast selection and reduced-motion intensity. Shared glass components add inexpensive highlights and reversible motion without per-panel blur effects. ScreenService validates captured output references. MetricsService owns bounded restart backoff. The optional compositor example and read-only doctor keep host integration separate from UI state.
|
||||
|
||||
## Workspace overview
|
||||
|
||||
`overview/Overview.qml` is a bar drawer (`glassmxrph overview`, IPC `overview`) with one
|
||||
thumbnail per workspace, `bar.workspaces.count` of them in balanced rows of up to five
|
||||
(`OverviewLogic.js`, tested in `tests/overview.test.cjs`). Each thumbnail shows its
|
||||
monitor's wallpaper and that workspace's windows at their real geometry, live through
|
||||
ScreencopyView only while the drawer is open. Tiles are keyed by window address so title
|
||||
changes keep their previews. Clicks, drags and middle-clicks go through HyprlandService
|
||||
(`focusWorkspace`, `moveToWorkspace`, `closeWindow`).
|
||||
|
||||
## Notifications
|
||||
|
||||
`NotificationService` owns the one native `NotificationServer` (org.freedesktop.Notifications),
|
||||
@@ -155,3 +177,12 @@ and snaps the height instead of animating it. `ClipboardService` reads the user'
|
||||
history through `helpers/clipboard.py` only when the launcher opens, and keeps the last list cached.
|
||||
The helper never stores entries (the user's `wl-paste --watch cliphist store` does), decodes
|
||||
thumbnails for the newest images into the cache, and detaches `wl-copy` when copying.
|
||||
|
||||
## Emoji Picker
|
||||
|
||||
The Emoji Picker is another launcher mode: `>emoji` switches in place like `>clipboard`, and
|
||||
`glassmxrph emoji` toggles it directly. Results show as a grid of glyphs with the selected (or
|
||||
hovered) emoji's name as the section label. `EmojiService` reads `assets/emoji.tsv` the first time
|
||||
the mode opens; search requires every term and lists name matches before keyword matches. Enter
|
||||
copies with `wl-copy`. `scripts/emoji-data` regenerates the table from Unicode's `emoji-test.txt`
|
||||
(skin-tone variants omitted) plus an optional keyword list. `tests/emoji_runtime.py` covers it.
|
||||
@@ -16,7 +16,7 @@ Open Settings → Wallpaper → Open wallpaper picker, or run:
|
||||
./scripts/glassmxrph wallpaper
|
||||
```
|
||||
|
||||
The centered carousel follows the current Super+Shift+W picker's visual concept and runs entirely inside glassMxrph. Search local images, select an output, browse with arrow keys and apply with Enter or double-click. History records the last 50 selections. Escape or an outside click closes it.
|
||||
The picker drawer shows the wallpapers as a justified gallery: every thumbnail keeps its own aspect ratio and each row fills the width. Search local images, select an output, browse with the arrow keys and apply with Enter or a click. ✦ marks wallpapers whose subject outline is drawn first when changing to them. History records the last 50 selections. Escape or an outside click closes it.
|
||||
|
||||
Configure image directories in Wallpaper settings; the default search directory is ~/Pictures/Wallpapers. Select the Native backend when replacing Serpantinum. New configurations default to Native; existing explicit backend preferences are preserved.
|
||||
|
||||
|
||||
@@ -1,4 +1,13 @@
|
||||
{ lib, stdenvNoCC, makeWrapper, quickshell, qt6, nodejs, source }:
|
||||
{ lib, stdenvNoCC, makeWrapper, quickshell, qt6, nodejs, python3, fetchurl, source }:
|
||||
let
|
||||
# Outline wallpaper transitions (quickshell/helpers/wallfx.py): BiRefNet lite
|
||||
# finds a wallpaper's subject, run on the CPU through onnxruntime.
|
||||
wallfxPython = python3.withPackages (ps: [ ps.numpy ps.opencv4 ps.pillow ps.onnxruntime ]);
|
||||
wallfxModel = fetchurl {
|
||||
url = "https://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-general-bb_swin_v1_tiny-epoch_232.onnx";
|
||||
sha256 = "0crky386fm0268hy5qglpqv1d5p5n6pv0phahxbsawpmfr1h402n";
|
||||
};
|
||||
in
|
||||
stdenvNoCC.mkDerivation {
|
||||
pname = "glassMxrph";
|
||||
version = "0.2.0";
|
||||
@@ -12,7 +21,9 @@ stdenvNoCC.mkDerivation {
|
||||
cp -r quickshell scripts tests docs dependencies.json README.md $out/share/glassMxrph/
|
||||
makeWrapper $out/share/glassMxrph/scripts/glassmxrph $out/bin/glassmxrph \
|
||||
--prefix PATH : ${lib.makeBinPath [ quickshell ]} \
|
||||
--prefix QT_PLUGIN_PATH : ${qt6.qtimageformats}/${qt6.qtbase.qtPluginPrefix}
|
||||
--prefix QT_PLUGIN_PATH : ${qt6.qtimageformats}/${qt6.qtbase.qtPluginPrefix} \
|
||||
--set-default GLASSMXRPH_WALLFX_PYTHON ${wallfxPython}/bin/python3 \
|
||||
--set-default GLASSMXRPH_WALLFX_MODEL ${wallfxModel}
|
||||
'';
|
||||
meta = {
|
||||
description = "Modular glass desktop shell for Quickshell and Hyprland";
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+138
-5
@@ -1,8 +1,10 @@
|
||||
import QtQuick
|
||||
import QtQuick.Shapes
|
||||
import Quickshell
|
||||
import Quickshell.Hyprland
|
||||
import Quickshell.Wayland
|
||||
import "../components"
|
||||
import "../notch"
|
||||
import "../core"
|
||||
import "../services"
|
||||
import "../theme"
|
||||
@@ -17,30 +19,72 @@ PanelWindow {
|
||||
readonly property int outerMargin: BarDrawers.margin
|
||||
// The window reaches below the bar (input is masked to the bar) so the
|
||||
// HyprGlass layer edge is not on the bar's bottom edge, where drawers join.
|
||||
implicitHeight: BarDrawers.bottom + BarDrawers.overhang
|
||||
mask: Region { item: panel }
|
||||
// While the launcher is open in the notch, the window is tall enough for
|
||||
// it to grow down; input stays masked to the shapes.
|
||||
readonly property bool tall: notch && (notchPill.searching || notchPill.height > BarDrawers.bottom + 1)
|
||||
implicitHeight: tall ? Math.ceil(BarDrawers.bottom + notchPill.maxBodyHeight + 40) : BarDrawers.bottom + BarDrawers.overhang
|
||||
// Notch mode splits the bar into a left island, the centre notch and a
|
||||
// right island; only those take input.
|
||||
readonly property bool notch: ShellState.notchMode
|
||||
// The islands share the notch's centre line (the notch runs from the top
|
||||
// edge to the bar's bottom), so they line up with its clock.
|
||||
readonly property int islandY: Math.round((BarDrawers.bottom - BarDrawers.height) / 2)
|
||||
mask: Region {
|
||||
item: root.notch ? leftIsland : panel
|
||||
Region { item: root.notch ? notchPill : null; intersection: Intersection.Combine }
|
||||
Region { item: root.notch ? rightIsland : null; intersection: Intersection.Combine }
|
||||
Region { item: root.notch && innerLeft.shown ? innerLeft : null; intersection: Intersection.Combine }
|
||||
Region { item: root.notch && innerRight.shown ? innerRight : null; intersection: Intersection.Combine }
|
||||
}
|
||||
color: Theme.transparent
|
||||
// Reserve the bar itself (margin + height), not the overhang below it, so
|
||||
// windows tile beneath the bar instead of under it.
|
||||
exclusionMode: ExclusionMode.Normal
|
||||
exclusiveZone: BarDrawers.bottom
|
||||
WlrLayershell.namespace: "glassMxrph-bar"
|
||||
// The notch's search takes the keyboard while it is open on this screen;
|
||||
// a click anywhere else closes it.
|
||||
readonly property bool searching: notch && ShellState.notchLauncher && ScreenService.current(ShellState.launcherScreen) === screen
|
||||
WlrLayershell.keyboardFocus: searching ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
|
||||
// The grab starts once the bar holds the keyboard; started together with
|
||||
// the focus change, Hyprland clears it at once and the search closes.
|
||||
property bool grabbing: false
|
||||
onSearchingChanged: {
|
||||
grabbing = false;
|
||||
if (searching)
|
||||
grabStart.restart();
|
||||
}
|
||||
Timer {
|
||||
id: grabStart
|
||||
interval: 150
|
||||
onTriggered: root.grabbing = root.searching
|
||||
}
|
||||
HyprlandFocusGrab {
|
||||
windows: [root]
|
||||
active: root.grabbing
|
||||
onCleared: if (root.grabbing)
|
||||
ShellState.launcherOpen = false
|
||||
}
|
||||
Component.onCompleted: TrayService.registerBar(root)
|
||||
Component.onDestruction: TrayService.unregisterBar(root)
|
||||
GlassPanel {
|
||||
id: panel
|
||||
visible: !root.notch
|
||||
x: root.outerMargin; y: root.outerMargin
|
||||
width: root.width - 2 * root.outerMargin
|
||||
height: BarDrawers.height
|
||||
radius: BarDrawers.radius
|
||||
border.width: 0
|
||||
ModuleRow { position: "left"; barScreen: root.screen; anchors.left: parent.left; anchors.leftMargin: 6; anchors.verticalCenter: parent.verticalCenter }
|
||||
ModuleRow { position: "center"; barScreen: root.screen; anchors.centerIn: parent }
|
||||
ModuleRow { position: "right"; barScreen: root.screen; anchors.right: parent.right; anchors.rightMargin: 6; anchors.verticalCenter: parent.verticalCenter }
|
||||
// In notch mode the side rows move into their islands; the notch replaces the centre.
|
||||
// Notch mode unloads these; its islands carry their own module lists.
|
||||
ModuleRow { position: "left"; active: !root.notch; barScreen: root.screen; anchors.left: parent.left; anchors.leftMargin: 6; anchors.verticalCenter: parent.verticalCenter }
|
||||
ModuleRow { position: "center"; active: !root.notch; barScreen: root.screen; anchors.centerIn: parent }
|
||||
ModuleRow { position: "right"; active: !root.notch; barScreen: root.screen; anchors.right: parent.right; anchors.rightMargin: 6; anchors.verticalCenter: parent.verticalCenter }
|
||||
}
|
||||
// Outline with openings where drawers hang from the bar.
|
||||
Shape {
|
||||
id: outline
|
||||
visible: !root.notch
|
||||
x: panel.x
|
||||
y: panel.y
|
||||
width: panel.width
|
||||
@@ -63,4 +107,93 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
// Notch mode -------------------------------------------------------------
|
||||
// Side islands: "float" leaves the modules on the wallpaper, "pill" puts
|
||||
// them on rounded pills and "notch" hangs them from the top edge like the
|
||||
// centre notch. Both use the notch's fill.
|
||||
readonly property string islandStyle: ConfigService.ready ? ConfigService.data.notch.islandStyle : "float"
|
||||
component Island: GlassPanel {
|
||||
id: island
|
||||
property alias row: islandRow
|
||||
property string side
|
||||
readonly property bool hanging: root.islandStyle === "notch"
|
||||
color: root.islandStyle === "pill" ? Theme.notchFill : Theme.transparent
|
||||
border.width: root.islandStyle === "pill" ? 1 : 0
|
||||
plain: true
|
||||
visible: root.notch && ConfigService.ready && ConfigService.data.notch[side].length > 0
|
||||
// Hanging islands keep their ears on screen.
|
||||
x: {
|
||||
const inset = root.outerMargin + (hanging ? BarDrawers.ear : 0);
|
||||
return side === "left" ? inset : root.width - inset - width;
|
||||
}
|
||||
y: root.islandY
|
||||
width: islandRow.implicitWidth + (root.islandStyle === "float" ? 12 : 24)
|
||||
height: BarDrawers.height
|
||||
radius: root.islandStyle === "pill" ? height / 2 : BarDrawers.radius
|
||||
DrawerShape {
|
||||
z: -1
|
||||
visible: island.hanging
|
||||
x: -BarDrawers.ear
|
||||
y: -island.y
|
||||
bodyWidth: island.width
|
||||
bodyHeight: BarDrawers.bottom
|
||||
ear: BarDrawers.ear
|
||||
radius: Math.min(Theme.radius, BarDrawers.bottom / 2)
|
||||
fillColor: Theme.notchFill
|
||||
}
|
||||
ModuleRow {
|
||||
id: islandRow
|
||||
position: island.side
|
||||
active: root.notch
|
||||
modules: BarLayout.notchModules(root.screen ? root.screen.name : "", island.side)
|
||||
barScreen: root.screen
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
Island { id: leftIsland; side: "left" }
|
||||
Island { id: rightIsland; side: "right" }
|
||||
// Spots right beside the notch, one each side at the same distance. Always
|
||||
// bare (no pill), they ride the notch's edges as it springs wider for media,
|
||||
// and step aside while it is opened or widened for the launcher or a banner.
|
||||
readonly property int innerGap: 10
|
||||
readonly property bool notchBusy: ShellState.notchOpen || notchPill.searching || notchPill.showing
|
||||
component InnerSlot: Item {
|
||||
id: slot
|
||||
property string side
|
||||
readonly property bool used: root.notch && ConfigService.ready && (ConfigService.data.notch[side] || []).length > 0
|
||||
readonly property bool shown: used && opacity > 0.01
|
||||
visible: shown
|
||||
opacity: used && !root.notchBusy ? 1 : 0
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
duration: Theme.duration
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
x: side === "innerLeft" ? notchPill.x - root.innerGap - width : notchPill.x + notchPill.width + root.innerGap
|
||||
y: root.islandY
|
||||
width: slotRow.implicitWidth
|
||||
height: BarDrawers.height
|
||||
ModuleRow {
|
||||
id: slotRow
|
||||
position: slot.side === "innerLeft" ? "left" : "right"
|
||||
active: slot.used
|
||||
modules: BarLayout.notchModules(root.screen ? root.screen.name : "", slot.side)
|
||||
barScreen: root.screen
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
}
|
||||
}
|
||||
InnerSlot { id: innerLeft; side: "innerLeft" }
|
||||
InnerSlot { id: innerRight; side: "innerRight" }
|
||||
NotchPill {
|
||||
id: notchPill
|
||||
barScreen: root.screen
|
||||
x: Math.round((root.width - width) / 2)
|
||||
y: 0
|
||||
width: implicitWidth
|
||||
height: implicitHeight
|
||||
// The open notch window draws over this spot on its own screen.
|
||||
visible: root.notch && !(ShellState.notchWindow && ShellState.notchWindow.visible && ShellState.notchWindow.screen === root.screen) && !(ShellState.wallpaperWindow && ShellState.wallpaperWindow.visible && ShellState.wallpaperWindow.screen === root.screen)
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,8 @@ import Quickshell.Wayland
|
||||
import Quickshell.Widgets
|
||||
import "../components"
|
||||
import "../core"
|
||||
import "../overview"
|
||||
import "../services"
|
||||
import "../theme"
|
||||
// Bar hover popout. HyprGlass shapes glass from the layer box, so the surface is
|
||||
// sized to the card and its geometry animates to morph between anchors.
|
||||
@@ -16,15 +18,19 @@ PanelWindow {
|
||||
readonly property var anchorWindow: anchorItem ? anchorItem.QsWindow.window : null
|
||||
readonly property string kind: PopoutState.kind
|
||||
// The hovered window's Wayland toplevel; falls back to the focused one.
|
||||
readonly property var toplevel: PopoutState.payload || ToplevelManager.activeToplevel
|
||||
readonly property var toplevel: kind === "window" ? PopoutState.payload || ToplevelManager.activeToplevel : null
|
||||
// Anchors may name a wider placement item (the tray pill, the window list)
|
||||
// so the drawer stays put while the pointer moves between its entries.
|
||||
readonly property var anchorObject: anchorItem
|
||||
readonly property Item placementItem: anchorObject ? (anchorObject.placement || anchorObject) : null
|
||||
readonly property point anchorPoint: placementItem && anchorWindow ? placementItem.mapToItem(anchorWindow.contentItem, 0, 0) : Qt.point(0, 0)
|
||||
// Window-relative, plus the window's screen offset for centred layers (the notch).
|
||||
readonly property real windowOffsetX: anchorWindow && anchorWindow.screenOffsetX !== undefined ? anchorWindow.screenOffsetX : 0
|
||||
readonly property point windowPoint: placementItem && anchorWindow ? placementItem.mapToItem(anchorWindow.contentItem, 0, 0) : Qt.point(0, 0)
|
||||
readonly property point anchorPoint: Qt.point(windowPoint.x + windowOffsetX, windowPoint.y)
|
||||
readonly property real availableWidth: screen ? screen.width : 1280
|
||||
readonly property real targetWidth: Math.ceil(root.kind === "window" ? windowCard.implicitWidth : tip.implicitWidth)
|
||||
readonly property real targetHeight: Math.ceil(root.kind === "window" ? windowCard.implicitHeight : tip.implicitHeight)
|
||||
readonly property Item card: kind === "window" ? windowCard : kind === "workspace" ? workspaceCard : tip
|
||||
readonly property real targetWidth: Math.ceil(card.implicitWidth)
|
||||
readonly property real targetHeight: Math.ceil(card.implicitHeight)
|
||||
readonly property real targetX: BarDrawers.clampX(anchorPoint.x + (placementItem ? placementItem.width / 2 : 0), targetWidth + 2 * BarDrawers.ear, availableWidth)
|
||||
// Morph only while the drawer is out; a cold open grows in place.
|
||||
readonly property bool morph: drawer.progress > 0.05 && Theme.duration > 0
|
||||
@@ -90,6 +96,7 @@ PanelWindow {
|
||||
drawerId: "popout"
|
||||
screenName: root.screen ? root.screen.name : ""
|
||||
screenX: root.animX
|
||||
sourceScreenX: root.anchorPoint.x + (root.placementItem ? root.placementItem.width / 2 : 0)
|
||||
onHoveredChanged: PopoutState.setPopoutHovered(hovered)
|
||||
Text {
|
||||
id: tip
|
||||
@@ -108,6 +115,26 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
}
|
||||
// A hovered workspace in the bar, live.
|
||||
WorkspacePreview {
|
||||
id: workspaceCard
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
workspaceId: root.kind === "workspace" ? PopoutState.payload || 0 : 0
|
||||
live: root.active && root.kind === "workspace"
|
||||
opacity: root.kind === "workspace" ? 1 : 0
|
||||
visible: opacity > 0
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
duration: Theme.duration / 2
|
||||
}
|
||||
}
|
||||
onChosen: {
|
||||
const id = workspaceId;
|
||||
PopoutState.close();
|
||||
HyprlandService.focusWorkspace(id);
|
||||
}
|
||||
}
|
||||
Column {
|
||||
id: windowCard
|
||||
objectName: "windowPreview"
|
||||
|
||||
@@ -5,9 +5,12 @@ Row {
|
||||
id: root
|
||||
required property string position
|
||||
property var barScreen
|
||||
// Notch mode passes its own module entries; inactive rows load nothing.
|
||||
property var modules: null
|
||||
property bool active: true
|
||||
spacing: 8
|
||||
Repeater {
|
||||
model: BarLayout.modulesFor(root.barScreen ? root.barScreen.name : "").filter(m => m.enabled && m.position === root.position)
|
||||
model: !root.active ? [] : root.modules !== null ? root.modules : BarLayout.modulesFor(root.barScreen ? root.barScreen.name : "").filter(m => m.enabled && m.position === root.position)
|
||||
ModuleLoader { required property var modelData; moduleId: modelData.id; barScreen: root.barScreen; entry: modelData }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
import QtQuick
|
||||
import "../../components"
|
||||
import "../../services"
|
||||
// Caffeine on the bar: keeps the system awake while lit.
|
||||
BarToggle {
|
||||
property var entry: ({})
|
||||
objectName: "caffeineModule"
|
||||
tip: "Caffeine"
|
||||
glyph: CaffeineService.active ? "" : ""
|
||||
on: CaffeineService.active
|
||||
bare: entry.bare === true
|
||||
onClicked: CaffeineService.toggle()
|
||||
}
|
||||
@@ -21,11 +21,10 @@ GlassPill {
|
||||
color: Theme.text
|
||||
font.pixelSize: 13
|
||||
}
|
||||
// Clicking the clock opens the dashboard (Settings → Dashboard).
|
||||
// Clicking the clock toggles the Control Center.
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
enabled: ConfigService.ready && ConfigService.data.dashboard.enabled && ConfigService.data.dashboard.openFromClock
|
||||
cursorShape: enabled ? Qt.PointingHandCursor : Qt.ArrowCursor
|
||||
onClicked: ShellState.toggleDashboard("")
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: ShellState.toggleControlCenter()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
import QtQuick
|
||||
import "../../components"
|
||||
import "../../services"
|
||||
// Night Light on the bar. Shows the provider's acknowledged state; while
|
||||
// only the bar watches, the state is polled slowly.
|
||||
BarToggle {
|
||||
property var entry: ({})
|
||||
readonly property var info: SystemService.state.nightLight || ({
|
||||
available: false
|
||||
})
|
||||
objectName: "nightLightModule"
|
||||
tip: "Night Light"
|
||||
glyph: ""
|
||||
on: !!info.enabled
|
||||
bare: entry.bare === true
|
||||
enabled: !!info.available && !SystemService.acting
|
||||
onClicked: SystemService.action("nightLight", !info.enabled, false)
|
||||
Component.onCompleted: SystemService.nightLightWatchers++
|
||||
Component.onDestruction: SystemService.nightLightWatchers--
|
||||
}
|
||||
@@ -23,6 +23,13 @@ GlassPill {
|
||||
// Omarchy widgets report emptiness through hasVisualContent instead.
|
||||
readonly property var widgetObject: loader.item
|
||||
readonly property bool shown: !!widget && (noctalia || widgetObject.hasVisualContent !== false) && widget.implicitWidth > 0
|
||||
// A plugin can offer a "background" setting; "transparent" drops the
|
||||
// pill so its widget sits straight on the bar, like the tray's option.
|
||||
// The spots beside the notch drop it too.
|
||||
readonly property bool bare: settings.background === "transparent" || entry.bare === true
|
||||
color: bare ? "transparent" : Qt.alpha(Theme.surface, surfaceOpacity)
|
||||
border.width: bare ? 0 : 1
|
||||
plain: bare
|
||||
implicitHeight: ModuleRegistry.pillHeight
|
||||
implicitWidth: shown ? Math.ceil(widget.implicitWidth) + 8 : 0
|
||||
visible: implicitWidth > 0
|
||||
|
||||
@@ -7,6 +7,7 @@ import "../../core"
|
||||
Item {
|
||||
id: root
|
||||
property var barScreen
|
||||
property var entry: ({})
|
||||
readonly property bool shown: TrayService.options.enabled && TrayService.items.length > 0
|
||||
implicitWidth: shown ? row.implicitWidth + 12 : 0
|
||||
implicitHeight: shown ? ModuleRegistry.pillHeight : 0
|
||||
@@ -14,7 +15,7 @@ Item {
|
||||
// The whole pill is hover space: gaps between icons keep a hover menu open.
|
||||
readonly property bool hovered: hover.hovered
|
||||
HoverHandler { id: hover }
|
||||
GlassPill { anchors.fill: parent; visible: TrayService.options.background === "pill" }
|
||||
GlassPill { anchors.fill: parent; visible: TrayService.options.background === "pill" && root.entry.bare !== true }
|
||||
Row {
|
||||
id: row; anchors.centerIn: parent; spacing: TrayService.options.spacing
|
||||
Repeater {
|
||||
|
||||
@@ -6,21 +6,29 @@ import "../../theme"
|
||||
import "../../services"
|
||||
import "../../core"
|
||||
|
||||
// Workspace switcher. Styles (bar.workspaces.style): numbers, roman numerals,
|
||||
// Workspace switcher. Styles (bar.workspaces.style): numbers, roman numerals, kanji,
|
||||
// dots (filled = occupied, ring = empty) and pacman (after Serpantinum: pellets
|
||||
// for empty workspaces, ghosts for occupied ones, Pac-Man on the active one).
|
||||
GlassPill {
|
||||
id: root
|
||||
property var barScreen
|
||||
// Layout entry; notch islands mark theirs so the notch can use its own style.
|
||||
property var entry: ({})
|
||||
// Every bar follows the globally focused workspace, whichever monitor it is on.
|
||||
readonly property int activeId: Hyprland.focusedWorkspace ? Hyprland.focusedWorkspace.id : 0
|
||||
// Workspaces shown on other monitors get a faint outline.
|
||||
readonly property var visibleIds: Hyprland.monitors.values.map(m => m.activeWorkspace ? m.activeWorkspace.id : 0).filter(id => id > 0 && id !== activeId)
|
||||
readonly property int count: ConfigService.data.bar.workspaces.count
|
||||
readonly property string style: ConfigService.data.bar.workspaces.style || "numbers"
|
||||
// Hovering a workspace shows it live in the bar popout (off for copies,
|
||||
// like the one in Settings).
|
||||
property bool hoverPreview: true
|
||||
readonly property bool previews: hoverPreview && ConfigService.data.bar.workspaces.preview !== false
|
||||
readonly property string notchStyle: entry && entry.notch && ConfigService.data.notch ? ConfigService.data.notch.workspaceStyle : "bar"
|
||||
readonly property string style: notchStyle && notchStyle !== "bar" ? notchStyle : ConfigService.data.bar.workspaces.style || "numbers"
|
||||
readonly property bool textual: style === "numbers" || style === "roman" || style === "kanji"
|
||||
readonly property bool pacman: style === "pacman"
|
||||
readonly property real pacmanScale: 0.95
|
||||
readonly property int slotWidth: style === "roman" ? 38 : style === "dots" ? 22 : style === "pacman" ? 24 : 32
|
||||
readonly property int slotWidth: style === "roman" ? 38 : style === "kanji" ? (count > 10 ? 40 : 30) : style === "dots" ? 22 : style === "pacman" ? 24 : 32
|
||||
readonly property int slotHeight: height - 6
|
||||
readonly property int activeIndex: activeId >= 1 && activeId <= count ? activeId - 1 : -1
|
||||
width: count * slotWidth + 8
|
||||
@@ -36,6 +44,13 @@ GlassPill {
|
||||
}
|
||||
return result;
|
||||
}
|
||||
// Japanese numerals: 一 … 十, then 十一 … 二十.
|
||||
function kanji(value) {
|
||||
const digits = ["", "一", "二", "三", "四", "五", "六", "七", "八", "九"];
|
||||
if (value < 10)
|
||||
return digits[value];
|
||||
return (value >= 20 ? digits[Math.floor(value / 10)] : "") + "十" + digits[value % 10];
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: root.pacman ? [] : root.visibleIds.filter(id => id <= root.count)
|
||||
@@ -84,20 +99,20 @@ GlassPill {
|
||||
width: root.slotWidth
|
||||
height: root.slotHeight
|
||||
|
||||
// Numbers and roman numerals
|
||||
// Numbers, roman numerals and kanji
|
||||
Text {
|
||||
visible: root.style === "numbers" || root.style === "roman"
|
||||
visible: root.textual
|
||||
anchors.centerIn: parent
|
||||
anchors.verticalCenterOffset: slot.occupied && !slot.active ? -2 : 0
|
||||
text: root.style === "roman" ? root.roman(slot.index + 1) : slot.index + 1
|
||||
font.pixelSize: root.style === "roman" ? 11 : 12
|
||||
text: root.style === "roman" ? root.roman(slot.index + 1) : root.style === "kanji" ? root.kanji(slot.index + 1) : slot.index + 1
|
||||
font.pixelSize: root.style === "roman" ? 11 : root.style === "kanji" ? 13 : 12
|
||||
font.weight: root.style === "roman" ? Font.DemiBold : Font.Normal
|
||||
font.letterSpacing: root.style === "roman" ? 0.5 : 0
|
||||
color: slot.urgent ? Theme.urgent : slot.active ? Theme.accentText : Theme.text
|
||||
opacity: slot.active || slot.occupied ? 1 : 0.5
|
||||
}
|
||||
Rectangle {
|
||||
visible: (root.style === "numbers" || root.style === "roman") && slot.occupied && !slot.active
|
||||
visible: root.textual && slot.occupied && !slot.active
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: 1
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
@@ -194,12 +209,33 @@ GlassPill {
|
||||
}
|
||||
}
|
||||
}
|
||||
// The focused workspace is already on screen; the rest preview.
|
||||
HoverHandler {
|
||||
enabled: root.previews
|
||||
onHoveredChanged: {
|
||||
if (hovered)
|
||||
PopoutState.hover(slot, slot.active ? "" : "workspace", "", slot.index + 1);
|
||||
else
|
||||
PopoutState.unhover(slot);
|
||||
}
|
||||
}
|
||||
Connections {
|
||||
target: slot
|
||||
function onActiveChanged() {
|
||||
if (slot.active && PopoutState.anchor === slot)
|
||||
PopoutState.close();
|
||||
}
|
||||
}
|
||||
MouseArea {
|
||||
id: pelletArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: root.pacman
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: Hyprland.dispatch("workspace " + (slot.index + 1))
|
||||
onClicked: {
|
||||
if (PopoutState.anchor === slot)
|
||||
PopoutState.close();
|
||||
Hyprland.dispatch("hl.dsp.focus({ workspace = '" + (slot.index + 1) + "' })");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
pragma Singleton
|
||||
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell
|
||||
import qs.compat.noctalia.Services.Power
|
||||
import "../../../theme" as G
|
||||
|
||||
@@ -60,6 +60,11 @@ PanelWindow {
|
||||
WlrLayershell.layer: WlrLayer.Overlay
|
||||
WlrLayershell.keyboardFocus: open ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None
|
||||
|
||||
C.OutsideClick {
|
||||
window: root
|
||||
active: root.open
|
||||
onOutside: root.api.closePanel(null)
|
||||
}
|
||||
MouseArea {
|
||||
x: -20000
|
||||
y: -20000
|
||||
@@ -79,6 +84,7 @@ PanelWindow {
|
||||
drawerId: "noctalia-panel-" + (root.api ? root.api.pluginId : "")
|
||||
screenName: root.screen ? root.screen.name : ""
|
||||
screenX: root.drawerX
|
||||
sourceScreenX: root.fromBar ? root.anchorCenter : -1
|
||||
focus: root.open
|
||||
Keys.onEscapePressed: root.api.closePanel(null)
|
||||
|
||||
|
||||
@@ -26,6 +26,6 @@ Singleton {
|
||||
return s ? s.devicePixelRatio : 1;
|
||||
}
|
||||
function switchToWorkspace(workspace) {
|
||||
Hyprland.dispatch("workspace " + (workspace && workspace.id !== undefined ? workspace.id : workspace));
|
||||
Hyprland.dispatch("hl.dsp.focus({ workspace = '" + (workspace && workspace.id !== undefined ? workspace.id : workspace) + "' })");
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
pragma Singleton
|
||||
import Qt.labs.folderlistmodel
|
||||
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
Item {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
Item {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Widgets
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
// Rounded group container using the variant surface color.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
Item {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Services.UI
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
import "../Helpers/ColorsConvert.js" as ColorsConvert
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Services.UI
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import QtQml
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import "../Helpers/ColorList.js" as ColorList
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Shapes
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Qt.labs.folderlistmodel
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Templates as T
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Widgets
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell
|
||||
import Quickshell.Widgets
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Effects
|
||||
import QtQuick.Layouts
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Window
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Widgets
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Widgets
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Services.UI
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Templates as T
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import Quickshell
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Widgets
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Templates as T
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Effects
|
||||
import QtQuick.Layouts
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Services.UI
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Shapes
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
import qs.compat.noctalia.Widgets
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.compat.noctalia.Commons
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
pragma Singleton
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import "BorderGeometry.js" as Geometry
|
||||
|
||||
// Central border-spec factory for shell surfaces and controls. A spec carries
|
||||
|
||||
@@ -14,6 +14,8 @@ QtObject {
|
||||
property color accent: G.Theme.accentVivid
|
||||
property color urgent: G.Theme.urgent
|
||||
property color muted: G.Theme.textSecondary
|
||||
// Readable text on a solid accent fill (dark on a light accent).
|
||||
property color accentText: G.Theme.accentText
|
||||
|
||||
// Kept for API compatibility; always empty here.
|
||||
property var shellValues: ({})
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
pragma Singleton
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import "../../../theme" as G
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import qs.compat.omarchy.Commons
|
||||
// The button. One component for every clickable thing in the kit.
|
||||
@@ -76,6 +76,11 @@ BorderSurface {
|
||||
readonly property bool hot: mouseArea.containsMouse || hasCursor
|
||||
readonly property bool _showFocusRing: focusable && activeFocus
|
||||
readonly property color _selectedColor: Style.selectedStateColor(root.foreground, root.accent)
|
||||
// glassMxrph: a resting selected button is a solid accent pill with the
|
||||
// theme's accent text, like the shell's own segmented controls. Accent text
|
||||
// on an accent tint was unreadable with light accents.
|
||||
readonly property bool _solidSelected: selected && !hot && !mouseArea.pressed && !_showFocusRing && Qt.colorEqual(root.accent, Color.accent)
|
||||
readonly property color _labelColor: _solidSelected ? Color.accentText : selected && !hot ? _selectedColor : root.foreground
|
||||
readonly property var _tooltipBorderSpec: Border.localOrSurfaceSpec("tooltip", "border", root.tooltipBorder, Color.tooltip.border, Math.max(1, Style.normalBorderWidth))
|
||||
readonly property var _focusBorderSpec: Border.controlSpec("focus", root.foreground, root.accent)
|
||||
readonly property var _hoverBorderSpec: Border.controlSpec("hover-cursor", root.foreground, root.accent)
|
||||
@@ -111,6 +116,7 @@ BorderSurface {
|
||||
color: mouseArea.pressed ? Style.pressedFillFor(root.foreground, root.accent)
|
||||
: _showFocusRing ? Style.focusFillFor(root.foreground, root.accent)
|
||||
: hot ? Style.hoverFillFor(root.foreground, root.accent)
|
||||
: _solidSelected ? Color.accent
|
||||
: selected ? Style.selectedFillFor(root.foreground, root.accent)
|
||||
: active ? Style.selectedFillFor(root.foreground, root.accent)
|
||||
: background
|
||||
@@ -161,7 +167,7 @@ BorderSurface {
|
||||
textFormat: Text.PlainText
|
||||
visible: root.iconText !== ""
|
||||
text: root.iconText
|
||||
color: root.selected ? root._selectedColor : root.foreground
|
||||
color: root._labelColor
|
||||
font.family: root.fontFamily
|
||||
font.pixelSize: root.iconSize
|
||||
rotation: root.iconSpinning ? 0 : root.iconRotation
|
||||
@@ -181,7 +187,7 @@ BorderSurface {
|
||||
textFormat: Text.PlainText
|
||||
visible: root.text !== ""
|
||||
text: root.text
|
||||
color: root.selected ? root._selectedColor : root.foreground
|
||||
color: root._labelColor
|
||||
font.family: root.fontFamily
|
||||
font.pixelSize: root.fontSize
|
||||
font.bold: root.selected
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
// Mutually-exclusive row of Buttons — the form-style "pick one of N"
|
||||
// pattern (bar position top/right/bottom/left, theme preset chips, etc.).
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
Item {
|
||||
id: root
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
// Shared visual chrome for keyboard-and-mouse-navigable items inside a panel.
|
||||
// Contract: items must NOT read `containsMouse` for color/border. Mouse
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import qs.compat.omarchy.Commons
|
||||
// Themed single-select dropdown. Trigger row paints with the kit's focus
|
||||
|
||||
@@ -83,7 +83,10 @@ PanelWindow {
|
||||
readonly property point anchorScreenPos: {
|
||||
root.open
|
||||
if (!anchorItem || !anchorWindow) return Qt.point(0, 0)
|
||||
return anchorItem.mapToItem(anchorWindow.contentItem, 0, 0)
|
||||
const p = anchorItem.mapToItem(anchorWindow.contentItem, 0, 0)
|
||||
// Centred layers (the open notch) report their screen offset.
|
||||
const offset = anchorWindow.screenOffsetX !== undefined ? anchorWindow.screenOffsetX : 0
|
||||
return Qt.point(p.x + offset, p.y)
|
||||
}
|
||||
readonly property real anchorW: anchorItem ? anchorItem.width : 0
|
||||
readonly property real anchorH: anchorItem ? anchorItem.height : 0
|
||||
@@ -131,8 +134,13 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
// Keyboard mode: Hyprland routes every click to the exclusive layer, so
|
||||
// outside clicks arrive here with out-of-bounds coordinates (see ControlCenter).
|
||||
C.OutsideClick {
|
||||
window: root
|
||||
active: root.open && root.mode === "keyboard"
|
||||
extraWindows: root.anchorWindow ? [root.anchorWindow] : []
|
||||
onOutside: root.close()
|
||||
}
|
||||
// Keyboard mode: fallback outside-click catcher (see ControlCenter).
|
||||
MouseArea {
|
||||
x: -20000
|
||||
y: -20000
|
||||
@@ -157,6 +165,7 @@ PanelWindow {
|
||||
drawerId: "plugin-popup-" + (root.owner && root.owner.moduleName ? root.owner.moduleName : "")
|
||||
screenName: root.screen ? root.screen.name : ""
|
||||
screenX: root.drawerX
|
||||
sourceScreenX: root.centerOnBar ? -1 : root.anchorScreenPos.x + root.anchorW / 2
|
||||
|
||||
// Swallow clicks on the card so they never reach the outside catcher.
|
||||
MouseArea {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls as QQC
|
||||
import QtQuick.Window
|
||||
import Quickshell.Io
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls as QQC
|
||||
import qs.compat.omarchy.Commons
|
||||
Column {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
Item {
|
||||
id: root
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import Quickshell.Io
|
||||
import qs.compat.omarchy.Commons
|
||||
// Base item for plugin popup widgets. Many first-party plugins expose a bar
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
// Small (22×22 by default) icon button used at the right edge of panel rows
|
||||
// for inline actions — forget network, confirm passphrase, unpair device,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
Item {
|
||||
id: root
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
// Small-caps-style label that introduces a panel section ("DNS provider",
|
||||
// "Wi-Fi networks", "Output device", "Paired devices"). Sits between a
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
// 1px horizontal divider for panel sections. The alpha-on-foreground tint
|
||||
// keeps the rule legible against the panel background without competing
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
import "../../../theme" as G
|
||||
Item {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import qs.compat.omarchy.Commons
|
||||
// Styled wrapper around Qt Quick Controls ToolTip. Drop-in: declare inside
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls as QQC
|
||||
import qs.compat.omarchy.Commons
|
||||
// Searchable single-select dropdown. Same trigger shape as Dropdown, but
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Layouts
|
||||
import QtQuick.Shapes
|
||||
import Quickshell
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import QtQuick.Controls
|
||||
import qs.compat.omarchy.Commons
|
||||
// Single-line text input with the kit's focus + selection styling. Inherits
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
// Labeled toggle row: title + optional description on the left, a
|
||||
// `ToggleSwitch` on the right. Clicking anywhere on the row emits `clicked()`;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
import "../../../theme" as G
|
||||
// Bare on/off switch: a track with a sliding knob and no label. This is the
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import QtQuick
|
||||
import QtQuick 6.8 // 6.12 added a QtQuick Color singleton that hides Commons.Color
|
||||
import qs.compat.omarchy.Commons
|
||||
import "../../../theme" as G
|
||||
Item {
|
||||
|
||||
@@ -21,13 +21,42 @@ Item {
|
||||
// "slide" unrolls out of the bar; "drop" falls into place and away
|
||||
// downwards; "fade" fades in place; "shrink" grows from / shrinks to nothing.
|
||||
property string style: "slide"
|
||||
readonly property bool unrolls: style === "slide"
|
||||
// Notch mode has no bar to unroll from: attached drawers use NotchDrop
|
||||
// instead, with the notch's own panel speeds. Opt out with `liquid: false`.
|
||||
property bool liquid: ShellState.notchMode && attached
|
||||
// Screen x of the icon the drawer belongs to; the drop comes out under it.
|
||||
property real sourceScreenX: -1
|
||||
// Fill and timing; notch mode passes the notch's own.
|
||||
property color fillColor: Qt.alpha(Theme.surface, Theme.glassOpacity)
|
||||
property real openDuration: Theme.duration * 1.8
|
||||
property real closeDuration: Theme.duration
|
||||
readonly property bool unrolls: style === "slide" && !liquid
|
||||
property real progress: open ? 1 : 0
|
||||
readonly property real revealed: unrolls ? Math.max(0, contentHeight * progress) : contentHeight
|
||||
// Drop moves down on the way in and on the way out.
|
||||
property real dropFrom: -1
|
||||
onOpenChanged: dropFrom = open ? -1 : 1
|
||||
readonly property bool shown: progress > 0.001
|
||||
// Hyprland fades out a layer's last frame when it unmaps. A fast close can
|
||||
// jump from a visible bead straight to 0, so the drop stays mapped for a
|
||||
// few frames after closing to present an empty frame first.
|
||||
readonly property bool shown: progress > 0.001 || holdEmpty
|
||||
property bool holdEmpty: false
|
||||
onOpenChanged: {
|
||||
dropFrom = open ? -1 : 1;
|
||||
holdEmpty = !open && liquid && progress > 0.001;
|
||||
emptyFrames.stop();
|
||||
}
|
||||
onProgressChanged: if (holdEmpty && progress <= 0.001)
|
||||
emptyFrames.restart()
|
||||
Timer {
|
||||
id: emptyFrames
|
||||
interval: 60
|
||||
onTriggered: root.holdEmpty = false
|
||||
}
|
||||
// NotchDrop's content fade: in once the panel has its size, out first.
|
||||
readonly property real dropContent: {
|
||||
const t = Math.min(1, Math.max(0, (progress - 0.82) / 0.18));
|
||||
return t * t * (3 - 2 * t);
|
||||
}
|
||||
readonly property bool settled: !anim.running && open
|
||||
// Input/hover region: the full body as soon as it opens (the pointer may
|
||||
// reach the drawer before the reveal finishes), the visible part while closing.
|
||||
@@ -36,12 +65,17 @@ Item {
|
||||
// Content parent, for items reparented in at runtime.
|
||||
readonly property alias container: inner
|
||||
// Enter: emphasized decelerate; exit: emphasized accelerate (Material 3).
|
||||
// Timing follows where the animation is heading, not `open`: both bindings
|
||||
// depend on `open`, and the animation can start before the duration updates.
|
||||
Behavior on progress {
|
||||
id: motionBehavior
|
||||
NumberAnimation {
|
||||
id: anim
|
||||
duration: root.open ? Theme.duration * 1.8 : Theme.duration
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: root.open ? [0.05, 0.7, 0.1, 1, 1, 1] : [0.3, 0, 0.8, 0.15, 1, 1]
|
||||
readonly property bool opening: motionBehavior.targetValue > 0.5
|
||||
duration: root.liquid ? (anim.opening ? Theme.notchPanelOpenDuration : Theme.notchPanelCloseDuration) : anim.opening ? root.openDuration : root.closeDuration
|
||||
// NotchDrop eases each phase itself.
|
||||
easing.type: root.liquid ? Easing.Linear : Easing.BezierSpline
|
||||
easing.bezierCurve: anim.opening ? [0.05, 0.7, 0.1, 1, 1, 1] : [0.3, 0, 0.8, 0.15, 1, 1]
|
||||
}
|
||||
}
|
||||
implicitWidth: contentWidth + 2 * ear
|
||||
@@ -65,18 +99,37 @@ Item {
|
||||
id: motion
|
||||
width: root.width
|
||||
height: root.height
|
||||
opacity: root.style === "fade" || root.style === "drop" ? root.progress : root.style === "shrink" ? Math.min(1, root.progress * 1.5) : 1
|
||||
scale: root.style === "shrink" ? Math.max(0.001, root.progress) : 1
|
||||
opacity: root.liquid ? 1 : root.style === "fade" || root.style === "drop" ? root.progress : root.style === "shrink" ? Math.min(1, root.progress * 1.5) : 1
|
||||
scale: !root.liquid && root.style === "shrink" ? Math.max(0.001, root.progress) : 1
|
||||
transformOrigin: Item.Center
|
||||
transform: Translate {
|
||||
y: root.style === "drop" ? (1 - root.progress) * 28 * root.dropFrom * Math.max(0.3, Theme.intensity) : 0
|
||||
y: !root.liquid && root.style === "drop" ? (1 - root.progress) * 28 * root.dropFrom * Math.max(0.3, Theme.intensity) : 0
|
||||
}
|
||||
Loader {
|
||||
active: root.liquid
|
||||
width: root.width
|
||||
sourceComponent: NotchDrop {
|
||||
width: root.width
|
||||
progress: root.progress
|
||||
bodyX: root.ear
|
||||
bodyWidth: root.contentWidth
|
||||
bodyHeight: root.contentHeight
|
||||
sourceX: root.sourceScreenX < 0 ? -1 : root.sourceScreenX - root.screenX
|
||||
topSpace: Math.max(0, root.y)
|
||||
islandBottom: Math.round((BarDrawers.bottom - BarDrawers.height) / 2) + BarDrawers.height - root.y
|
||||
fillColor: root.fillColor
|
||||
screenName: root.screenName
|
||||
screenX: root.screenX
|
||||
}
|
||||
}
|
||||
DrawerShape {
|
||||
id: shape
|
||||
visible: !root.liquid
|
||||
bodyWidth: root.contentWidth
|
||||
bodyHeight: root.revealed
|
||||
ear: BarDrawers.ear
|
||||
attached: root.attached
|
||||
fillColor: root.fillColor
|
||||
}
|
||||
Item {
|
||||
id: hit
|
||||
@@ -89,7 +142,10 @@ Item {
|
||||
width: root.contentWidth
|
||||
height: root.contentHeight
|
||||
y: root.revealed - root.contentHeight
|
||||
opacity: root.unrolls ? Math.min(1, root.progress * 1.6) : 1
|
||||
opacity: root.liquid ? root.dropContent : root.unrolls ? Math.min(1, root.progress * 1.6) : 1
|
||||
transform: Translate {
|
||||
y: root.liquid ? (1 - root.dropContent) * 6 : 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
import QtQuick
|
||||
import "../core"
|
||||
import "../theme"
|
||||
// A bar module that is one glyph switching something on and off (Caffeine,
|
||||
// Night Light). Lit in the accent colour while on. `bare` (the spots beside
|
||||
// the notch) drops the pill and keeps only a soft hover circle.
|
||||
Item {
|
||||
id: root
|
||||
property string glyph
|
||||
property bool on: false
|
||||
property bool bare: false
|
||||
property string tip: ""
|
||||
signal clicked
|
||||
implicitWidth: ModuleRegistry.pillHeight
|
||||
implicitHeight: ModuleRegistry.pillHeight
|
||||
opacity: enabled ? 1 : 0.45
|
||||
GlassPill {
|
||||
anchors.fill: parent
|
||||
visible: !root.bare
|
||||
}
|
||||
Rectangle {
|
||||
anchors.centerIn: parent
|
||||
width: parent.height - 6
|
||||
height: width
|
||||
radius: width / 2
|
||||
color: root.on ? Qt.alpha(Theme.accent, 0.16) : Theme.hover
|
||||
opacity: area.containsMouse || root.on ? 1 : 0
|
||||
Behavior on opacity { NumberAnimation { duration: Theme.duration / 2 } }
|
||||
}
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: root.glyph
|
||||
color: root.on ? Theme.accent : Theme.text
|
||||
font.pixelSize: Math.round(root.height * 0.46)
|
||||
Behavior on color { ColorAnimation { duration: Theme.duration } }
|
||||
}
|
||||
scale: area.pressed ? 1 - 0.06 * Theme.intensity : 1
|
||||
Behavior on scale { NumberAnimation { duration: Theme.duration / 2; easing.type: Easing.OutCubic } }
|
||||
MouseArea {
|
||||
id: area
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: root.clicked()
|
||||
}
|
||||
Accessible.role: Accessible.CheckBox
|
||||
Accessible.name: root.tip
|
||||
Accessible.checked: root.on
|
||||
}
|
||||
@@ -3,30 +3,40 @@ import QtQuick.Controls
|
||||
import "../theme"
|
||||
|
||||
// Thick pill slider with an icon inside the track (macOS Control Center style).
|
||||
// Vertical sliders fill from the bottom with the icon at the foot.
|
||||
Slider {
|
||||
id: root
|
||||
property string glyph
|
||||
property string fallback
|
||||
implicitWidth: 220
|
||||
implicitHeight: 28
|
||||
implicitWidth: vertical ? 28 : 220
|
||||
implicitHeight: vertical ? 220 : 28
|
||||
padding: 0
|
||||
background: Rectangle {
|
||||
x: root.leftPadding
|
||||
y: root.topPadding + root.availableHeight / 2 - height / 2
|
||||
y: root.topPadding + (root.vertical ? 0 : root.availableHeight / 2 - height / 2)
|
||||
width: root.availableWidth
|
||||
height: root.availableHeight
|
||||
radius: height / 2
|
||||
radius: Math.min(width, height) / 2
|
||||
color: Theme.surfaceVariant
|
||||
border.width: root.activeFocus ? 1 : 0
|
||||
border.color: Theme.accent
|
||||
Rectangle {
|
||||
readonly property real knob: parent.height
|
||||
width: Math.max(knob, knob + root.visualPosition * (parent.width - knob))
|
||||
height: parent.height
|
||||
radius: height / 2
|
||||
readonly property real knob: root.vertical ? parent.width : parent.height
|
||||
readonly property real length: Math.max(knob, knob + root.position * ((root.vertical ? parent.height : parent.width) - knob))
|
||||
y: root.vertical ? parent.height - height : 0
|
||||
width: root.vertical ? parent.width : length
|
||||
height: root.vertical ? length : parent.height
|
||||
radius: knob / 2
|
||||
color: root.enabled ? Qt.alpha(Theme.text, 0.92) : Qt.alpha(Theme.text, 0.35)
|
||||
Behavior on width {
|
||||
enabled: !root.pressed
|
||||
enabled: !root.pressed && !root.vertical
|
||||
NumberAnimation {
|
||||
duration: Theme.duration / 2
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
}
|
||||
Behavior on height {
|
||||
enabled: !root.pressed && root.vertical
|
||||
NumberAnimation {
|
||||
duration: Theme.duration / 2
|
||||
easing.type: Easing.OutCubic
|
||||
@@ -34,20 +44,21 @@ Slider {
|
||||
}
|
||||
}
|
||||
Text {
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: (parent.height - width) / 2
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
readonly property real knob: root.vertical ? parent.width : parent.height
|
||||
x: root.vertical ? (parent.width - width) / 2 : (knob - width) / 2
|
||||
y: root.vertical ? parent.height - knob / 2 - height / 2 : (parent.height - height) / 2
|
||||
text: Icons.available && root.glyph ? root.glyph : root.fallback
|
||||
font.family: Icons.available && root.glyph ? Icons.family : ""
|
||||
font.pixelSize: Math.round(parent.height * 0.5)
|
||||
font.pixelSize: Math.round(knob * 0.5)
|
||||
color: Theme.surface
|
||||
}
|
||||
}
|
||||
handle: Rectangle {
|
||||
x: root.leftPadding + root.visualPosition * (root.availableWidth - width)
|
||||
y: root.topPadding + root.availableHeight / 2 - height / 2
|
||||
width: root.availableHeight
|
||||
height: root.availableHeight
|
||||
readonly property real knob: root.vertical ? root.availableWidth : root.availableHeight
|
||||
x: root.leftPadding + (root.vertical ? 0 : root.visualPosition * (root.availableWidth - width))
|
||||
y: root.topPadding + (root.vertical ? root.visualPosition * (root.availableHeight - height) : root.availableHeight / 2 - height / 2)
|
||||
width: knob
|
||||
height: knob
|
||||
radius: width / 2
|
||||
color: root.enabled ? Theme.text : Qt.alpha(Theme.text, 0.5)
|
||||
border.width: 1
|
||||
|
||||
@@ -4,6 +4,8 @@ import "../theme"
|
||||
Rectangle {
|
||||
id: root
|
||||
property real surfaceOpacity: Theme.glassOpacity
|
||||
// Drops the shadow and highlights, for panels drawn on another shape.
|
||||
property bool plain: false
|
||||
radius: Theme.radius
|
||||
color: Qt.alpha(Theme.surface, surfaceOpacity)
|
||||
border.width: 1
|
||||
@@ -15,12 +17,12 @@ Rectangle {
|
||||
anchors.bottomMargin: -4
|
||||
radius: root.radius
|
||||
color: Theme.shadow
|
||||
visible: Theme.shadows
|
||||
visible: Theme.shadows && !root.plain
|
||||
}
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: root.radius
|
||||
visible: Theme.highlights
|
||||
visible: Theme.highlights && !root.plain
|
||||
gradient: Gradient {
|
||||
GradientStop {
|
||||
position: 0
|
||||
@@ -43,6 +45,6 @@ Rectangle {
|
||||
width: Math.max(0, parent.width - root.radius * 2)
|
||||
height: 1
|
||||
color: Theme.border
|
||||
visible: Theme.highlights
|
||||
visible: Theme.highlights && !root.plain
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import "../theme"
|
||||
|
||||
// In-window hover hint styled like the bar's tooltip popout. Declare it as a
|
||||
// child of the hovered item instead of using the attached ToolTip, which only
|
||||
// gets the stock Basic style.
|
||||
ToolTip {
|
||||
id: root
|
||||
padding: 7
|
||||
leftPadding: 12
|
||||
rightPadding: 12
|
||||
y: -implicitHeight - 6
|
||||
font.pixelSize: 12
|
||||
contentItem: Text {
|
||||
text: root.text
|
||||
font: root.font
|
||||
color: Theme.text
|
||||
wrapMode: Text.Wrap
|
||||
}
|
||||
background: GlassPanel {
|
||||
surfaceOpacity: Theme.panelOpacity
|
||||
radius: Math.min(Theme.radius, height / 2)
|
||||
}
|
||||
enter: Transition {
|
||||
NumberAnimation {
|
||||
property: "opacity"
|
||||
from: 0
|
||||
to: 1
|
||||
duration: Theme.duration / 2
|
||||
}
|
||||
}
|
||||
exit: Transition {
|
||||
NumberAnimation {
|
||||
property: "opacity"
|
||||
from: 1
|
||||
to: 0
|
||||
duration: Theme.duration / 2
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,123 @@
|
||||
import QtQuick
|
||||
import "../theme"
|
||||
|
||||
// Hold-to-confirm overlay: accent liquid fills the parent shape while
|
||||
// `holding` is true and emits completed() once full. Let go early and it
|
||||
// drains. The glyph (or `inkSource`) turns the accent text colour where the
|
||||
// liquid covers it, so the overlay sits on top of the button's own glyph.
|
||||
Item {
|
||||
id: root
|
||||
property bool holding: false
|
||||
property int duration: 800
|
||||
property real radius: Math.min(width, height) / 2
|
||||
property color color: Theme.accent
|
||||
property color inkColor: Theme.accentText
|
||||
// The default ink is a centred glyph matching the button's own.
|
||||
property string glyph
|
||||
property string fallback
|
||||
property int glyphSize: Math.round(Math.min(width, height) * 0.5)
|
||||
property int glyphWeight: Font.Normal
|
||||
// Any transparent item the size of this one, e.g. a row of labels.
|
||||
property Item inkSource: defaultInk
|
||||
property real progress: 0
|
||||
property real time: 0
|
||||
// Stays full for a moment after completing, in case the action fails.
|
||||
property bool latched: false
|
||||
readonly property bool active: progress > 0
|
||||
signal completed
|
||||
// Let go before full.
|
||||
signal cancelled
|
||||
|
||||
onHoldingChanged: {
|
||||
if (latched)
|
||||
return;
|
||||
if (holding) {
|
||||
drain.stop();
|
||||
rise.from = progress;
|
||||
rise.duration = Math.max(1, (1 - progress) * duration);
|
||||
rise.start();
|
||||
} else if (rise.running || progress > 0) {
|
||||
rise.stop();
|
||||
if (progress < 1)
|
||||
cancelled();
|
||||
root.empty();
|
||||
}
|
||||
}
|
||||
function empty() {
|
||||
drain.from = progress;
|
||||
drain.duration = Theme.duration * 2.2 * progress;
|
||||
drain.start();
|
||||
}
|
||||
|
||||
NumberAnimation {
|
||||
id: rise
|
||||
target: root
|
||||
property: "progress"
|
||||
to: 1
|
||||
easing.type: Easing.InOutSine
|
||||
onFinished: if (root.progress >= 1) {
|
||||
root.latched = true;
|
||||
hold.restart();
|
||||
root.completed();
|
||||
}
|
||||
}
|
||||
NumberAnimation {
|
||||
id: drain
|
||||
target: root
|
||||
property: "progress"
|
||||
to: 0
|
||||
easing.type: Easing.OutCubic
|
||||
}
|
||||
Timer {
|
||||
id: hold
|
||||
interval: 900
|
||||
onTriggered: {
|
||||
root.latched = false;
|
||||
if (!root.holding)
|
||||
root.empty();
|
||||
}
|
||||
}
|
||||
FrameAnimation {
|
||||
running: root.active && Theme.intensity > 0
|
||||
onTriggered: root.time += frameTime
|
||||
}
|
||||
|
||||
Text {
|
||||
id: defaultInk
|
||||
width: root.width
|
||||
height: root.height
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: Icons.available && root.glyph ? root.glyph : root.fallback
|
||||
font.family: Icons.available && root.glyph ? Icons.family : ""
|
||||
font.pixelSize: root.glyphSize
|
||||
font.weight: root.glyphWeight
|
||||
color: "white"
|
||||
}
|
||||
ShaderEffectSource {
|
||||
id: inkTexture
|
||||
sourceItem: root.inkSource
|
||||
hideSource: root.inkSource === defaultInk
|
||||
live: true
|
||||
visible: false
|
||||
}
|
||||
ShaderEffect {
|
||||
anchors.fill: parent
|
||||
visible: root.active
|
||||
property point size: Qt.point(width, height)
|
||||
property real radius: root.radius
|
||||
property real level: root.progress
|
||||
property real time: root.time
|
||||
// Sloshes more while draining than while filling.
|
||||
property real slosh: Math.max(1.2, root.height * 0.06) * Math.min(1, Theme.intensity) * (root.holding ? 1 : 1.6)
|
||||
property vector4d fill: Qt.vector4d(root.color.r * root.color.a, root.color.g * root.color.a, root.color.b * root.color.a, root.color.a)
|
||||
property vector4d ink: Qt.vector4d(root.inkColor.r * root.inkColor.a, root.inkColor.g * root.inkColor.a, root.inkColor.b * root.inkColor.a, root.inkColor.a)
|
||||
property var glyph: inkTexture
|
||||
fragmentShader: Qt.resolvedUrl("shaders/holdfill.frag.qsb")
|
||||
Behavior on slosh {
|
||||
NumberAnimation {
|
||||
duration: Theme.duration
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import "../services"
|
||||
import "../theme"
|
||||
|
||||
// Notch mode's own panel animation (BarDrawer swaps to it while notch mode
|
||||
// is on). There is no bar to unroll from, so a glass bead swells out under the
|
||||
// clicked island icon on a tapered neck, works as a lens on the wallpaper
|
||||
// while it hangs, then widens into the panel and lets go of the island.
|
||||
// Drawer-local coordinates; `progress` runs linearly, the easing lives here.
|
||||
Item {
|
||||
id: root
|
||||
property real progress: 0
|
||||
property real bodyX: 0
|
||||
property real bodyWidth: 300
|
||||
property real bodyHeight: 200
|
||||
// Drawer-local x of the icon the panel belongs to; -1 is the middle.
|
||||
property real sourceX: -1
|
||||
// Distance from the screen top to the drawer's top edge.
|
||||
property real topSpace: 0
|
||||
// Drawer-local y of the islands' bottom edge (negative: above the drawer).
|
||||
property real islandBottom: -5
|
||||
property real radius: Theme.radius
|
||||
property color fillColor: Qt.alpha(Theme.surface, Theme.glassOpacity)
|
||||
property color borderColor: Theme.border
|
||||
property string screenName: ""
|
||||
property real screenX: 0
|
||||
|
||||
y: -topSpace
|
||||
height: topSpace + bodyHeight
|
||||
visible: progress > 0.002
|
||||
|
||||
function clamp(x, a, b) {
|
||||
return Math.min(b, Math.max(a, x));
|
||||
}
|
||||
function lerp(a, b, t) {
|
||||
return a + (b - a) * t;
|
||||
}
|
||||
function sstep(a, b, x) {
|
||||
const t = clamp((x - a) / (b - a), 0, 1);
|
||||
return t * t * (3 - 2 * t);
|
||||
}
|
||||
function out3(t) {
|
||||
return 1 - Math.pow(1 - clamp(t, 0, 1), 3);
|
||||
}
|
||||
|
||||
readonly property var g: {
|
||||
const p = progress, W = bodyWidth, H = bodyHeight, X = bodyX;
|
||||
const panelR = Math.min(radius, W / 2, H / 2);
|
||||
// Small panels (tooltips) get a smaller bead.
|
||||
const bulbMax = Math.max(6, Math.min(40, W / 2 - 2, H / 2 - 2));
|
||||
const top = islandBottom - 3;
|
||||
const sx = clamp(sourceX < 0 ? X + W / 2 : sourceX, X + bulbMax + 2, X + W - bulbMax - 2);
|
||||
const a = out3(p / 0.4); // bead swells and sinks
|
||||
const b = clamp((p - 0.3) / 0.62, 0, 1); // bead becomes the panel
|
||||
const eb = out3(b);
|
||||
const release = sstep(0.8, 0.95, p); // the neck lets go
|
||||
// The bead shrinks all the way back into the island, so the last frame
|
||||
// before the layer unmaps is empty (Hyprland fades that frame out).
|
||||
const grow = sstep(0.015, 0.12, p);
|
||||
const bulbR = Math.max(0.01, lerp(0, bulbMax, a) * grow);
|
||||
const hang = Math.max(4, Math.min(66, H - bulbMax - 2 - top));
|
||||
const beadY = top + lerp(4, hang, a);
|
||||
// A small sideways swell as it settles, kept inside the ears.
|
||||
const swell = Math.sin(clamp((b - 0.55) / 0.45, 0, 1) * Math.PI) * 0.03;
|
||||
const halfW = Math.min(lerp(bulbR, W / 2, eb) * (1 + swell), W / 2 + X - 1);
|
||||
const halfH = lerp(bulbR, H / 2, eb);
|
||||
const cx = lerp(sx, X + W / 2, eb), cy = lerp(beadY, H / 2, eb);
|
||||
return {
|
||||
stem: Qt.vector4d(sx, top, lerp(6, 11, a) * grow * (1 - release), lerp(bulbR * 0.9, 10, eb) * (1 - release)),
|
||||
stemH: lerp(beadY, 12, eb) - top,
|
||||
box: Qt.vector4d(cx, cy, halfW, halfH),
|
||||
boxR: Math.min(lerp(bulbR, panelR, eb), halfW, halfH),
|
||||
melt: lerp(20, 6, release),
|
||||
// Only the bead is a lens; it clears before the panel takes shape.
|
||||
lens: Qt.vector4d(cx, cy, Math.min(Math.max(halfW, halfH), bulbMax * 1.4), 1 - sstep(0.3, 0.52, p))
|
||||
};
|
||||
}
|
||||
|
||||
// The wallpaper under this screen, for the lens. Loaded only while the drop
|
||||
// is out; the pixmap cache keeps it for the next opening.
|
||||
readonly property var screenObj: Quickshell.screens.find(s => s.name === screenName) || null
|
||||
readonly property string wallPath: {
|
||||
if (!screenName || !ConfigService.ready)
|
||||
return "";
|
||||
return WallpaperService.observed[screenName] || ConfigService.data.wallpaper.byMonitor[screenName] || "";
|
||||
}
|
||||
Image {
|
||||
id: wallImage
|
||||
visible: false
|
||||
asynchronous: true
|
||||
cache: true
|
||||
sourceSize.width: 1280
|
||||
source: root.visible && root.wallPath ? "file://" + root.wallPath : ""
|
||||
}
|
||||
readonly property vector4d cover: {
|
||||
const iw = wallImage.implicitWidth, ih = wallImage.implicitHeight;
|
||||
const sw = screenObj ? screenObj.width : 1920, sh = screenObj ? screenObj.height : 1080;
|
||||
if (iw <= 0 || ih <= 0)
|
||||
return Qt.vector4d(0, 0, 0, 0);
|
||||
const sc = Math.max(sw / iw, sh / ih), w = iw * sc, h = ih * sc;
|
||||
return Qt.vector4d(1 / w, 1 / h, (w - sw) / 2 / w, (h - sh) / 2 / h);
|
||||
}
|
||||
|
||||
ShaderEffect {
|
||||
anchors.fill: parent
|
||||
opacity: root.sstep(0.005, 0.04, root.progress)
|
||||
property point size: Qt.point(width, height)
|
||||
property real topY: -root.topSpace
|
||||
property vector4d stem: root.g.stem
|
||||
property real stemH: root.g.stemH
|
||||
property vector4d box: root.g.box
|
||||
property real boxR: root.g.boxR
|
||||
property real melt: root.g.melt
|
||||
property vector4d lens: root.g.lens
|
||||
property vector4d fill: Qt.vector4d(root.fillColor.r * root.fillColor.a, root.fillColor.g * root.fillColor.a, root.fillColor.b * root.fillColor.a, root.fillColor.a)
|
||||
property vector4d edge: Qt.vector4d(root.borderColor.r * root.borderColor.a, root.borderColor.g * root.borderColor.a, root.borderColor.b * root.borderColor.a, root.borderColor.a)
|
||||
property vector4d cover: root.cover
|
||||
property point screenOrigin: Qt.point(root.screenX, root.topSpace)
|
||||
property real hasWall: wallImage.status === Image.Ready ? 1 : 0
|
||||
property var wall: wallImage
|
||||
fragmentShader: Qt.resolvedUrl("shaders/notchdrop.frag.qsb")
|
||||
}
|
||||
}
|
||||
Loaded 100 of 211 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user