LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 02-17-2017, 10:28 AM   #1
Brant
Member
 
Registered: Oct 2007
Posts: 281

Rep: Reputation: 35
how can I increase the padding on the Cinnamon panel?


I have recently upgraded to Mint Cinnamon 18.1 (and so far, so good) except that I always feel that the icons on the Cinnamon panel are squashed together in the lefthand corner.

When I upgraded to Mint 17, I was very pleased to find this post addressing the question:

http://www.scottcking.com/?p=90

I followed the advice therein and was able to give my icons some elbow room. Unfortunately it doesn't seem to work on Linux Mint 18.1. I can find my way into the cinnamon.css file, but do not see where to make the edits. (My previous computer was 32bit, and this is my first 64bit installation)

Any advice will be welcome.
 
Old 02-17-2017, 01:58 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Brant View Post
I followed the advice therein and was able to give my icons some elbow room. Unfortunately it doesn't seem to work on Linux Mint 18.1. I can find my way into the cinnamon.css file, but do not see where to make the edits.
use the search funxction of your editor to find 'panel' (without quotes) and make an eductaed guess as to which entry is the suitable one.

there's no reason why this shouldn't work on your new install. mayb the syntax has slightly changed, so try a capital Panel, too, but the pricnciple's the same.
i hope you have very basic knowledge of CSS

btw, changes will be overwritten during updates, so it might be better to clone the theme to ~/.themes/my-new-theme and edit there (without sudo this time).
 
1 members found this post helpful.
Old 02-17-2017, 11:23 PM   #3
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
I have not taken a close look at it yet, but I believe that function might have been removed from the new cinnamon.css with Mint 18.1
The reason being that Mint 18.1 introduces the ability to create a vertical panel in addition to the usual horizontal panel. Padding on icons might not work well on a vertical panel.

EDIT: I checked and it is there - at about line 2066

/* ===================================================================
* Panel Launchers Applet (panelLaunchers.js)
* ===================================================================*/

#panel-launchers-box {
padding-left: 0px;
}

.panel-launcher {
margin: 1px;
padding: 2px;
}

Last edited by TxLonghorn; 02-17-2017 at 11:27 PM.
 
1 members found this post helpful.
Old 02-19-2017, 06:17 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by TxLonghorn View Post
EDIT: I checked and it is there - at about line 2066
if your problem is solved, please mark your thread so, at the top under Thread Tools.
 
Old 02-19-2017, 02:19 PM   #5
Brant
Member
 
Registered: Oct 2007
Posts: 281

Original Poster
Rep: Reputation: 35
Reading the posts above I was particularly struck by the phrase, "at about line 2066". Seeing that the file I was looking at had 1980 lines, I finally realized that I was in the wrong file (/usr/share/cinnamon/theme/cinnamon.css rather than the /usr/share/themes/Linux Mint/cinnamon.css I had intended to visit). My bad.

Going to /usr/share/themes/Linux Mint/cinnamon.css I saw that it had 2280 lines and backtracked, but was surprised that what I saw did not parallel what I saw in TxLonghorn's post. Is there yet another cinnamon.css file, or am I simply misunderstanding what I see?

Below are what I see from line 1940 to line 2076.

* Panel Launchers Applet (panelLaunchers.js)
* ===================================================================*/

#panel-launchers-box {
}

.panel-launchers {
spacing: 2px;
}

.panel-launchers .launcher {
padding-left: 1px;
padding-right: 1px;
border: 0 solid transparent;
border-bottom-width: 1px;
}

.panel-launchers .launcher:hover {
background-gradient-direction: vertical;
background-gradient-start: rgba(255,255,255,0.0);
background-gradient-end: rgba(255,255,255,0.2);
border-color: rgba(255,255,255,0.5);

}

.panel-launcher-add-dialog-content-box {
padding: 6px;
spacing: 20px;
}

.panel-launcher-add-dialog-content-box-left {

padding: 6px;
spacing: 20px;
}

.panel-launcher-add-dialog-content-box-right {
padding: 6px;
spacing: 10px;
}

.panel-launcher-add-dialog-entry {
padding: 5px;
border-radius: 4px;
color: rgb(50, 50, 50);
border: 1px solid rgba(245,245,245,0.2);
background-gradient-start: rgba(200,200,200,0.5);
background-gradient-end: rgba(254,254,254,0.5);
background-gradient-direction: vertical;
box-shadow: inset 0px 1px 2px 0px rgba(0,0,0,0.5);
selected-color: black;
caret-color: rgb(128, 128, 128);
caret-size: 1px;
width: 250px;
transition-duration: 300;
}

