Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-09-07 21:04:54

mandrivaONE07
Member
From: Costa Rica
Registered: 2020-07-28
Posts: 15
Website

change the color scheme of adwaita

I’ve modified the file ".config/gtk-3.0/gtk.css" to change the color scheme of adwaita, but, in the file manager the tab is still underlined in blue and also the address bar, how can I fix it? This is the code:

@define-color theme_selected_bg_color #343434;

*:selected{
    background-color: @theme_selected_bg_color;
}

*.view:selected {
    background-color: @theme_selected_bg_color;
}

textview selection {
    background-color: @theme_selected_bg_color;
}

selection {
    background-color: @theme_selected_bg_color;
 } 

menu menuitem:hover,
.menu menuitem:hover {
     background-color: @theme_selected_bg_color;
}

switch:checked {
   background-color: @theme_selected_bg_color;
}

border-color {
    background-color: @theme_selected_bg_color;
}

 notebook > header.top > tabs > tab:checked { 
    box-shadow: inset 0 -3px  @theme_selected _bg_color;
}

J2cF4soGVbY.jpg


Mozilla/5.0 (X11;Debian 6.0.9 "squeeze" Linux, 2.6.32-5-686->AuthenticAMD, GNOME 2.30.2) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46

Offline

#2 2020-09-07 22:06:55

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: change the color scheme of adwaita

mandrivaONE07 wrote:

notebook > header.top > tabs > tab:checked {
    box-shadow: inset 0 -3px  @theme_selected _bg_color;
}

You have a space in that variable name that shouldn't be there (after "selected" and before "_bg").


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2020-09-08 02:34:01

mandrivaONE07
Member
From: Costa Rica
Registered: 2020-07-28
Posts: 15
Website

Re: change the color scheme of adwaita

ToZ wrote:

You have a space in that variable name that shouldn't be there (after "selected" and before "_bg").

Yes, you’re right... it was solved in the tabs, but the contour still looks blue, in the direction bar box or in the text fields, when you put the cursor!


Mozilla/5.0 (X11;Debian 6.0.9 "squeeze" Linux, 2.6.32-5-686->AuthenticAMD, GNOME 2.30.2) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46

Offline

#4 2020-09-08 03:06:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: change the color scheme of adwaita

What file manager is that?

Try:

entry:focus { border-color: @theme_selected_bg_color;  }

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2020-09-08 06:39:33

mandrivaONE07
Member
From: Costa Rica
Registered: 2020-07-28
Posts: 15
Website

Re: change the color scheme of adwaita

ToZ wrote:

What file manager is that?

Try:

entry:focus { border-color: @theme_selected_bg_color;  }

... did not work, the main menu of thunar/caja is also still looking the same, underlined in blue. You have to define the borders well, but I can not decipher the way comparing it with other css style sheets!


Mozilla/5.0 (X11;Debian 6.0.9 "squeeze" Linux, 2.6.32-5-686->AuthenticAMD, GNOME 2.30.2) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46

Offline

#6 2020-09-08 23:47:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,948

Re: change the color scheme of adwaita

mandrivaONE07 wrote:

the main menu of thunar/caja is also still looking the same, underlined in blue.

The main menu underline can be changed via:

menubar > menuitem:hover, .menubar > menuitem:hover { box-shadow: inset 0 -3px #ff0000; color: #1b6acb; }
menubar > menuitem:hover, .menubar > menuitem:hover label { color: #ff0000; }

...and change #ff0000 to suit.

A good resource is the Adwaita source. You can look up the colours or elements you want to change and make the corresponding changes to your custom theme.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2020-09-09 01:33:59

mandrivaONE07
Member
From: Costa Rica
Registered: 2020-07-28
Posts: 15
Website

Re: change the color scheme of adwaita

ToZ wrote:

A good resource is the Adwaita source. You can look up the colours or elements you want to change and make the corresponding changes to your custom theme.

I give up man... gtk3 has few themes that work in optimal conditions, apart from that most do not fall in love; unfortunately the high-contrast theme (is perfect) looks blue (Xfce) nothing to do!


Mozilla/5.0 (X11;Debian 6.0.9 "squeeze" Linux, 2.6.32-5-686->AuthenticAMD, GNOME 2.30.2) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46

Offline

#8 2020-09-09 01:50:41

MrEen
Member
Registered: 2019-04-19
Posts: 295

Re: change the color scheme of adwaita

Umm, the details in the signature line indicate a very old operating system!

If the sig is accurate, you should be making GTK2 changes, not GTK3.

Offline

#9 2020-09-10 18:10:00

mandrivaONE07
Member
From: Costa Rica
Registered: 2020-07-28
Posts: 15
Website

Re: change the color scheme of adwaita

MrEen wrote:

Umm, the details in the signature line indicate a very old operating system!

If the sig is accurate, you should be making GTK2 changes, not GTK3.

Look, I have Debian 6 installed -super optimal but "obsolete"-, however, from the virtual machine working with Mageia, and the high-contrast theme works as it should. On the other hand, I am suffering from this from PCLinuxOS with the Xfce.


Mozilla/5.0 (X11;Debian 6.0.9 "squeeze" Linux, 2.6.32-5-686->AuthenticAMD, GNOME 2.30.2) Gecko/20100101 Firefox/49.0 SeaMonkey/2.46

Offline

Board footer

Powered by FluxBB