Lister with customized colors: Plugins use default colors

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
pi
Junior Member
Junior Member
Posts: 23
Joined: 2005-03-29, 09:30 UTC
Location: Aachen

Lister with customized colors: Plugins use default colors

Post by *pi »

I love the new feature with customized colors in lister.
My preferred colors are cyan text on dark blue background - OK, call me nostalgic.

Since I use some self-written plugins for lister, I just found out that no lister plugin uses these customized colors.

Even the listplug sample plugin always uses black text on white background (the default colors) when it is invoked.

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

Post by *ghisler(Author) »

Of course not - the plugins cannot know what colors are defined in lister.
Author of Total Commander
https://www.ghisler.com
pi
Junior Member
Junior Member
Posts: 23
Joined: 2005-03-29, 09:30 UTC
Location: Aachen

Post by *pi »

OK, I see. It's the same with font style and size.

Is it possible to inquire these default values from TC? Just to create a "TC compliant" look and feel?

Because it looks just ugly when a text file shown in Lister looks different from a text file shown by a plugin.

Possible methods could be:
* an additional parameter for ListLoad(),
* an additional pointer to struct in ListDefaultParamStruct,
* new parameters for ListSendCommand(), like

Code: Select all

ListSendCommand(ListWin,lc_defbgcolor,color);
pi
Post Reply