summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2022-08-21 20:59:25 +0200
committerFlorian Müllner <fmuellner@gnome.org>2022-09-04 15:23:43 +0200
commitc1400a1af469ba0de2e75d9027afc045f6b4b1e6 (patch)
treefeed85cf57cbf0997247dd68c6e6fce89ac6f85f
parentc2f11dab8845433f381be10d609b366d08d2b077 (diff)
downloadgnome-shell-sass-c1400a1af469ba0de2e75d9027afc045f6b4b1e6.tar.gz
screenshot: Disable screencasts when locked
It is currently not possible to bring up the screenshot UI while locked, but that is about to change. We still don't want screencasts in that case, because they are much easier to abuse for filling up someone else's disk. That restriction is enforced by inhibiting remote access in the backend, so trying to create a screencast session will fail anyway. Still, not offering an action that is unavailable is better than having it fail silently, so do exactly that. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2439>
-rw-r--r--widgets/_screenshot.scss1
1 files changed, 1 insertions, 0 deletions
diff --git a/widgets/_screenshot.scss b/widgets/_screenshot.scss
index f7fa3da..150f273 100644
--- a/widgets/_screenshot.scss
+++ b/widgets/_screenshot.scss
@@ -98,6 +98,7 @@ $screenshot_ui_button_red: $error_color;
&:hover, &:focus { background-color: lighten($osd_bg_color, 10%);}
&:active { background-color: lighten($active_bg_color,5%);}
&:checked { background-color: white;color: black;}
+ &:insensitive { color: transparentize($osd_fg_color, 0.5);}
border-radius: $modal_radius - $screenshot_ui_shot_cast_spacing;