B00merang-Project / Windows-10-Fluent-Dark

Windows 10 Dark variant with black as main color
http://b00merang.weebly.com/windows-10.html
GNU General Public License v3.0
35 stars 6 forks source link

can gtk3-style headerbar apps have zero margin too for title bar buttons? #12

Closed sidmint closed 3 years ago

sidmint commented 3 years ago

[so i found it's a gtk3 thing instead of Qt and edited the content] Some apps like gnome-disk, archive manager[file-roller], gnome-calculator, evince [gnome-disk-utility shown below] have their own margins/offsets for the buttons [close button highlighted having an offset contrary to the theme] in title bar independent of the theme. Can't this be controlled by the theme?

2020-12-21-20:27:46

Mint 19.3 xfce

Elbullazul commented 3 years ago

hi, sorry for taking a bit too long to reply

although this is technically feasible, it requires playing with margins, and I'm not comfortable with that, as it has caused issues in the past. I also try not to mess up with GNOME's positioning of widgets to avoid having the buttons look out of place or break other controls.

If you don't mind the occasional bugs or weirdness, here's how to do it:

  1. in gtk-3.0/gtk.css at line 1585, set padding: 4px 8px to padding: 0;
  2. at line 1613, add background-color: transparent; to the headerbar button node
  3. at line 1644 (now 1645), add the same snippet in the headerbar button:backdrop node
sidmint commented 3 years ago

Hiyee! Thanks a lot, also for also telling how to do it.

taking a bit too long to reply

oh don't say that, it's ok, it's life. Thank you for your help and works.