Xfce Forum

Sub domains
 

You are not logged in.

#1 2017-11-19 06:46:17

rharish
Member
Registered: 2017-11-19
Posts: 5

Theming of Xfce Panel Separator

I am running Xfce on Arch Linux, with Arc-Dark GTK theme. I would like to replace Arc-Dark's icon for the "handle" form of the separator plugin for Xfce panel with Adapta-Nokto's.

Arc-Dark:
Arc-Dark handle separator

Adapta-Nokto:
Adapta-Nokto handle separator

I could not find any images related to the separator in the theme folder. Could anyone point out what I need to change in the Arc-Dark folder to achieve this?

Offline

#2 2017-11-19 11:18:12

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 3,893

Re: Theming of Xfce Panel Separator

Hello and welcome.

That item is called a handle. Adapta-Notko has these assets in it's gtk-2.0/Handles directory and Arc-Dark has them in gtk-2.0/assets. Take the handle that you want from Adapta-Notko and copy it to Arc-Dark's directory renaming it to either "handle-h.png" (horizontal) or "handle-v.png" (vertical).

To use an override in ~/.gtkrc-2.0, try something like this:

engine "pixmap" {
    image {
      function = HANDLE
      overlay_file = "handle-h.png"
      overlay_stretch = FALSE
      orientation = HORIZONTAL
    }

    image {
      function = HANDLE
      overlay_file = "handle-v.png"
      overlay_stretch = FALSE
      orientation = VERTICAL
    }
}

...and copy Adapta-notko's two handle files (renamed to handle-h.png and handle-v.png) to your home directory.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#3 2017-11-19 14:46:57

rharish
Member
Registered: 2017-11-19
Posts: 5

Re: Theming of Xfce Panel Separator

Thanks for your quick reply ToZ!

I tried that and it didn't work for the separator at all. One effect of it was seen in Thunar:

Before:
Adapta-Nokto handle

After:
Arc-Dark handle

Is there some other file that I must look at for the separator? I did exactly as you told me to.

Offline

#4 2017-11-19 17:31:11

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 3,893

Re: Theming of Xfce Panel Separator

Which option did you try?

Are you running the gtk2 version of xfce4-panel - the one from the official repositories?

What did you set the separator style to? Right-click the separator and select properties. Actually try the different style options, they may get you what you are looking for,


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#5 2017-11-20 02:56:56

rharish
Member
Registered: 2017-11-19
Posts: 5

Re: Theming of Xfce Panel Separator

ToZ wrote:

Which option did you try?

I tried replacing Arc-Dark handle pngs from /usr/share/themes/Arc-Dark/gtk-2.0/assets with Adapta-Nokto's, as well as the override from ~/.gtkrc-2.0.


ToZ wrote:

Are you running the gtk2 version of xfce4-panel - the one from the official repositories?

I am running the xfce4-panel from the Arch Linux repositories: https://www.archlinux.org/packages/extr … ce4-panel/ . As the Arch Wiki states:

Xfce is a lightweight and modular desktop environment currently based on GTK+ 2.

Thus, I think it uses GTK+ 2.


ToZ wrote:

What did you set the separator style to? Right-click the separator and select properties. Actually try the different style options, they may get you what you are looking for

I tried all the various separator styles; none of the separator styles for Arc-Dark are modified after replacing the handle pngs, while I would like a vertical white bar like Adapta-Nokto's "handle" separator.

Last edited by rharish (2017-11-20 06:41:54)

Offline

#6 2017-11-21 01:27:02

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 3,893

Re: Theming of Xfce Panel Separator

Try undoing the overwrites, or simply re-install the Arc-Dark theme. Then change the separator style to Separator. That should give you a line.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

#7 2017-11-21 10:19:14

rharish
Member
Registered: 2017-11-19
Posts: 5

Re: Theming of Xfce Panel Separator

Well, that does give me a line:
Arc-Dark separator transparent panel

Generally I use the panel with alpha set to 95, which would give me this:
Arc-Dark separator opaque panel

With Adapta-Nokto, the line is white, which makes it clearly visible on the panel, while with Arc-Dark, it's almost invisible, which is why I reduced the opacity for my previous screenshots.

Also, I noticed that the "handle" separator icon for Arc-Dark is a bit different from the handle-v.png that I've been trying to modify, which would mean that we've been trying to change the wrong files. What do you think?

Last edited by rharish (2017-11-21 10:19:58)

Offline

#8 2017-11-21 17:25:01

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 554
Website

Re: Theming of Xfce Panel Separator

try it by customizing only the panel handles eg:

style"xfcepanelhandles"{
engine"pixmap"{
image{
function=HANDLE
detail="handlebox"
overlay_file="images/$(#horiz_panel_image)"
overlay_stretch=FALSE
orientation=VERTICAL}
image{
function=HANDLE
detail="handlebox"
overlay_file="images/$(#vert_panel_image)"
orientation=HORIZONTAL
overlay_stretch=FALSE}}}
widget"*PanelItembar*"style"xfcepanelhandles"

$ aptitude why gnome   
Unable to find a reason to install gnome.

regards, ssf

Offline

#9 2017-11-21 17:30:19

rharish
Member
Registered: 2017-11-19
Posts: 5

Re: Theming of Xfce Panel Separator

Yay! sixsixfive's solution worked perfectly. Thanks! big_smile

Offline

#10 2017-11-22 01:38:54

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 3,893

Re: Theming of Xfce Panel Separator

Thanks sixsixfive, i wasn't able to figure that one out.


How To Ask For Help           Xfce FAQ                            Xfce Release Information
The Xfce Community          Xfce Tips and Tricks

Offline

Board footer

Powered by FluxBB