Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Use OS theme as Dock 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)
Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] Use OS theme as Dock theme
jesuisbenjamin English 17 matttbe [Read]
17 April 2011 à 23:19

jesuisbenjamin, Saturday 09 April 2011 à 19:13


Subscription date : 28 October 2009
Messages : 415
Hi

Unless there is a way to do so (of which i may be ignorant), could it be possible to tell Cairo to use the current OS icon theme as its own icon theme? That would save much trouble no ?

Thanks.
Benjamin

matttbe, Saturday 09 April 2011 à 19:38


Subscription date : 24 January 2009
Messages : 12573
Hi jesuisbenjamin,

The OS icon theme is set as default. In fact, if you use the "_Custom Icons_" option and if there is no icon for an application in the icons directory (~/.config/cairo-dock/current_theme/icons/), the icon of the current OS icon theme is used by Cairo-Dock.
But maybe we can add an option named Current Icons or something like that (or by changing the font of the current OS icon theme => italics or bold)

jesuisbenjamin, Saturday 09 April 2011 à 19:48


Subscription date : 28 October 2009
Messages : 415
OK fair enough,

so if the current GTK theme is able to find an icon for a given program (in my example sysinfo), which i can confirm it works with Synapse which is able to find the Faenza Sysinfo icon to display, how is it that running Sysinfo will show another non-theme, low res icon in the dock?
I know i can right-click set custom icon, but shouldn't Cairo simply find the same icon as Synapse?

Cheers,
Benjamin

matttbe, Saturday 09 April 2011 à 21:57


Subscription date : 24 January 2009
Messages : 12573
Which icons theme did you choose in the config panel? Do you have some icons in this directory: ~/.config/cairo-dock/current_theme/icons/?

jesuisbenjamin, Saturday 09 April 2011 à 22:08


Subscription date : 28 October 2009
Messages : 415
I use my own icon theme (some icons of the Faenza set which i copy-pasted in the /icons/ folder of the theme). Yes there are icons in the ~/.config/cairo-dock/current_theme/icons/
The /usr/share/applications/sysinfo.desktop file points to the "computer" icon, this icon is available both in the OS (Faenza) set and in the current theme's /icon/ folder.

matttbe, Saturday 09 April 2011 à 22:10


Subscription date : 24 January 2009
Messages : 12573
And can you try to only use the Faenza icons theme by selecting it on the config panel of the dock?

Can you also post the content of this desktop file?

jesuisbenjamin, Saturday 09 April 2011 à 22:16


Subscription date : 28 October 2009
Messages : 415
Hi,

i did choose the Faenza icon theme in the configuration panel, in the case of Sysinfo the "bad icon" is still showing. Its desktop file content is:
[Desktop Entry]
Name=Sysinfo
Comment=Display detailed computer/system information
Exec=sysinfo
Icon=computer
Terminal=false
Type=Application
Categories=GNOME;Utility;System;

matttbe, Saturday 09 April 2011 à 22:35


Subscription date : 24 January 2009
Messages : 12573
Ok but I think to something: can you check if this option is enable or not in the Taskbar module of the config panel (advanced mode): Overwrite the X icon with the launchers' icon?

jesuisbenjamin, Saturday 09 April 2011 à 22:39


Subscription date : 28 October 2009
Messages : 415
Yes, the option is toggled on. There is no Sysinfo launcher on my dock however, for this exercise i launch it from Synapse.

matttbe, Saturday 09 April 2011 à 22:44


Subscription date : 24 January 2009
Messages : 12573
Ok so if you create a launcher for this application, do you still have the same bug?
Can you check the class of this application?
xprop |grep CLASS
(and then, select the window of this application)

jesuisbenjamin, Saturday 09 April 2011 à 22:49


Subscription date : 28 October 2009
Messages : 415
Creating a launcher returns the desired icon instead of the low res.

Xprop returns:
WM_CLASS(STRING) = "Sysinfo", "Sysinfo"


PS: i believe this turns out to be a bug, not a suggestion. Perhaps this thread should be moved.

taiebot65, Sunday 10 April 2011 à 10:16


Subscription date : 26 October 2008
Messages : 1904
There is a way to select a set pf icon you want in Appearance>Icons>Choose an icon theme.

Unless you have set your launcher manually they should automatically be set to the new icon theme you select

jesuisbenjamin, Sunday 10 April 2011 à 11:36


Subscription date : 28 October 2009
Messages : 415
taiebot65 :
There is a way to select a set pf icon you want in Appearance>Icons>Choose an icon theme.

Unless you have set your launcher manually they should automatically be set to the new icon theme you select


Thanks. The icon theme is already chosen in this case and despite this, the dock does not return the proper icon.

matttbe, Sunday 10 April 2011 à 11:41


Subscription date : 24 January 2009
Messages : 12573
If you launch an application which is not in the dock as launcher, the dock checks its class and use the icon with the same name except if there is no icon with this name and if X gives another icon (if you want to have this behaviour).
For me it's not a bug because it's much more faster to directly use the icon with the same name as the class given by X. But maybe we can add an option to read the .desktop file with the same name as the class in the common directories and to use the icon given by this .desktop file.
I guess that Synapse has to read this desktop file in order to know how to launch your application and it use the icon linked to this launcher (like CD when you add a launcher)

jesuisbenjamin, Sunday 10 April 2011 à 11:49


Subscription date : 28 October 2009
Messages : 415
I see
Both methods have their pro's and con's. Using both could prevent Cairo to "fail" in any case though.
Thanks for clearing up.
Cheers,
B.

taiebot65, Monday 11 April 2011 à 19:55


Subscription date : 26 October 2008
Messages : 1904
The best is select the theme of icon and drag and drop your launcher. They will be automatically imported with the correct icon

fabounet, Sunday 17 April 2011 à 11:17


Subscription date : 30 November 2007
Messages : 17118
For me it's not a bug because it's much more faster to directly use the icon with the same name as the class given by X. But maybe we can add an option to read the .desktop file with the same name as the class in the common directories and to use the icon given by this .desktop file.
I guess that Synapse has to read this desktop file in order to know how to launch your application and it use the icon linked to this launcher (like CD when you add a launcher)


as I said in another post, I'll be working on a way to solve several problems with the themes.
as you guessed it may be a little slower (or I should say a little less fast ), but not too much I hope.
anyway that should be a major goal of the 2.4.

matttbe, Sunday 17 April 2011 à 23:19


Subscription date : 24 January 2009
Messages : 12573
A solution can be bamf but this tool is maybe a bit too young and too linked to Ubuntu

Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] Use OS theme as Dock theme
jesuisbenjamin English 17 matttbe [Read]
17 April 2011 à 23:19


Glx-Dock / Cairo-Dock List of forums Ideas | Propositions Use OS theme as Dock 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.