[9.50b7+] Colors preview looks ugly with high font sizes

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: sheep, Hacker, Stefan2, white

Post Reply
User avatar
Flint
Power Member
Power Member
Posts: 3255
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

[9.50b7+] Colors preview looks ugly with high font sizes

Post by *Flint » 2019-12-04, 23:50 UTC

The changes in Colors Example box display for file panel produced one unexpected side effect: if user chose a bigger file panel font size, the sample text no longer fits into the Example box, which looks quite weird and unsightly.

I suggest that TC automatically decreased the size of the file panel font when drawing the preview (keeping the font face and width intact); the new size might be calculated from the string width, so that the text would fit. This way, the preview would look consistent and won't show strange half-cut symbols, and at the same time it will allow the user to get the sense of what he/she will see in the actual file panel.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.22a / Win7 x64 SP1, Win10 x64

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38717
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [9.50b7+] Colors preview looks ugly with high font sizes

Post by *ghisler(Author) » 2019-12-30, 08:11 UTC

The sample text for file panels (and ONLY for these) is now reduced automatically to fit the preview. Please test!
Author of Total Commander
http://www.ghisler.com

User avatar
Flint
Power Member
Power Member
Posts: 3255
Joined: 2003-10-27, 09:25 UTC
Location: Moscow, Russia
Contact:

Re: [9.50b7+] Colors preview looks ugly with high font sizes

Post by *Flint » 2019-12-30, 22:08 UTC

Confirm, although the width is not taken into account. So if the translation is longer than the original English title, it may be cut on the left and right (see screenshot). Still, it's much better and at least allows to see clearly the result of the color configuration.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 9.22a / Win7 x64 SP1, Win10 x64

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 38717
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [9.50b7+] Colors preview looks ugly with high font sizes

Post by *ghisler(Author) » 2019-12-31, 11:23 UTC

Yes, please try shortening the last string a bit.
Author of Total Commander
http://www.ghisler.com

Post Reply