[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3247: Scrollbar on texteditor is too faint.


http://gambaswiki.org/bugtracker/edit?object=BUG.3247&from=L21haW4-

Comment #8 by Benoît MINISINI:

My idea is the following:

By defaut, when the ScrollArea uses its default color, the Scrollbar handle uses the desktop 'ButtonForeground' color (as it is after all a button).

Because when everything is the default, the desktop colors are supposed to be contrasted enough between their background and foreground colors.

But if you set an explicit background color to the ScrollArea, the contrast between the 'ButtonForeground' color and that explicit background color is checked. And if it is too low, then the 'ButtonBackground' color is used instead of the 'ButtonForeground'. I suppose here that if the 'ButtonForeground' is not contrasted enough, then the 'ButtonBackground' logically will.

All that is perfectly fine for me, except it you use a transparent background color. Then, as there is no way to know what lies behind the ScrollArea, there is no way to choose a correct color.



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----