Page 1 of 1

How to change Nemo Panel vertical spacing in Mint-Y [solved]

Posted: Mon Jun 24, 2019 10:56 am
by HarryHouTX
Hello All:

Calling on the superior knowledge of someone who might know how to achieve this.
Looking to make the vertical spacing of items in the Nemo Panel the same in Mint-Y as it is in Mint-X and Arc-theme.
See screen shots. Odd that the vertical spacing is the largest (too large IMHO) in Mint-Y.

Mint-X
Mint-X-Nemo-Panel.png
Arc-Theme
Arc-Nemo-Panel.png
Mint-Y
Mint-Y-Nemo-Panel.png
Is this even possible?
If someone could please assist to make Mint-Y theme even better!

Re: How to change Nemo Panel vertical spacing in Mint-Y

Posted: Tue Jun 25, 2019 1:24 am
by smurphos
Create or open the file ~/.config/gtk/gtk-3.0/gtk.css in a text editor and add the following code block to ensure all themes use the default treeview vertical separator value. Save, open a terminal and run nemo -q, Reopen nemo to check the results. If you want it even tighter use a value of 0. This file is the user gtk3 override file - any css added here will override the chosen system theme.

Code: Select all

/* Nemo sidebar - enforce default vertical separator*/
.nemo-window .places-treeview {
  -GtkTreeView-vertical-separator: 2; }
The GTK documentation for -GtkTreeView-vertical-separator states it has to be an even number 0 or greater. This doesn't appear to be the case - Mint Y uses a value of 7.

Some sample screenshots - all using Mint-Y-Dark
-GtkTreeView-vertical-separator: 0
Image
-GtkTreeView-vertical-separator: 1
Image
-GtkTreeView-vertical-separator: 2
Image
-GtkTreeView-vertical-separator: 4
Image
-GtkTreeView-vertical-separator: 8
Image

Re: How to change Nemo Panel vertical spacing in Mint-Y

Posted: Tue Jun 25, 2019 10:38 pm
by HarryHouTX
Thank you so very much for the quick reply.
I already had some entries in the global ~/.config/gtk-3.0/gtk.css file.

So when I added:

/* Nemo sidebar - enforce default vertical separator*/
.nemo-window .places-treeview {
-GtkTreeView-vertical-separator: 3; }

It also changed the TreeView-vertical-separator for Mint-X-Aqua making it too small.

So the solution was to copy the Mint-Y-Aqua theme over to ~/.themes,
then edit the ~/.themes/Mint-Y-Aqua/gtk-3.0/gtk.css file adding:

/* Nemo sidebar - enforce default vertical separator*/
.nemo-window .places-treeview {
-GtkTreeView-vertical-separator: 3; }

Now it works like a charm switching from the Mint-X to Mint-Y theme.
I would have replied earlier but I had to go to a meeting.

Thanks again!

Re: How to change Nemo Panel vertical spacing in Mint-Y

Posted: Wed Jun 26, 2019 12:29 am
by smurphos
No worries you are welcome. I experimented a bit more and some themes also have some padding set for treeview which can impact the final look. If the aim is to have the sidebar pretty much the same irrespective of theme this might be a better format as a generic override, setting both values to your preference.

Code: Select all

/* Nemo sidebar - enforce default vertical separator*/
.nemo-window .places-treeview {
  -GtkTreeView-vertical-separator: 2;
  padding: 0; }

Re: How to change Nemo Panel vertical spacing in Mint-Y

Posted: Wed Jun 26, 2019 7:53 am
by HarryHouTX
Thank you again for investigating my feedback and coming up with a global theme solution.
Made the changes you suggested and now Nemo is "pixel perfect" when I switch from Mint-X to Mint-Y without having to copy each theme individually and putting a change in it.

Re: How to change Nemo Panel vertical spacing in Mint-Y [solved]

Posted: Wed Jun 26, 2019 5:12 pm
by HarryHouTX
Look at this perfection!

Thanks again Smurphos. Any chance you could suggest this to the Mint Team?

Mint-X
Screenshot-from-2019-06-26-17-04-23.png
Mint-Y
Screenshot-from-2019-06-26-17-04-52.png

Re: How to change Nemo Panel vertical spacing in Mint-Y [solved]

Posted: Thu Jun 27, 2019 12:37 am
by smurphos
HarryHouTX wrote:
Wed Jun 26, 2019 5:12 pm
Thanks again Smurphos. Any chance you could suggest this to the Mint Team?
Nothing stopping anyone raising it as a feature request at https://github.com/linuxmint/mint-themes, but I suspect the increased side bar separation in Mint-Y themes was a design decision in the first place as the -GtkTreeView-vertical-separator: 7; is specifically set for nemo only in this this theme. Mint X on the other hand only sets this as generic for any application using a treeview, not just nemo.

Code: Select all

treeview.view {
    -GtkTreeView-vertical-separator: 0;
    padding: 1px;