lookingGlass: Add switches for debug flags

This adds a new "Flags" tab to looking glass where several debug flags
can be toggled at run time. This includes:

ClutterDebugFlags
ClutterDrawDebugFlags
MetaDebugPaintFlags
MetaDebugTopics
MetaContext::unsafe-mode

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3968
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1994>
This commit is contained in:
Sebastian Keller 2021-09-29 20:09:19 +02:00 committed by Marge Bot
parent 828da18b72
commit ac4412e4aa
2 changed files with 240 additions and 1 deletions

View file

@ -106,4 +106,18 @@ $text_fg_color: #ccc;
border: 1px solid $osd_borders_color;
border-radius: $base_border_radius;
padding: 6px;
}
}
.lg-debug-flag-button {
StLabel { padding: $base_spacing, 2 * $base_spacing; }
color: $text_fg_color;
&:hover { color: lighten($text_fg_color, 20%); }
&:active { color: darken($text_fg_color, 20%); }
}
.lg-debug-flags-header {
padding-top: 2 * $base_spacing;
font-size: 120%;
font-weight: bold;
}