.panel-launcher-add-dialog-entry:focus,
.panel-launcher-add-dialog-entry:hover {
border: 1px solid rgba(120,120,120,1);
background-gradient-start: rgb(200,200,200);
background-gradient-end: white;
background-gradient-direction: vertical;
}

.panel-launcher-add-dialog-entry:hover {
transition-duration: 300;
}

.panel-launcher-add-dialog-entry:focus {
color: rgb(64, 64, 64);
font-weight: bold;
transition-duration: 0;
Overview corner
* ===================================================================*/
#overview-corner {
background-image: url("overview.png");
}

#overview-corner:hover {
background-image: url("overview-hover.png");
}

/* ===================================================================
* Applets (applet.js)
* ===================================================================*/
.applet-separator {
padding: 5px 4px;
}
.applet-separator-line {
width: 2px;
background: rgba(255,255,255,.5);
}

.applet-box {
padding-left: 3px;
padding-right: 3px;
color: #ccc;
text-shadow: black 0px 0px 2px;
}

.applet-box.vertical {
padding: 3px;
}

.applet-box:checked,
.applet-box:hover {
color: #fff;
}

.applet-box:highlight {
background-color: #aa5555;
.applet-label {
font-weight: bold;
color: #ccc;
}
.applet-label:hover,
.applet-label:checked,
.applet-box:checked .applet-label,
.applet-box:hover .applet-label {
color: #fff;
text-shadow: white 0px 0px 5px;
}
.applet-icon {
color: #ccc;
icon-size: 22px;
}
.applet-icon:hover,
.applet-icon:checked,
.applet-box:hover .applet-icon,
.applet-box:checked .applet-icon {
color: #fff;
icon-shadow: white 0px 0px 3px;
 
Old 02-19-2017, 11:25 PM   #6
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by Brant View Post
Going to /usr/share/themes/Linux Mint/cinnamon.css I saw that it had 2280 lines and backtracked, but was surprised that what I saw did not parallel what I saw in TxLonghorn's post. Is there yet another cinnamon.css file, or am I simply misunderstanding what I see?
Yes, there is another cinnamon.css - as a matter of fact I have about 30 of them. I happened to be looking at one that I had previously edited for various reasons, so the Line number was "about" that line. But it is OK, since I see you found it.
Quote:
Originally Posted by Brant View Post
* Panel Launchers Applet (panelLaunchers.js)
* ===================================================================*/

#panel-launchers-box {
}

.panel-launchers {
spacing: 2px;
}

.panel-launchers .launcher {
padding-left: 1px;
padding-right: 1px;
border: 0 solid transparent;
border-bottom-width: 1px;
}
 
Old 02-21-2017, 02:48 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
@Brant: great, you found it.
now bravely edit!
as i said before, basic knowledge with CSS is recommended, but imho the options are largely self-explanatory.
and 2000+ lines? yep, welcome to the wonderful world of gnome & web framework UIs.

@TXLonghorn: sorry, i mistook you for the OP there.
 
Old 02-22-2017, 07:46 PM   #8
Brant
Member
 
Registered: Oct 2007
Posts: 281

Original Poster
Rep: Reputation: 35
To be honest,my last post was intended more as a confession that I was feeling out of my depth, than as a statement that I was ready to go!
However I took heart from your encouragement, reread the section that I had posted, and decided that


.panel-launchers .launcher {
padding-left: 1px;
padding-right: 1px;
border: 0 solid transparent;
border-bottom-width: 1px;

was the likely candidate. I crossed my fingers and moved both padding-left and padding-right to 4px.
All a matter of taste, of course, but I think it looks good.
Many thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Cinnamon Panel Terms llewellen Linux - Desktop 7 01-27-2017 04:09 PM
[SOLVED] How to change cinnamon panel color mfoley Ubuntu 6 02-03-2016 01:25 PM
Problems Moving Applets on Mint 17.1 Cinnamon Panel allenM2015 Linux - Software 5 01-01-2015 11:55 AM
[SOLVED] Mint 13 (cinnamon) panel time stuck at 9 pm ratman1 Linux - Newbie 2 09-11-2012 04:04 AM
[SOLVED] Mint 13 Cinnamon not responding to Alt Right Click on panel taylorkh Linux Mint 1 06-07-2012 06:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration