Transparent Menu & Panel

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
cottfcfan
Level 4
Level 4
Posts: 286
Joined: Tue Jun 16, 2009 7:32 am
Location: Hull, England.

Transparent Menu & Panel

Post by cottfcfan »

Using up to date 19.1 Cinnamon with Mint Y dark theme.
Does anyone know how to add Transparency to the Menu & Panel without having to change themes?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Transparent Menu & Panel

Post by smurphos »

You can install the transparent panel extension https://cinnamon-spices.linuxmint.com/e ... ns/view/42 via the Extensions settings module for the panel.

For the menu you are looking at a bit of theme editting if you are up for it. It's fairly sttaighforward. Not at my machine right now to confirm instructions but will check tomorrow and post back.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
User avatar
smurphos
Level 18
Level 18
Posts: 8498
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Transparent Menu & Panel

Post by smurphos »

smurphos wrote: Thu Jan 17, 2019 2:43 pm Not at my machine right now to confirm instructions but will check tomorrow and post back.
So if you are editing the theme you may as-well do panel and menu via the edit rather than use the extension for the panel only.

1) Copy /usr/share/themes/Mint-Y-Dark to ~/.themes. If the latter isn't present create the folder.

2) Open ~/.themes/Mint-Y-Dark/cinnamon/cinnamon.css in a text editor

3) To edit the menu transparency navigate to lines 208-213. You will see

Code: Select all

.menu {
  color: #f0f0f0;
  border: 1px solid #202020;
  border-radius: 3px;
  background-color: rgba(47, 47, 47, 0.99); }
Edit the background-color line - 0.99 is the level of opacity.

e.g for 80% opacity

Code: Select all

.menu {
  color: #f0f0f0;
  border: 1px solid #202020;
  border-radius: 3px;
  background-color: rgba(47, 47, 47, 0.8); }
Note this will affect the transparency of all applet popup menus as-well.

4) For the panel navigate to lines 423 to 428

Code: Select all

.panel-top, .panel-bottom, .panel-left, .panel-right {
  color: #ffffff;
  border: none;
  background-color: rgba(47, 47, 47, 0.99);
  font-size: 1em;
  padding: 0px; }
Again edit the background-color line.

e.g for 33% panel opacity.

Code: Select all

.panel-top, .panel-bottom, .panel-left, .panel-right {
  color: #ffffff;
  border: none;
  background-color: rgba(47, 47, 47, 0.33);
  font-size: 1em;
  padding: 0px; }
5) Save your edits and hit Ctrl-Alt-Del to restart Cinnamon / reload the theme.

Hint - anything less than about 80% opacity on the menu will make usability an issue. The panel you can go much lower.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
cottfcfan
Level 4
Level 4
Posts: 286
Joined: Tue Jun 16, 2009 7:32 am
Location: Hull, England.

Re: Transparent Menu & Panel

Post by cottfcfan »

Thank You Smurphos. Your a star.
I actually edited the theme directly in /usr/share/themes, & set the menu to 0.80 & the panel to 0.50, following your instructions. IMO it now looks way better than the solid colour.
Thanks again. :D
AjaxXx
Level 1
Level 1
Posts: 18
Joined: Fri Jul 10, 2020 10:50 am

Re: Transparent Menu & Panel

Post by AjaxXx »

This has been very helpful.

Anybody know how to do a blur transparency?
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Transparent Menu & Panel

Post by absque fenestris »

Playing around a bit --- as soon as windows are open, it looks strange ...

Image

Image
rarsa
Level 1
Level 1
Posts: 39
Joined: Sun Jun 13, 2010 5:51 pm

Re: Transparent Menu & Panel

Post by rarsa »

Thanks!,

Sometimes just searching the answer to a simple question (Transparent menu) ends up teaching you much more.

Today I just learned how to modify the themes :D
mfreeman
Level 4
Level 4
Posts: 269
Joined: Thu Jan 21, 2010 3:11 am

Re: Transparent Menu & Panel

Post by mfreeman »

This won't affect the menu, but for the panel there's a Cinnamon extension called "Transparent Panels". If you install that, it will give any theme an easily customizable transparent panel. You can make it semi-transparent, fully transparent, or with a drop shadow background. You can also assign which panels have the transparency and which ones don't. It'd be easier than trying to hand-code the css, unless learning to do that is your goal.
User avatar
plshelp847383
Level 1
Level 1
Posts: 19
Joined: Sun Mar 14, 2021 4:31 am
Location: Jakarta, Indonesia

Re: Transparent Menu & Panel

Post by plshelp847383 »

mfreeman wrote: Wed Feb 24, 2021 10:42 pm This won't affect the menu, but for the panel there's a Cinnamon extension called "Transparent Panels". If you install that, it will give any theme an easily customizable transparent panel. You can make it semi-transparent, fully transparent, or with a drop shadow background. You can also assign which panels have the transparency and which ones don't. It'd be easier than trying to hand-code the css, unless learning to do that is your goal.
i've tried googled it but in the cinnamon spies it says the extension don't exist. i don't know if this allowed or not, but does anybody has the file?
DX2310MT | Core 2 Duo E8500 @ 3.16GHz | 2GB DDR2 667 MHz
Linux Mint 20.2 XFCE
User avatar
AndyMH
Level 21
Level 21
Posts: 13738
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: Transparent Menu & Panel

Post by AndyMH »

Mint menu > preferences > extensions.
Screenshot from 2021-07-09 10-32-09.png
you may have to download it first.

I have found in the past that it doesn't work with some themes.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
lmnk
Level 1
Level 1
Posts: 14
Joined: Mon Sep 03, 2018 6:42 am

Re: Transparent Menu & Panel

Post by lmnk »

AndyMH wrote: Fri Jul 09, 2021 5:34 am Mint menu > preferences > extensions.
Screenshot from 2021-07-09 10-32-09.png
This works on only the primary display, notebook screen.
How can it be done on the external monitor ?
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Edited:
After I restarted Linux Mint, the panel on the external monitor became transparent :D .
User avatar
surfer57
Level 3
Level 3
Posts: 111
Joined: Sun Jul 08, 2007 4:51 pm

Re: Transparent Menu & Panel

Post by surfer57 »

Thanks for the information as I have now added the extension and it is working great!
Restrictive EULAs launched the search for the perfect alternative. So, yeah, thanks for that..........
Locked

Return to “Cinnamon”