Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Making Theme
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Making Theme
Page : 1 2
jesuisbenjamin English 27 fabounet [Read]
19 April 2011 à 16:19

jesuisbenjamin, Sunday 10 April 2011 à 22:14


Subscription date : 28 October 2009
Messages : 415
Hi there,

I'm trying to make a theme (or rather adapt the Faenza icon theme to Cairo Dock), and in the process i am getting a bit confused.

In the ~/.config/cairo-dock/current_theme/ i have several folders. One of these launchers is "extras". Yet if i place some applet themes in that folder (for instance trashcan or battery etc.) they do not appear in the configuration panel. In order for them to appear i must move these to the "extras" folder in the parent folder.
This doesn't make it easy to make a comprehensive theme for launchers and applets all at once. How can i pack up such a theme so any user can unpack it easily?

Thanks.
Benjamin

matttbe, Monday 11 April 2011 à 11:11


Subscription date : 24 January 2009
Messages : 12573
Hello
In order for them to appear i must move these to the "extras" folder in the parent folder.
Yes but if you use the theme manager to package your theme, it will add this "extras" folder into your package

jesuisbenjamin, Monday 11 April 2011 à 12:14


Subscription date : 28 October 2009
Messages : 415
matttbe :
Hello
In order for them to appear i must move these to the "extras" folder in the parent folder.
Yes but if you use the theme manager to package your theme, it will add this "extras" folder into your package ;)


There are two "extras" folders: i am getting confused.
In which of the two should i place my own themes? The current theme's "extras" or the global "extras"?

jesuisbenjamin, Monday 11 April 2011 à 14:31


Subscription date : 28 October 2009
Messages : 415
Of all the themes i have in the current theme's extras (clock, dustbin, gauges, mail, sound_control, weather) only weather and gauges are reproduced in the built theme-package. Any clue?

matttbe, Monday 11 April 2011 à 15:48


Subscription date : 24 January 2009
Messages : 12573
How did you import your themes? From the config panel?

jesuisbenjamin, Monday 11 April 2011 à 17:15


Subscription date : 28 October 2009
Messages : 415
These are themes i am making from scratch.

matttbe, Monday 11 April 2011 à 18:17


Subscription date : 24 January 2009
Messages : 12573
Did you do it from scratch with an empty current_theme directory (or from the default theme)?

jesuisbenjamin, Monday 11 April 2011 à 18:27


Subscription date : 28 October 2009
Messages : 415
matttbe :
Did you do it from scratch with an empty current_theme directory (or from the default theme)?


I did that in the current_theme directory, copy-pasted an existing theme, changed the icons etc.

matttbe, Monday 11 April 2011 à 18:39


Subscription date : 24 January 2009
Messages : 12573
copy-pasted an existing theme
So you didn't use the themes manager to import another theme, right? And this is why you have an "extras" directory in the "current_theme" folder.

jesuisbenjamin, Monday 11 April 2011 à 18:41


Subscription date : 28 October 2009
Messages : 415
Well yes that's what i did, but i'm innocent
But what to do to fix this?

jesuisbenjamin, Monday 11 April 2011 à 20:06


Subscription date : 28 October 2009
Messages : 415
PS: i also have a problem making a theme for the compiz-icon applet, it seems the only way is to replace the icons in the /usr/share/cairo-dock/plug-ins/compiz-icon/ folder.

It seems to me there is no consistency on how to make a theme for applets. Or am i just confused?

Benjamin

matttbe, Monday 11 April 2011 à 21:36


Subscription date : 24 January 2009
Messages : 12573
But what to do to fix this?
Simply use the themes manager to use another theme. In this directory (current_theme), you should only have 3 folders: launchers, icons, plug-ins. You can remove all others.

i also have a problem making a theme for the compiz-icon applet, it seems the only way is to replace the icons in the /usr/share/cairo-dock/plug-ins/compiz-icon/ folder.
No you should be able to change it:
http://uppix.net/9/f/3/44806d9685a893dc47cc9b74bdd10.png


