Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-01-21 17:59:58

D.dave
Member
Registered: 2019-12-06
Posts: 58

Text box border: how to change the color when windows are unfocused?

Hi, in ~/.config/gtk-3.0/gtk.css I set:


entry {
    background: #232323;
    border-color: #ff9800;
    border-radius: 0;
    border-width: 2px;
}

And so, as expected, I always have such border of orange color:

(I take Task Manager as example, but also is the same for Thunar)


focused.png


But when such windows are unfocused , I still get the orange border:

unfocused.png


I tried to set entry:unselected and entry:backdrop, entry:disabled but unsuccessfully.

What I'm tyring to achieve is: when a window is unfocused, the border should have the color #4c4c4c

How can achieve this?

Thank you.

Offline

#2 2021-01-21 22:22:16

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,023

Re: Text box border: how to change the color when windows are unfocused?

Try setting both entry and entry:backdrop like this:

entry {
    background: #232323;
    border-color: #ff9800;
    border-radius: 0;
    border-width: 2px;
}
entry:backdrop {
    background: #232323;
    border-color: #4c4c4c;
    border-radius: 0;
    border-width: 2px;
}

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 2021-01-22 14:45:48

D.dave
Member
Registered: 2019-12-06
Posts: 58

Re: Text box border: how to change the color when windows are unfocused?

If I set both, the color remains #ff9800 when focused and unfocused; if I set only entry:backdrop, when focused is #ff9800 and when unfocused is black (seems that there is no border color).

Offline

#4 2021-01-22 14:51:24

D.dave
Member
Registered: 2019-12-06
Posts: 58

Re: Text box border: how to change the color when windows are unfocused?

Maybe there is something wrong with the global theme which I'm using. Css files here:
https://pastebin.com/tzUQE2XY
https://pastebin.com/bfJvrW9S

Offline

#5 2021-01-22 23:22:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,023

Re: Text box border: how to change the color when windows are unfocused?

Your css code seems to work for me.

Active:
active.png

Inactive:
inactive.png


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

Board footer

Powered by FluxBB