From 9ad2f501d5f4a7af9416144d65566674417f901a Mon Sep 17 00:00:00 2001 From: JezerM Date: Thu, 8 Jul 2021 23:27:29 -0600 Subject: [PATCH] Added lock indicator --- themes/gruvbox/css/style.css | 6 +++++- themes/gruvbox/index.html | 3 +++ themes/gruvbox/js/index.js | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/themes/gruvbox/css/style.css b/themes/gruvbox/css/style.css index 05ab97f..4645812 100644 --- a/themes/gruvbox/css/style.css +++ b/themes/gruvbox/css/style.css @@ -77,7 +77,6 @@ body { .info { position: absolute; - bottom: 0; margin: 10px; font-size: 2em; padding: 8px; @@ -248,6 +247,11 @@ input:focus, input:focus-visible { bottom: 0; left: 0; } +#lock-label { + top: 0; + left: 0; + font-weight: bold; +} .label-bar { position: absolute; diff --git a/themes/gruvbox/index.html b/themes/gruvbox/index.html index 0f47936..d424eba 100644 --- a/themes/gruvbox/index.html +++ b/themes/gruvbox/index.html @@ -64,6 +64,9 @@
+
+ Lock +
diff --git a/themes/gruvbox/js/index.js b/themes/gruvbox/js/index.js index 59e8a15..16caa04 100644 --- a/themes/gruvbox/js/index.js +++ b/themes/gruvbox/js/index.js @@ -40,6 +40,10 @@ async function initGreeter() { brightness = new Brightness() + var lock = lightdm.lock_hint + if (lock) { + document.querySelector("#lock-label").classList.remove("hide") + } } const notGreeter = false