Thread: Re: [Gambas-user] Default icons problem (Page 2)
Brought to you by:
gambas
From: Benoît M. <ga...@us...> - 2012-07-24 19:56:07
|
Le 24/07/2012 21:36, Maria a écrit : > > > >> Can you test revision #4986? > >> Can you please set GB_STOCK=debug before running the IDE and tell me >> what it prints? > > > > I did in a terminal: > > GB_STOCK=debug; gambas3& > > and then: > > echo $GB_STOCK > > It prints: debug > > :-/ "it" means what the IDE prints. It prints nothing because of the ";". You must run the IDE that way: $ GB_STOCK=debug gambas3 -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-24 19:59:50
|
Oops! Sorry Here is what it prints: gb.form: init stock with icon theme: '' gb.form: desktop is LXDE gb.form: add icon path: /usr/share/icons/Faenza-Green/&2!&1 gb.form: add icon path: /usr/share/icons/Faenza/&2!&1 gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 gb.form: add icon path: stock/&2 ________________________________ De: Benoît Minisini <ga...@us...> "it" means what the IDE prints. It prints nothing because of the ";". You must run the IDE that way: $ GB_STOCK=debug gambas3 -- Benoît Minisini |
From: Benoît M. <ga...@us...> - 2012-07-24 20:05:26
|
Le 24/07/2012 21:59, Maria a écrit : > Oops! Sorry > > Here is what it prints: > > gb.form: init stock with icon theme: '' > gb.form: desktop is LXDE > gb.form: add icon path: /usr/share/icons/Faenza-Green/&2!&1 > gb.form: add icon path: /usr/share/icons/Faenza/&2!&1 > gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 > gb.form: add icon path: stock/&2 > And the IDE does not use the Faenza-Green icon theme? What do you have it that directory? -- Benoît Minisini |
From: Benoît M. <ga...@us...> - 2012-07-24 20:12:13
|
Le 24/07/2012 22:04, Benoît Minisini a écrit : > Le 24/07/2012 21:59, Maria a écrit : >> Oops! Sorry >> >> Here is what it prints: >> >> gb.form: init stock with icon theme: '' >> gb.form: desktop is LXDE >> gb.form: add icon path: /usr/share/icons/Faenza-Green/&2!&1 >> gb.form: add icon path: /usr/share/icons/Faenza/&2!&1 >> gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 >> gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 >> gb.form: add icon path: stock/&2 >> > > And the IDE does not use the Faenza-Green icon theme? What do you have > it that directory? > Hu hu... Can you try the latest revision (#4987)? -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-24 21:09:20
|
Ok, now it works. It loads always the icon set you choose for your desktop. Here is after chaging to oxygen: GB_STOCK=debug gambas3 gb.form: init stock with icon theme: '' gb.form: desktop is LXDE gb.form: add icon path: /usr/share/icons/default.kde4-original/&1x&1!&2 gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: stock/&2 Should it work Stock.Theme property in this revision too? |
From: Benoît M. <ga...@us...> - 2012-07-24 22:20:09
|
Le 24/07/2012 23:09, Maria a écrit : > > > Ok, now it works. It loads always the icon set you choose for your desktop. > > Here is after chaging to oxygen: > > GB_STOCK=debug gambas3 > gb.form: init stock with icon theme: '' > gb.form: desktop is LXDE > gb.form: add icon path: /usr/share/icons/default.kde4-original/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 > gb.form: add icon path: stock/&2 > > > Should it work Stock.Theme property in this revision too? Yes. If you define Stock.Theme with <your theme> (by modifying the IDE source code, or in your own project), you must have the following line in the debugging output: gb.form: init stock with icon theme: '<your theme>' -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-25 07:23:44
|
debug says: GB_STOCK=debug ./test.gambas gb.form: init stock with icon theme: '' gb.form: desktop is LXDE gb.form: add icon path: /usr/share/icons/default.kde4-original/&1x&1!&2 gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: stock/&2 gb.form: init stock with icon theme: 'Faenza' gb.form: add icon path: /usr/share/icons/Faenza/&2!&1 gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 gb.form: add icon path: stock/&2 But it prefers to load the first set (the system set) instead of the forced icon set. Here a screenshot: http://i.imgur.com/jNM69.png - In the system: oxygen (default.kde4-original is a sym-link to oxygen directory) - Forced with Stock.Theme property: Faenza It loads the system icon. ________________________________ De: Benoît Minisini <ga...@us...> Para: Maria <gea...@ya...>; mailing list for gambas users <gam...@li...> Enviado: Miércoles 25 de julio de 2012 0:19 Asunto: Re: [Gambas-user] Default icons problem > Should it work Stock.Theme property in this revision too? Yes. If you define Stock.Theme with <your theme> (by modifying the IDE source code, or in your own project), you must have the following line in the debugging output: gb.form: init stock with icon theme: '<your theme>' -- Benoît Minisini |
From: Benoît M. <ga...@us...> - 2012-07-25 13:44:13
|
Le 25/07/2012 09:23, Maria a écrit : > debug says: > > GB_STOCK=debug ./test.gambas > gb.form: init stock with icon theme: '' > gb.form: desktop is LXDE > gb.form: add icon path: /usr/share/icons/default.kde4-original/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 > gb.form: add icon path: stock/&2 > gb.form: init stock with icon theme: 'Faenza' > gb.form: add icon path: /usr/share/icons/Faenza/&2!&1 > gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 > gb.form: add icon path: stock/&2 > > > But it prefers to load the first set (the system set) instead of the forced icon set. > > Here a screenshot: http://i.imgur.com/jNM69.png > - In the system: oxygen (default.kde4-original is a sym-link to oxygen directory) > - Forced with Stock.Theme property: Faenza > > It loads the system icon. > Can you send the source code of that project? -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-25 17:59:08
|
It has nothing especial, it is only a form with some buttons for test icons. The only code it has is: =============== Public sStr As String Public Sub Form_Open() For Each sStr In Stock.Themes Print sStr Next Stock.Theme = "nuoveXT2" End =============== And this is the output (in my system): DMZ-Black DMZ-White F-Dark-Color Faenza Faenza-Ambiance Faenza-Dark Faenza-Darker Faenza-Darkest Faenza-Green Faenza-Radiance Obsidian ObsidianMinino PolarCursorTheme PolarCursorTheme-Blue PolarCursorTheme-Green default default.kde4 default.kde4-original gnome hicolor mate nuoveXT2 oxygen ________________________________ De: Benoît Minisini <ga...@us...> Para: Maria <gea...@ya...>; mailing list for gambas users <gam...@li...> Enviado: Miércoles 25 de julio de 2012 15:43 Asunto: Re: [Gambas-user] Default icons problem Can you send the source code of that project? -- Benoît Minisini |
From: Benoît M. <ga...@us...> - 2012-07-25 18:02:51
|
Le 25/07/2012 19:58, Maria a écrit : > It has nothing especial, it is only a form with some buttons for test icons. > > The only code it has is: > > =============== > Public sStr As String > > Public Sub Form_Open() > > For Each sStr In Stock.Themes > > Print sStr > Next > > Stock.Theme = "nuoveXT2" > > End > =============== > You must define Stock.Theme *before* loading the form. Changing Stock.Theme will not modify the icons in the already created controls. Regards, -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-25 18:36:21
|
It doesn't change the result: Public Sub foo() Stock.Theme = "oxygen" End Public Sub Form_Open() End ________________________________ De: Benoît Minisini <ga...@us...> Para: Maria <gea...@ya...>; mailing list for gambas users <gam...@li...> Enviado: Miércoles 25 de julio de 2012 20:02 Asunto: Re: [Gambas-user] Default icons problem You must define Stock.Theme *before* loading the form. Changing Stock.Theme will not modify the icons in the already created controls. Regards, -- Benoît Minisini |
From: Benoît M. <ga...@us...> - 2012-07-25 18:42:11
|
Le 25/07/2012 20:36, Maria a écrit : > It doesn't change the result: > > Public Sub foo() > Stock.Theme = "oxygen" > End > > Public Sub Form_Open() > > End > Sorry, not before loading the form, but before creating it. -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-25 19:49:00
|
Ok, in a module it works. Jussi example works deleting the path and leaving the name of the icon set. ________________________________ De: Benoît Minisini <ga...@us...> Para: Maria <gea...@ya...>; mailing list for gambas users <gam...@li...> Enviado: Miércoles 25 de julio de 2012 20:41 Asunto: Re: [Gambas-user] Default icons problem Sorry, not before loading the form, but before creating it. -- Benoît Minisini |
From: Jussi L. <jus...@gm...> - 2012-07-25 20:16:00
|
OK, without full path it works, but not completely. Example with theme "LowContrast" I don't see correct icons. gb.form: init stock with icon theme: 'LowContrast' gb.form: desktop is XFCE gb.form: add icon path: /usr/share/icons/LowContrast/&1x&1!&2 gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: stock/&2 Output with oxygen, which seem to work correctly: gb.form: init stock with icon theme: 'oxygen' gb.form: desktop is XFCE gb.form: add icon path: /usr/share/icons/oxygen/&1x&1!&2 gb.form: add icon path: /usr/share/icons/hicolor/&1x&1!&2 gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: stock/&2 Jussi On 25 July 2012 22:48, Maria <gea...@ya...> wrote: > Ok, in a module it works. > > Jussi example works deleting the path and leaving the name of the icon set. > > > > > ________________________________ > De: Benoît Minisini <ga...@us...> > Para: Maria <gea...@ya...>; mailing list for gambas users < > gam...@li...> > Enviado: Miércoles 25 de julio de 2012 20:41 > Asunto: Re: [Gambas-user] Default icons problem > > > Sorry, not before loading the form, but before creating it. > > -- > Benoît Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > |
From: Benoît M. <ga...@us...> - 2012-07-25 20:27:58
|
Le 25/07/2012 22:15, Jussi Lahtinen a écrit : > OK, without full path it works, but not completely. I should have pointed that. But I could handle full paths, for icon themes not stored in /usr/share/icons... > > Example with theme "LowContrast" I don't see correct icons. > > gb.form: init stock with icon theme: 'LowContrast' > gb.form: desktop is XFCE > gb.form: add icon path: /usr/share/icons/LowContrast/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 > gb.form: add icon path: stock/&2 > Please give more details (all icons? just some of them?...) Note that Gambas tries hard to guess how the icon theme directory is structured (this is the &1x&1!&2 at the end of the path), and follows the theme inheritance (this is why you have the gnome icons just after - LowContrast inherits the gnome theme). But maybe it fails at doing that... -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-25 20:35:22
|
More details about this issue: Themes in ~/.icons are not loaded. I move an icon theme from /usr/share/icons to ~/.icons I run system preferences for choosing that theme icon. It changed all icons in my desktop. Then I run: GB_STOCK=debug gambas3 gb.form: init stock with icon theme: '' gb.form: desktop is LXDE gb.form: add icon path: ~/.icons/nouvext2/&1x&1!&2 gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: stock/&2 Gambas3 looks for inside ~/,icons and founds nouvext2 (the system icon), but it prefers to load gnome theme. |
From: Jussi L. <jus...@gm...> - 2012-07-25 20:54:58
|
> > OK, without full path it works, but not completely. > > I should have pointed that. But I could handle full paths, for icon > themes not stored in /usr/share/icons... > Good idea. Also I think there should be error/warning message if the theme is missing and debugging is on. Now I got only this from non-existing theme: gb.form: init stock with icon theme: 'huuhuu' gb.form: desktop is XFCE gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 gb.form: add icon path: stock/&2 And exactly same icons than with LowContrast (seems to be gnome icons, I use Humanity-Dark icons in my Desktop). > Please give more details (all icons? just some of them?...) > Seems like either all icons are correct in theme, or the theme doesn't work at all (= all icons are wrong). Jussi |
From: Jussi L. <jus...@gm...> - 2012-07-25 21:28:52
|
Some themes that are listed in Stock.Themes, doesn't seem to have necessary icons, like "hicolor" theme. It doesn't have (at least in 16x16) "cancel", "close", "add" and "play" icons. And when I look from Settings manager --> appearance settings, there "hicolor" is *not* listed. But "LowContrast" is listed, and it has different path structure. Gnome, oxygen and Tango themes (all working) seems to have structure like this to icons I test: NameOfTheme --> SIZExSIZE --> actions But LowContrast have this kind of folder structure to same icons: NameOfTheme --> SIZExSIZE --> stock So, I think Stock.Themes contains themes that do not have icons (?). And some alternative path structures are not checked..? Also some themes doesn't have icons in all necessary sizes, perhaps this should print warning? Jussi On 25 July 2012 23:54, Jussi Lahtinen <jus...@gm...> wrote: > > > OK, without full path it works, but not completely. >> >> I should have pointed that. But I could handle full paths, for icon >> themes not stored in /usr/share/icons... >> > > Good idea. > Also I think there should be error/warning message if the theme is missing > and debugging is on. > > Now I got only this from non-existing theme: > > gb.form: init stock with icon theme: 'huuhuu' > gb.form: desktop is XFCE > > gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 > gb.form: add icon path: stock/&2 > > And exactly same icons than with LowContrast (seems to be gnome icons, I > use Humanity-Dark icons in my Desktop). > > > > >> Please give more details (all icons? just some of them?...) >> > > Seems like either all icons are correct in theme, or the theme doesn't > work at all (= all icons are wrong). > > > Jussi > |
From: Benoît M. <ga...@us...> - 2012-07-25 21:41:14
|
Le 25/07/2012 23:28, Jussi Lahtinen a écrit : > Some themes that are listed in Stock.Themes, doesn't seem to have necessary > icons, like "hicolor" theme. > It doesn't have (at least in 16x16) "cancel", "close", "add" and "play" > icons. > Yes. This is the reason why Gambas has its own last resort icon theme located in the gb.form.stock component, which is loaded if needed only. > And when I look from Settings manager --> appearance settings, there > "hicolor" is *not* listed. Because it is marked as "Hidden" in the index.theme file. > But "LowContrast" is listed, and it has different path structure. > > Gnome, oxygen and Tango themes (all working) seems to have structure like > this to icons I test: > NameOfTheme --> SIZExSIZE --> actions > > But LowContrast have this kind of folder structure to same icons: > NameOfTheme --> SIZExSIZE --> stock > On my Ubuntu, LowConstrast has the size first, then the types (I have actions, apps, categories, devices & stock) > > So, I think Stock.Themes contains themes that do not have icons (?). > And some alternative path structures are not checked..? > > Also some themes doesn't have icons in all necessary sizes, perhaps this > should print warning? Your forget the inheritance between themes. LowContrast inherits the gnome theme. Regards, -- Benoît Minisini |
From: Jussi L. <jus...@gm...> - 2012-07-25 22:00:24
|
> > And when I look from Settings manager --> appearance settings, there > > "hicolor" is *not* listed. > > Because it is marked as "Hidden" in the index.theme file. > Aaaa... OK. > > But "LowContrast" is listed, and it has different path structure. > > > > Gnome, oxygen and Tango themes (all working) seems to have structure like > > this to icons I test: > > NameOfTheme --> SIZExSIZE --> actions > > > > But LowContrast have this kind of folder structure to same icons: > > NameOfTheme --> SIZExSIZE --> stock > > > > On my Ubuntu, LowConstrast has the size first, then the types (I have > actions, apps, categories, devices & stock) > Yes, that is what I tried to explain, but with LowContrast, actions folder doesn't contain corresponding icons to what example oxygen have in actions folder. Corresponding icons of LowContrast is in stock folder, not in actions folder. > So, I think Stock.Themes contains themes that do not have icons (?). > > And some alternative path structures are not checked..? > > > > Also some themes doesn't have icons in all necessary sizes, perhaps this > > should print warning? > > Your forget the inheritance between themes. LowContrast inherits the > gnome theme. > OK. But with LowContrast theme 48x48 icons are ignored, as they wouldn't exist. Jussi |
From: Benoît M. <ga...@us...> - 2012-07-26 00:10:17
|
Le 25/07/2012 23:59, Jussi Lahtinen a écrit : > > Yes, that is what I tried to explain, > but with LowContrast, actions folder doesn't contain corresponding icons to > what example oxygen have in actions folder. > > Corresponding icons of LowContrast is in stock folder, not in actions > folder. > AFAIK this is not standard and I can't use them. Icon relative paths and names should be the same in all icon themes. -- Benoît Minisini |
From: Jussi L. <jus...@gm...> - 2012-07-26 01:02:21
|
> AFAIK this is not standard and I can't use them. Icon relative paths and > names should be the same in all icon themes. > I understand. However, I wonder how things work in Xubuntu, since if I chose to use that theme, icons work correctly in Desktop. Jussi |
From: Benoît M. <ga...@us...> - 2012-07-26 00:22:42
|
Le 25/07/2012 22:35, Maria a écrit : > More details about this issue: > > Themes in ~/.icons are not loaded. > > I move an icon theme from /usr/share/icons to ~/.icons > I run system preferences for choosing that theme icon. > It changed all icons in my desktop. > > Then I run: > GB_STOCK=debug gambas3 > gb.form: init stock with icon theme: '' > gb.form: desktop is LXDE > gb.form: add icon path: ~/.icons/nouvext2/&1x&1!&2 > gb.form: add icon path: /usr/share/icons/gnome/&1x&1!&2 > gb.form: add icon path: stock/&2 > > Gambas3 looks for inside ~/,icons and founds nouvext2 (the system icon), but it prefers to load gnome theme. Why do you say 'it prefers'? Icons will be taken from '~/.icons/nouvext2', then in '/usr/share/icons/gnome' when they are not found, then in the Gambas internal stock. -- Benoît Minisini |
From: Maria <gea...@ya...> - 2012-07-26 08:01:13
|
Look at this: http://imgur.com/a/okdWZ First screenshot: with normal theme nouvext2 in /usr/share/icons The second one: with nouvext2 in ~/.icons Notice system loads correctly nouvext2 icons in both situations (look at panel icons at the top), but gambas and compilated programs prefer basic gnome icons. ________________________________ De: Benoît Minisini <ga...@us...> Para: Maria <gea...@ya...>; mailing list for gambas users <gam...@li...> Enviado: Jueves 26 de julio de 2012 2:22 Asunto: Re: [Gambas-user] Default icons problem Why do you say 'it prefers'? Icons will be taken from '~/.icons/nouvext2', then in '/usr/share/icons/gnome' when they are not found, then in the Gambas internal stock. -- Benoît Minisini |
From: Fabien B. <gam...@gm...> - 2012-07-27 08:28:48
|
2012/7/26 Maria <gea...@ya...> > Look at this: http://imgur.com/a/okdWZ > > First screenshot: with normal theme nouvext2 in /usr/share/icons > The second one: with nouvext2 in ~/.icons > > Notice system loads correctly nouvext2 icons in both situations (look at > panel icons at the top), but gambas and compilated programs prefer basic > gnome icons. > > > > > ________________________________ > De: Benoît Minisini <ga...@us...> > Para: Maria <gea...@ya...>; mailing list for gambas users < > gam...@li...> > Enviado: Jueves 26 de julio de 2012 2:22 > Asunto: Re: [Gambas-user] Default icons problem > > Why do you say 'it prefers'? Icons will be taken from > '~/.icons/nouvext2', then in '/usr/share/icons/gnome' when they are not > found, then in the Gambas internal stock. > > -- > Benoît Minisini > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gam...@li... > https://lists.sourceforge.net/lists/listinfo/gambas-user > where can we have a copy of this icon set ? in the two different picture, gambas seem to load a different set ... is this theme complete ?... can you give me the sub folder tree ? -- Fabien Bodard |