Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-07-06 20:42:57

Jerry3904
Member
Registered: 2013-11-09
Posts: 853

Increase padding inside framed Notification Area

Testing a second alpha of MX-19 with a bunch of changes including 14.4pre2, and wondering how to/whether we can increase spacing between last icon (for us by default: at the bottom) and the frame. I have snooped around the web without much success.

I tried things like this but that got me nowhere:

clipit image { padding-bottom: 17px; }

You can see what I mean here by contrasting the space above the speaker icon at the top with the lack of space below clipit at the bottom:[url=https://imgur.com/K357Ktv.png]
  K357Ktv.png
[/url]


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#2 2019-07-06 23:31:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,029

Re: Increase padding inside framed Notification Area

Jerry, something like this will work:

.xfce4-panel frame .horizontal { 
	padding-bottom: 0px;
	padding-top: 0px; 
	padding-left: 4px;
	padding-right: 0px;
}
.xfce4-panel frame .vertical { 
	padding-bottom: 4px;
	padding-top: 0px; 
	padding-left: 0px;
	padding-right: 4px;
}

...and adjust the values to suit. The ".horizontal" is for horizontal panels and the ".vertical" is for vertical panels - so you can set separate padding values to center the plugins depending on the orientation of the panel.

There is one potential side effect - this will affect all panel plugins that have a frame (are there any other plugins that have a frame?) because there are no specific style classes defined for this plugin.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-07-07 00:04:10

Jerry3904
Member
Registered: 2013-11-09
Posts: 853

Re: Increase padding inside framed Notification Area

That does it nicely, ToZ! By default, only one panel with a NA, and that we are thinking of framing. Hard to imagine anyone wanting two NAs anyway.

Thanks!


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#4 2019-07-07 09:46:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,029

Re: Increase padding inside framed Notification Area

Jerry3904 wrote:

By default, only one panel with a NA, and that we are thinking of framing. Hard to imagine anyone wanting two NAs anyway.

I was thinking more along the lines if someone changes the orientation of the panel from horizontal to vertical or vice versa. You'll need both sets of code to accommodate that scenario.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-07-07 09:58:54

Jerry3904
Member
Registered: 2013-11-09
Posts: 853

Re: Increase padding inside framed Notification Area

Oh, right. One of the MX Tools, "Tweak," carries out that reorientation (also L-R) without messing up the order of panel components, and both your code snippets will now be included in that.

In the not-that-anybody-else-cares department: these early alpha moments are so exciting. We just reestablished init-agnostic booting via a BountySource developer, so users can select whether to use sysV or systemd--though full testing is going on now and there could still be a problem, of course. That was a big hurdle!


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

#6 2019-07-07 10:28:12

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,029

Re: Increase padding inside framed Notification Area

Jerry3904 wrote:

In the not-that-anybody-else-cares department: these early alpha moments are so exciting. We just reestablished init-agnostic booting via a BountySource developer, so users can select whether to use sysV or systemd--though full testing is going on now and there could still be a problem, of course. That was a big hurdle!

Will the next release of MXLinux include Xfce 4.14?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2019-07-07 12:49:35

Jerry3904
Member
Registered: 2013-11-09
Posts: 853

Re: Increase padding inside framed Notification Area

Yes, on a Buster base


MX-23 (based on Debian Stable) with our flagship Xfce 4.18.

Offline

Board footer

Powered by FluxBB