2 Commits

Author SHA1 Message Date
714fadc997 Fix: Corrected opened URL and Added assets for Sunshine 2026-09-05 23:03:02 +01:00
99e2225b51 UI: Made Bitwarden correct size 2026-09-05 22:58:20 +01:00
3 changed files with 40 additions and 25 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 22.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Sunshine_Logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
y="0px" width="256px" height="256px" viewBox="10 6 236 245" style="enable-background:new 0 0 256 256;" xml:space="preserve">
<style type="text/css">
.st0{fill:#FDD107;}
.st1{fill:#F89A1C;}
.st2{fill:#EF3E23;}
.st3{fill:#F26222;}
</style>
<path class="st0" d="M118.7688675,20.7120476c0,0-63.8333359,26-74.3333359,83.8333282s37.1666718,91.5,86.3333282,75.3333282
s70.3333435-51,81.8333435-86.9999924c0,0-9.3333435,100.4999924-96.1666718,115.4999924s-118.1666641-50-82.1666641-119.8333282
C44.2688675,67.0453796,80.5188675,29.6287155,118.7688675,20.7120476z"/>
<path class="st1" d="M118.7688675,20.7120476c0,0-41.125,3.6666679-83.25,61.0416679s-28.125,139.125,34.25,149.375
s115.8749924-44.875,133.5-82.375s15.1666718-61.4583282,9.75-77.8749924c0,0,0.6666718,36.4166641-13.3333282,59.6666641
s-29.75,46.3333282-65.0833282,62.1666718s-74.1666718,13.75-95.4166718-19.25s-5.9166641-76.0833359-0.2916641-85.3333359
S72.3938675,33.7953796,118.7688675,20.7120476z"/>
<path class="st2" d="M73.0188675,39.6287155c0,0,38.125-28.125,76.8749924-28.125s63,28.25,68.5,52.25s6,54.125-11.5,87.6249924
s-37.375,56-79.1249924,76.125s-84.625,2.75-84.625,2.75s25.9769745,25.8750153,71.0509872,16.5
c45.0740051-9.375,82.2406769-40.875,98.4073486-69.5s28.7916565-57.3749924,27.6666565-92.2499924s-23.75-54.5-31.25-60.25
s-23.1875-17.8125-58.1875-16.5625S86.4563675,29.8162155,73.0188675,39.6287155z"/>
<path class="st3" d="M73.0188675,39.6287155c0,0,35-32.8125,82.4374924-32.8125s69.1875,24.8125,78.875,44.6875
s21.8125,70-12.1875,122.9999924s-74.625,67.375-93.625,71.625s-42.4311447,4.269165-59.1114044-1.2299957
c0,0,35.1947479,8.3966675,66.7780762-7.4366608s51.6666718-32.1666718,74.0833282-68.8333435
s25.9166718-72.7499924,22.1666718-93.9166565s-12.1666718-42.4166718-36.5-56.3333359s-56.7291718-10.531251-74.4791641-4.531251
S91.9876175,26.4099655,73.0188675,39.6287155z"/>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@@ -6,37 +6,24 @@ import Quickshell.Services.SystemTray
import Quickshell.Widgets import Quickshell.Widgets
import "../../config" import "../../config"
// A curated stand-in for the full system tray (see Tray.qml) — just the
// couple of apps worth one click away, rather than every SNI item any
// background app happens to register. Each entry shows that app's own live
// tray icon (and forwards clicks to it, same as Tray.qml) while it's
// running; when it isn't, it falls back to the app's static icon, dimmed,
// and a click launches it instead of doing nothing.
RowLayout { RowLayout {
id: root id: root
spacing: Appearance.spacing * 1 spacing: Appearance.spacing * 1.
// name: matched case-insensitively against a tray item's id/title to
// find this app's live icon, once it's running.
// icon: themed icon name shown in place of a live tray icon.
// launch: command run on left-click while not running.
// secondary: optional command run on right-click, regardless of running
// state, in place of forwarding to the tray item's own
// secondaryActivate() (which for most apps' tray icons does
// nothing useful anyway).
readonly property var pinned: [ readonly property var pinned: [
{ {
name: "Bitwarden", name: "Bitwarden",
icon: "bitwarden", icon: Qt.resolvedUrl("../../assets/bitwarden.png"),
launch: ["bitwarden-desktop", "--ozone-platform-hint=auto", "--silent"], launch: ["bitwarden"],
}, },
{ {
name: "Sunshine", name: "Sunshine",
icon: "dev.lizardbyte.app.Sunshine",
icon: Qt.resolvedUrl("../../assets/sunshine.svg"),
launch: ["systemctl", "--user", "start", "app-dev.lizardbyte.app.Sunshine.service"], launch: ["systemctl", "--user", "start", "app-dev.lizardbyte.app.Sunshine.service"],
// Sunshine is configured entirely through its web UI — there's secondary: ["xdg-open", "https://xol.twhomelab.local:47990"],
// no separate desktop app to "open" here.
secondary: ["xdg-open", "https://localhost:47990"],
}, },
] ]
@@ -63,10 +50,11 @@ RowLayout {
IconImage { IconImage {
anchors.fill: parent anchors.fill: parent
source: slot.running ? slot.trayItem.icon : Quickshell.iconPath(slot.modelData.icon) source: slot.running
// Not-running is the only cue we give beyond the click ? slot.trayItem.icon
// behavior itself — dimmed rather than hidden or badged, so : (slot.modelData.icon.includes("://")
// the icon stays put and clickable either way. ? slot.modelData.icon
: Quickshell.iconPath(slot.modelData.icon))
opacity: slot.running ? 1.0 : 0.5 opacity: slot.running ? 1.0 : 0.5
} }