Turn the lock screen into an unfolding glass dashboard
At rest the lock screen shows the date, glass clock and Now Playing. Typing or clicking opens a glass card with avatar, name, status and password, then wings unfold: weather (with the next forecasts) and system usage on the left, notifications and media with Cava on the right, reusing the desktop widget faces. Adds a Caps Lock warning, power controls behind a corner button, and Dashboard and Notification previews settings. The screenshot backdrop is now always fully blurred and dimmed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4fa0c2c042
commit
b96b0cb683
12 files changed
+1114
-330
No files matched your search
@@ -70,7 +70,7 @@ function validate(c) {
|
||||
for(const key of ["showAlbumArt","showProgress","showAlbum","showCava"])if(typeof c.media[key]!=="boolean")throw Error("Invalid media toggle");
|
||||
if(typeof c.media.preferredPlayer!=="string")throw Error("Invalid media preferences");
|
||||
const lock=c.lock;
|
||||
if(!lock || ["enabled","glass","media","powerButtons"].some(k=>typeof lock[k]!=="boolean") || !["wallpaper","screenshot"].includes(lock.backdrop) || typeof lock.pamService!=="string" || !/^[A-Za-z0-9._-]{0,64}$/.test(lock.pamService))throw Error("Invalid lock screen preferences");
|
||||
if(!lock || ["enabled","glass","media","dashboard","notificationPreviews","powerButtons"].some(k=>typeof lock[k]!=="boolean") || !["wallpaper","screenshot"].includes(lock.backdrop) || typeof lock.pamService!=="string" || !/^[A-Za-z0-9._-]{0,64}$/.test(lock.pamService))throw Error("Invalid lock screen preferences");
|
||||
const dw=c.desktopWidgets;
|
||||
if(!dw || dw.version!==1 || typeof dw.grid!=="boolean" || !Array.isArray(dw.items))throw Error("Invalid desktop widgets");
|
||||
const widgetIds=new Set();
|
||||
|
||||
Reference in new issue
Block a user