[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #3114: Texteditor background
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #3114: Texteditor background
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Sat, 10 Jan 2026 15:01:32 GMT
- To: bsteers@xxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3114&from=L21haW4- Comment #2 by Benoît MINISINI has been edited: Hi, In https://gitlab.com/gambas/gambas/-/commit/d0e4acd02cef945ddee92e546193ecfb2aa39935, I made the 'TextHighlighterTheme' class fake 'Background' style more backward-compatible. So now, the following code: TextEditor1.Theme["Background"].Color = ColorChooser1.Value works on Gambas 3.21 (and next versions). It has the same effect as setting the 'TextEditor1.Theme.Background' or the 'TextEditor1.Background' property. But the theme background color is not like the other theme colors, so you must use the new 'Theme.Background' property and treats it differently. As for the colors automatically adapting to the background color, I want to keep it. But the current algorithm is not perfect. The problem with it should be another issue. Note that your example program has a bug: it does not take into account that the background color of TextEditor can be 'Color.Default'. ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----