Problem with toolbar icons use 24x24 .icl

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
hgx
Junior Member
Junior Member
Posts: 8
Joined: 2008-04-19, 12:32 UTC
Location: China

Problem with toolbar icons use 24x24 .icl

Post by *hgx »

Beginning , i made a toobar use a lot of .ico files.
the .ico only has one format : 24 x 24 px 32bpp.
it look very good , like this:

Image: http://mirhua.googlepages.com/ICOs.png

:) is it nice?

and then , i pack .ico files in a single .icl files,

Image: http://mirhua.googlepages.com/ICL.png


:(i look a bad appearance!

!!
I noticed file default.br2 size has changed:
use .ico : 59,836 byte
use .icl : 103,612 byte

i know default.br2 is iconcache file of toobar button,
so i think when i use the 24x24 format .icl ,
tc cache icon in 32x32 format,
when tc display the button , tc must reduce the image size,
so it look not clearly.

how to fix it ?


i upload the relate file on web:

http://mirhua.googlepages.com/24icl.7z
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Try this…

Post by *Clo »

2hgx

:) Hello !

• Your icons look nice.

• I use also 24² home-made icons in my bars (6 bars), and the look is correct.

• Are there only separate 24² icons in your ICL ? Because whether you have some multipage icons,
the 24² format is ignored, so TC uses the 32² (if it's the first in the ICL) and resizes them !

• Or else (if no multipage), try to set the bar in the buttons config. dialogue as :
Button Size [ 26 ]

Icon Size [ 24 ]


• It's better to have 32-bit ICLs !
- And also to set the screen display as 32 BPP.

- I've a lot of 24² *.ICO and 32-bit iCLs for TC, just ask me to test further…

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
hgx
Junior Member
Junior Member
Posts: 8
Joined: 2008-04-19, 12:32 UTC
Location: China

Re: Try this…

Post by *hgx »

Clo wrote: • Or else (if no multipage), try to set the bar in the buttons config. dialogue as :
Button Size [ 26 ]

Icon Size [ 24 ]
Yes , my icl just only one format.

i can't find "Button Size" in buttons config.
does you mean "Buttonheight" in wincmd.ini ?
User avatar
petermad
Power Member
Power Member
Posts: 14741
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

i can't find "Button Size" in buttons config.
iIt is in the "Appearance" section at the upper right corner of the "Change button bar" dialog.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

16-bit !

Post by *Clo »

2hgx

:) Again…

• I checked the ICL in your samples, it's a 16-bit one !

• I uploaded a sample as 32-bit ICL (icons having backgrounds, that's normal) available HERE.

:mrgreen: KR
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
hgx
Junior Member
Junior Member
Posts: 8
Joined: 2008-04-19, 12:32 UTC
Location: China

Post by *hgx »

yes , you are right.

i use icofx make one 32-bit .icl , now the icon look very well again.

thanks a lot!
Freedom is not free.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Indeed TC can only extract 24x24 icons from 32-bit dlls/icls, it doesn't work (to my knowledge) with 16 bit files.
Author of Total Commander
https://www.ghisler.com
Post Reply