It seems to me there is no consistency on how to make a theme for applets. Or am i just confused?
Generally, you only have to modify the icon in all Icon tabs (except if it's not a simple icon which is displayed (e.g. a gauge, a graphic, etc.) or if there are more than one icon). You can simply add your icon into the icon directory of Cairo-Dock and choose the same name as this icon. Or do you think to something else?

jesuisbenjamin, Monday 11 April 2011 à 21:49


Subscription date : 28 October 2009
Messages : 415
OK for compiz-icon applet, i completely missed this option.

As to creating the theme: i also want to include the gauges and icons i created specifically for this theme. Now if the theme's folder is separate from the extras' folder (gauges etc.) i cannot include these in my theme can i?
For instance i made a Faenza gauge for battery and i want this to be included in my Faenza theme.

jesuisbenjamin, Monday 11 April 2011 à 21:49


Subscription date : 28 October 2009
Messages : 415
OK for compiz-icon applet, i completely missed this option.

As to creating the theme: i also want to include the gauges and icons i created specifically for this theme. Now if the theme's folder is separate from the extras' folder (gauges etc.) i cannot include these in my theme can i?
For instance i made a Faenza gauge for battery and i want this to be included in my Faenza theme.

jesuisbenjamin, Monday 11 April 2011 à 22:05


Subscription date : 28 October 2009
Messages : 415
I find a lack of consistency, for instance, in the battery applet gauge theme: while the /usr/share/cairo-dock/plug-ins/powermanager folder contains a charge.svg file, it is not overridden by the file of the same name in the custom gauge theme, or in the current_theme/icons/ folder. There seems to be no obvious way to customise that.

matttbe, Monday 11 April 2011 à 23:55


Subscription date : 24 January 2009
Messages : 12573
You can create a new gauge theme in the extras directory (~/.config/cairo-dock/extras/gauges/). It will be automatically added in the tarball package created from the themes manager window.

while the /usr/share/cairo-dock/plug-ins/powermanager folder contains a charge.svg file, it is not overridden by the file of the same name in the custom gauge theme, or in the current_theme/icons/ folder. There seems to be no obvious way to customise that.
Ok so if you place a charge.svg file in this current_theme/icons directory and then you set charge in the config panel, it will display this file: /usr/share/cairo-dock/plug-ins/powermanager/charge.svg. Right?

jesuisbenjamin, Tuesday 12 April 2011 à 00:05


Subscription date : 28 October 2009
Messages : 415
matttbe :
Ok so if you place a charge.svg file in this current_theme/icons directory and then you set charge in the config panel, it will display this file: /usr/share/cairo-dock/plug-ins/powermanager/charge.svg. Right?


Yes, except i do not see any option in the configuration panel to "set charge". But in short: i cannot override the svg from the /usr/... path

matttbe :
You can create a new gauge theme in the extras directory (~/.config/cairo-dock/extras/gauges/). It will be automatically added in the tarball package created from the themes manager window.


Well it does so for some and not for others. As i said earlier: of all the gauge and applet themes i have in the current theme's extras (clock, dustbin, gauges, mail, sound_control, weather) only "weather" and "gauges" are reproduced in the built theme-package.
For instance the mail applet theme is not included in the tarbal, nor is the clock theme i created etc. And where should i place icons i have created specifically for applets (those for the compiz-icon applet for instance) so it does not conflict with actual application icons? Should this be placed in "extras" too?

matttbe, Tuesday 12 April 2011 à 00:41


Subscription date : 24 January 2009
Messages : 12573
For instance the mail applet theme is not included in the tarbal, nor is the clock theme i created etc.
Is mail applet enable? Of course you can also modify the tarball produced by yourself. You can remove all unused themes and add others.

EDIT:
Yes, except i do not see any option in the configuration panel to "set charge".
Ok I see, I can add an option.

jesuisbenjamin, Tuesday 12 April 2011 à 00:46


Subscription date : 28 October 2009
Messages : 415
Mail applet is enabled.
I guess i'll slip in manually the missing themes in the tarball. But i imagine the goal is that it works effortlessly right?
Thanks for the update on the charge issue.


matttbe, Tuesday 12 April 2011 à 01:57


Subscription date : 24 January 2009
Messages : 12573
(logout option added )

Problems at use | Problèmes à l'utilisation

Subjects Author Language Messages Last message
[Locked] Making Theme
Page : 1 2
jesuisbenjamin English 27 fabounet [Read]
19 April 2011 à 16:19


Glx-Dock / Cairo-Dock List of forums Problems at use | Problèmes à l'utilisation Making Theme Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.