1

This question already has an answer here:

I have installed the Flatabulous theme and the Paper icons on my OS but unfortunately the background color of the notifications popup is transparent, which is pretty hard to read it sometimes. How can I change the color of the popup and turn it into black or something different?

thanks in advance for the answers!

ps: I have already read this but it was not useful because I don't know where is located the file that they mention in the post. Anyways, here is an example of my notifications popup: as you can see it's hard to see, almost impossible...

enter image description here

marked as duplicate by Daniel Foré Oct 8 '17 at 17:19

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • most gtk themes out there break the elementary OS appearance and consistency. – user170 Mar 6 '17 at 10:21
  • does this mean that there's nothing to do with it? – Mark Ferrer Mar 6 '17 at 20:15
1

Just as the post you linked says you can open the file by entering

sudo scratch-text-editor /usr/share/themes/elementary/gtk-3.0/apps.css

in the terminal. Once it's open look for the section that starts with this

/*******
* Gala *
*******/

The default CSS code looks like this:

.gala-notification {
    border: none;
    border-radius: 4px;
    background-color: transparent;
    background-image:
        linear-gradient(
            to bottom,
            @bg_color,
            @bg_color 80%,
            shade (
                @bg_color,
                0.94
            )
        );

You need to change it to this:

.gala-notification {
    border: none;
    border-radius: 4px;
    background-color: transparent;
    background-image:
        linear-gradient(
            to bottom,
            @bg_color,
            @bg_color 80%,
            shade (
                @bg_color,
                0.94
            )
        );

.gala-notification GtkLabel {
    color: #fff;
 }

Log out then log back in.

  • It does not work: the popup is still transparent. – Mark Ferrer Mar 11 '17 at 16:13
  • 2
    Your theme is missing GTK widget css code for GTKListBox and Content View. You would need to rebuild the theme or try the theme linked below that handles the GTK popovers correctly, then compare codes an reverse engineer. fav.me/dbh88n2 – wefunkster Aug 11 '17 at 7:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.