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

Forum rules
Before you post please read how to get help
Post Reply
HarryHouTX
Level 1
Level 1
Posts: 17
Joined: Sun Jul 03, 2016 2:15 pm

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

Post by HarryHouTX » Mon Jun 24, 2019 10:56 am

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!
Last edited by HarryHouTX on Wed Jun 26, 2019 5:33 pm, edited 1 time in total.

User avatar
smurphos
Level 12
Level 12
Posts: 4382
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

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

Post by smurphos » Tue Jun 25, 2019 1:24 am

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
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

HarryHouTX
Level 1
Level 1
Posts: 17
Joined: Sun Jul 03, 2016 2:15 pm

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

Post by HarryHouTX » Tue Jun 25, 2019 10:38 pm

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!

User avatar
smurphos
Level 12
Level 12
Posts: 4382
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

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

Post by smurphos » Wed Jun 26, 2019 12:29 am

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; }
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

HarryHouTX
Level 1
Level 1
Posts: 17
Joined: Sun Jul 03, 2016 2:15 pm

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

Post by HarryHouTX » Wed Jun 26, 2019 7:53 am

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.

HarryHouTX
Level 1
Level 1
Posts: 17
Joined: Sun Jul 03, 2016 2:15 pm

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

Post by HarryHouTX » Wed Jun 26, 2019 5:12 pm

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

User avatar
smurphos
Level 12
Level 12
Posts: 4382
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

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

Post by smurphos » Thu Jun 27, 2019 12:37 am

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;
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

Post Reply

Return to “Themes, Icons, & Wallpaper”