Score:2

Names of gnome-shell power-off/restart/logout dialogs

in flag

In the latest versions of gnome-shell the power-off/restart dialog has been split into separate dialogs (compare Ubuntu 20.04 with 21.10). Along with the log-out dialog they are all themed by the entries for end-session-dialog in gnome-shell.css. Do the individual dialogs have names so that they can be themed independently, e.g. the last-child could have a different background color in each?

To make my intentions clear, here are images of what I would like to have. In each case it's the background color of the last child that is different. With just the end-session-dialog modified all three dialogs will have the same background color for each component.

Power Off Dialog

Restart Dialog

Log Out Dialog

Score:0
cn flag

I did some digging, and currently (2023.01.11) it seems there are no such names.

You could possibly extend it with an additional class, if You have the time and some JavaScript knowledge.

You can check for Yourself, here is the file that is responsible for all of them: https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/endSessionDialog.js#L232

  • Line 232: styleClass: 'end-session-dialog', might be a good example/starting point, as it adds the base class to the dialog.
  • Line 712: async OpenAsync(parameters, invocation) { seems to be the entry point, so that might be another plce to start looking.

If You make it, do a merge request if You please, so that others can make use of it too.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.