From 332e6d20f426ae4881ce5e1d5db69fb8e4f15c90 Mon Sep 17 00:00:00 2001 From: rajchales-monito Date: Thu, 30 Jul 2026 17:20:54 +0200 Subject: [PATCH] Add more launcher online effects --- public/admin.css | 17 +++++++++++++++++ public/admin.html | 3 +++ public/admin.js | 15 ++++++++++++--- public/widget.js | 15 +++++++++++++++ server.js | 3 +++ 5 files changed, 50 insertions(+), 3 deletions(-) diff --git a/public/admin.css b/public/admin.css index 91dc80b..5a580a9 100644 --- a/public/admin.css +++ b/public/admin.css @@ -283,6 +283,9 @@ label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; } .launcher-preview.notify-wiggle .launcher-preview-icon { animation: launcherPreviewWiggle .62s ease-in-out infinite; } +.launcher-preview.effect-sway .launcher-preview-icon { + animation: launcherPreviewSway 4.8s ease-in-out infinite; +} .launcher-preview-status { position: absolute; top: -3px; @@ -293,6 +296,10 @@ label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; } border-radius: 50%; background: #c9d4ce; box-shadow: 0 0 0 4px rgb(201 212 206 / 24%); + display: none; +} +.launcher-preview.show-status .launcher-preview-status { + display: block; } .launcher-preview.online .launcher-preview-status { background: #2f9e44; @@ -338,6 +345,10 @@ label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; } opacity: 1; transform: translateY(-50%) translateX(0); } +.launcher-preview.label-always .launcher-preview-label { + opacity: 1; + transform: translateY(-50%) translateX(0); +} .launcher-preview-icon, .launcher-preview-icon::before, .launcher-preview-icon::after { @@ -470,6 +481,12 @@ label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; } 48% { transform: translateY(2px) rotate(3deg); } 72% { transform: translateY(-1px) rotate(-2deg); } } +@keyframes launcherPreviewSway { + 0%, 72%, 100% { transform: translateX(0) rotate(0deg); } + 78% { transform: translateX(-2px) rotate(-4deg); } + 84% { transform: translateX(2px) rotate(4deg); } + 90% { transform: translateX(-1px) rotate(-2deg); } +} .widget-language-settings { grid-template-columns: 112px minmax(230px, 1fr); } diff --git a/public/admin.html b/public/admin.html index 064b1f1..94e04ba 100644 --- a/public/admin.html +++ b/public/admin.html @@ -173,6 +173,9 @@ + + +