You are not logged in.


Hello,
i have included in my ~/.config/gtk-3.0/gtk.css the following:
/* Remove round corners from theme */
* { border-radius: 0 !important; box-shadow: none !important; }
However I am not seeing any change after restarting. Is there another method?
Last edited by igor87 (2025-05-04 10:09:16)
Offline


Which GTK theme are you using? Can you post the full contents of your gtk.css file?
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Which GTK theme are you using? Can you post the full contents of your gtk.css file?
Currently using Bluecurve-Lime from xfce-look.org but tested with many others including Adwaita. None seem to be affected by the radius changes in gtk.css. Was hoping i didn't have to edit theme files individually but could just apply a global rule.
Contents of ~/.config/gtk-3.0/gtk.css:
/* Remove round corners from theme */
* { border-radius: 0 !important; box-shadow: none !important; }
/* Prevent fading out of non-active window panels */
.tasklist { -XfceTasklist-minimized-icon-lucency: 100; }
.tasklist .label-hidden { opacity: 1.0 }perhaps the global * class does not work ?
Offline


I see. "!important" is not valid in gtk. Try instead:
* { border-radius: 0; box-shadow: none; }Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


I see. "!important" is not valid in gtk. Try instead:
* { border-radius: 0; box-shadow: none; }
Ok removing !important does make it work for most things now, unfortunately, the one thing I was trying to change seems not to be affected, the icon selection radius in thunar:

Would you happen to know the css class for the icon selection box (purple) in the screenshot?
I tried these for testing purposes:
.thunar,
.thunar .view:selected,
.iconview.view:selected,
.view:selected,
.iconview:selected,
.cell:selected,
*:selected,
*:focus,
*:active {
border-radius: 0;
background-color: #00ff00;
}But none of those affected it.
Offline


What you are seeing there is the file highlight feature of thunar (see: https://gitlab.xfce.org/xfce/thunar/-/m … quests/226). It overrides gtk.css and it currently looks like its hard-coded to do rounded corners. I can't seem to find an option to override it.
You might wish to create an enhancement request to make it configurable.
Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline


Took a bit of digging but finally managed to do it. Had to modify the source file thunar/thunar-util.c and change the line #define BORDER_RADIUS 8 to #define BORDER_RADIUS 0 then rebuild it. Finally no more round corners. Thanks for pointing me in the right direction.
Offline
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 552.03 KiB (Peak: 552.88 KiB) ]