Edit context menu icon in Cinnamon

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
menteith
Level 1
Level 1
Posts: 5
Joined: Sun May 13, 2018 4:16 pm

Edit context menu icon in Cinnamon

Post by menteith » Sun May 13, 2018 4:19 pm

Hi all,

I would like to customise context menu shown upon right click on desktop. In my case there is very large icon for Open as root action, which I'd like to fix.

Image

User avatar
smurphos
Level 8
Level 8
Posts: 2215
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Edit context menu icon in Cinnamon

Post by smurphos » Mon May 14, 2018 12:49 am

Hi,

I think this is a display bug / icon theme issue - if only because I see it rarely too with some icon themes.

Try going to Settings/Themes/Settings and toggling show icons on menus off. Restart cinnamon by pressing Ctrl-Alt-Esc. Toggle show icons on menus back on. Check if that's fixed it. If not try restarting Cinnamon again with Ctrl-Alt-Esc. If that still not working do the same thing but also include switching temporarily to a different icon theme in the Themes setting module.

menteith
Level 1
Level 1
Posts: 5
Joined: Sun May 13, 2018 4:16 pm

Re: Edit context menu icon in Cinnamon

Post by menteith » Mon May 14, 2018 2:21 pm

Unfortunately, none of this helped.

User avatar
smurphos
Level 8
Level 8
Posts: 2215
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Edit context menu icon in Cinnamon

Post by smurphos » Tue May 15, 2018 12:17 am

What icon theme are you using?

menteith
Level 1
Level 1
Posts: 5
Joined: Sun May 13, 2018 4:16 pm

Re: Edit context menu icon in Cinnamon

Post by menteith » Tue May 15, 2018 12:36 pm

Please see a screenshot:

Image

User avatar
smurphos
Level 8
Level 8
Posts: 2215
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Edit context menu icon in Cinnamon

Post by smurphos » Tue May 15, 2018 12:51 pm

What happens if you switch to Mint X or Mint Y as an icon theme?

menteith
Level 1
Level 1
Posts: 5
Joined: Sun May 13, 2018 4:16 pm

Re: Edit context menu icon in Cinnamon

Post by menteith » Tue May 15, 2018 12:57 pm

With Mint X everything is OK.

EDIT: It seems some of Sard-* icons are somehow invalid. I tested few of these and some of them give that big picture issue.

User avatar
smurphos
Level 8
Level 8
Posts: 2215
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: Edit context menu icon in Cinnamon

Post by smurphos » Wed May 16, 2018 1:10 am

Icon themes can be quite complex and the Sardi family take that complexity to a somewhat ridiculous level :).

I did a bit of messing around with them this morning and couldn't reproduce the issue on the desktop right click, but could on the nemo right-click menu.

That particular sardi variant doesn't have it's own version of gtk-dialog-authentication.* which is the name of the icon used for Open as Root in the menu. Some of the other sardi variants do have it. On my system it ends up inheriting from the Faba theme via Moka (i've got Pocillo / Moka / Faba installed nicked from the Ubuntu 18.04 repos). Unfortunately, it appears the Faba version of this icon isn't scalable or has problems scaling...I'm not sure where the icon you are seeing is coming from but it clearly has a similar issue.

Easiest fix it to add Mint-Y and Mint-X into the themes inherits list in it's Index.theme file.

Use the command xed ~/.icons/Sardi-Ghost-Flexible-Vertexed/index.theme to open it in your text editor and then add as below. You may need to modify exactly where in the list you place them depending on which icon themes you have available and where the icon you can see is being drawn from.

Code: Select all

[Icon Theme]
Name=Sardi Ghost Flexible Vertexed
Comment=Simple and flat icon theme with long shadow
Inherits=Sardi-Ghost-Flexible,Sardi,Numix-Circle,Numix,Papirus,Mint-Y,Mint-X,Moka,Surfn,breeze,gnome,hicolor
<snipped the rest>

menteith
Level 1
Level 1
Posts: 5
Joined: Sun May 13, 2018 4:16 pm

Re: Edit context menu icon in Cinnamon

Post by menteith » Thu May 17, 2018 12:38 pm

This did the trick! Many thanks!

Post Reply

Return to “Cinnamon”