Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-08-06 11:57:23

furycd001
Member
From: Northern Ireland
Registered: 2018-08-22
Posts: 21
Website

Help with mousepad window border....

HI guys..

On my system mousepad appears with a white border around the edges of the window. Is there any way I can remove this border :? Please see the screenshots attached below & many thanks in advanced for replying....


Active window....
Mousepad

Full desktop....
Full desktop

Offline

#2 2020-08-06 12:45:19

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: Help with mousepad window border....

Have you removed all window decorations? It looks like a window border, but just in case...

Does this happen with any other applications?
Unfortunately, mousepad doesn't have an overriding style class defined that you could target just it:
mousepad.png

You could try the following in ~/.config/gtk-3.0/gtk.css:

box { background-color: #ff0000; }

...and if the light colour changes to red you'll know that's it. Then you can change the colour to suit.

However, note that this will affect all box elements on your system.

Offline

#3 2020-08-06 13:43:51

furycd001
Member
From: Northern Ireland
Registered: 2018-08-22
Posts: 21
Website

Re: Help with mousepad window border....

ToZ wrote:

Have you removed all window decorations? It looks like a window border, but just in case...

Does this happen with any other applications?
Unfortunately, mousepad doesn't have an overriding style class defined that you could target just it:
https://i.ibb.co/rs3vBBD/mousepad.png

You could try the following in ~/.config/gtk-3.0/gtk.css:

box { background-color: #ff0000; }

...and if the light colour changes to red you'll know that's it. Then you can change the colour to suit.

However, note that this will affect all box elements on your system.

Yea I'm using a theme that has removed all window decorations. I can confirm that it only happens with mousepad & no other applications are affected. You only really notice it whenever you switch to a color scheme with a dark background. I've tried a number of different dark color schemes & they all give the same results. I've added that code to my gtk.css but the white border is still visible. The top & bottom border is now thinner which matches the sides so it doesn't look as bad, but it's still there....

Offline

#4 2020-08-06 14:02:38

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: Help with mousepad window border....

Try this:

box, notebook { background-color: #ff0000; }

If that doesn't work, move it up to the window level:

window { background-color: #ff0000; }

Double check to see what the effect is on other apps again.

Offline

#5 2020-08-06 14:19:08

furycd001
Member
From: Northern Ireland
Registered: 2018-08-22
Posts: 21
Website

Re: Help with mousepad window border....

ToZ wrote:

Try this:

box, notebook { background-color: #ff0000; }

If that doesn't work, move it up to the window level:

window { background-color: #ff0000; }

Double check to see what the effect is on other apps again.

Still just thins out the top & bottom borders around the window to match the sides. Though using window appears to only affect mousepad & not all box elements which is nice. With how thin the border is now I can easily live with it, without it being annoying..

Here's a screenshot showing mousepad, xfce4-terminal & thunar.....
Screenshot

Offline

#6 2020-08-06 14:34:19

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 7,116

Re: Help with mousepad window border....

How about:

scrolledwindow { border-width: 0px; }

Edit:
I can't replicate this on my system. Which distro and which version of mousepad are you running?

Last edited by ToZ (2020-08-06 14:35:09)

Offline

#7 2020-08-06 14:46:30

furycd001
Member
From: Northern Ireland
Registered: 2018-08-22
Posts: 21
Website

Re: Help with mousepad window border....

ToZ wrote:

How about:

scrolledwindow { border-width: 0px; }

Edit:
I can't replicate this on my system. Which distro and which version of mousepad are you running?

That done it big_smile Thank you soooo much smile For reference I'm running Xubuntu 18.04 with mousepad version_0.4.0, but can confirm that it's now fixed thanks to that code. Again thank you....

Last edited by furycd001 (2020-08-06 14:48:45)

Offline

Board footer

Powered by FluxBB