×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

custom flag icon not recognized [kstars]

  • Posts: 314
  • Thank you received: 34
Hi there, I was trying to use a custom gif for flaging but kstars doesn't recognize it.
I used gimp to create an 10x10 Pixels,indexed 1-colored b/w gif with transparency.
The file is in: "user/.local/share/kstars/flagSmall_white_star.gif"
Kstars shows only the default icon and no error message at start.
I attached the icon file.
--= human, without Windows™ =--
pls excuse my bad english! :)
8 years 5 months ago #5591
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
I found a solution from this code line:
kstars/kstars/skycomponents/flagcomponent.cpp:210
if( item.name().startsWith( "_flag" ) ) {
The flag filename has to start with an underscore followed by "flag" instead of kstars recommendation "names must begin with flag".
If I rename my "flagSmall_white_star.gif" to "_flagSmall_white_star.gif"
then kstars can see it.
--= human, without Windows™ =--
pls excuse my bad english! :)
8 years 5 months ago #5600

Please Log in or Create an account to join the conversation.

I didn't test it, but I made the change, thanks! Please test tomorrow and let me know if that fixed it.
8 years 5 months ago #5602

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
It works but for example flagSmall_red_cross.gif is now listed as "flagSmall red cross" instead of "Small red cross"
--= human, without Windows™ =--
pls excuse my bad english! :)
8 years 5 months ago #5603

Please Log in or Create an account to join the conversation.

Should be working now.
The following user(s) said Thank You: pauledd
8 years 5 months ago #5611

Please Log in or Create an account to join the conversation.

  • Posts: 314
  • Thank you received: 34
confirmed! thanx
--= human, without Windows™ =--
pls excuse my bad english! :)
8 years 5 months ago #5613

Please Log in or Create an account to join the conversation.

Time to create page: 0.485 seconds