aboutsummaryrefslogtreecommitdiffstats
path: root/styles/modules.css
diff options
context:
space:
mode:
Diffstat (limited to 'styles/modules.css')
-rw-r--r--styles/modules.css24
1 files changed, 23 insertions, 1 deletions
diff --git a/styles/modules.css b/styles/modules.css
index 9cc3f5e..4d3d38e 100644
--- a/styles/modules.css
+++ b/styles/modules.css
@@ -174,7 +174,29 @@
border-radius: 8px;
}
-#image.idle {
+/* Presentation mode. statusctl emits the state as a class and an empty text,
+ * so the icon is chosen here rather than by a format string.
+ *
+ * `down` is not `off`: the state file is missing, so the mode cannot be read
+ * at all. It draws a warning rather than the off icon, because a watcher that
+ * has died should not look like a mode that is simply not on. */
+#custom-presentation {
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: 18px 18px;
padding: 2px 10px;
min-width: 22px;
+ min-height: 18px;
+}
+
+#custom-presentation.deactivated {
+ background-image: url("@ICONS@/categories/22/preferences-desktop-screensaver.svg");
+}
+
+#custom-presentation.activated {
+ background-image: url("@ICONS@/mimetypes/22/x-office-presentation.svg");
+}
+
+#custom-presentation.down {
+ background-image: url("@ICONS@/status/22/dialog-warning.svg");
}