Xfce Forum

Sub domains
 

You are not logged in.

#1 2013-08-06 13:56:15

costapha
Member
Registered: 2013-05-12
Posts: 5

[Solved] How change linelight-plugin icon?

I'm using a dark theme and linelight-plugin icon is invisible on the dark panel.
I wonder how to change the icon to have a better contrast.
Any Idea?

Offline

#2 2013-08-06 14:53:04

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

Re: [Solved] How change linelight-plugin icon?

According to the source (http://ftp.de.debian.org/debian/pool/ma … ig.tar.bz2), it appears to be hard-coded into the plugin. You'll have the change the info in linelight-ico.h and recompile. gdk-pixbuf-csource should help.


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 2013-08-06 19:14:19

costapha
Member
Registered: 2013-05-12
Posts: 5

Re: [Solved] How change linelight-plugin icon?

Thanks for reply!
But how to do that?

Offline

#4 2013-08-06 19:34:23

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

Re: [Solved] How change linelight-plugin icon?

Which distro are you using?


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 2013-08-06 21:18:16

costapha
Member
Registered: 2013-05-12
Posts: 5

Re: [Solved] How change linelight-plugin icon?

Debian Wheezy
Linux debian 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1 i686 GNU/Linux
Xfce 4.8

Offline

#6 2013-08-06 22:31:08

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

Re: [Solved] How change linelight-plugin icon?

Hopefully you have experience compiling/debugging code. Also, I don't use Debian, so some of the instructions may need to be modified for that distro. In fact, this may not work at all for Debian. Here, however, are the instructions that worked for Arch Linux:

1. Using ~/Downloads as the source directory, get the source:

cd ~/Downloads
wget https://aur.archlinux.org/packages/xf/xfce4-linelight-plugin/xfce4-linelight-plugin.tar.gz
tar xzvf xfce4-linelight-plugin.tar.gz

2. Find/create a replacement icon. It must be 32x32. I used a png icon (grey-colored version of /usr/share/icons/hicolor/scalable/apps/xfce4-linelight-plugin.svg saved as myicon.png).

3. Create the new icon header file:

gdk-pixbuf-csource myicon.png > linelight-ico.h

4. copy the original file's (~/Downloads/xfce4-linelight-plugin-0.1.7/panel-plugin/linelight-ico.h) #ifdefs (lines 3-10) into your new linelight-ico.h, overwritting the existing lines

5. replace the source's ~/Downloads/xfce4-linelight-plugin-0.1.7/panel-plugin/linelight-ico.h file with your new file

6. From the source directory (~/Downloads):

wget http://lionel.lefolgoc.net/misc/01_port-to-xfcerc.patch
patch -p0 -i 01_port-to-xfcerc.patch

7. From the base directory of the plugin source (~/Downloads/xfce4-linelight-plugin-0.1.7):

./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib/ --localstatedir=/var --disable-static
make
sudo make install

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 2013-08-07 12:42:55

costapha
Member
Registered: 2013-05-12
Posts: 5

Re: [Solved] How change linelight-plugin icon?

Thank you!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 541.09 KiB (Peak: 542.37 KiB) ]