[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 16:28:46 GMT
- To: bsteers@xxxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.3114&from=L21haW4- Comment #3 by Bruce STEERS: Thank you Benoit. I think maybe the bug you pointed out was possibly the cause behind my discovering an issue but the issue turns out to be something different. I just found that in the test program after enabling the ColorChooser.ShowAlpha that the alpha set to full transparency if Color.Default is used. It seems that was not the real issue though. The reason it seemed GTK had issues but QT did not was because setting alpha with QT does not actually work in the highlighting. With GTK if the alpha is full the background does not change (my bug) because it's transparent. (makes sense) But with QT the background did change because it is not transparent although alpha is set. (The actual TextEditor control background changes transparency but not where there are lines of code) So the actual bug i came across was not "GTK background does not work" but "QT does not support alpha in the highlighting". With your advice checking for Color.Default makes a big difference. using the code.. ColorChooser1.Value = If(TextEditor1.Background = Color.Default, Color.TextBackground, TextEditor1.Background) Then the alpha is not full and with no alpha the text color adapting works much better. (I have no problem with it now) But thank you for what you have done, I was also finding setting TextEditor1.Theme.Background cause a hang so I couldn't use it. Im hoping these changes fix that :) Also setting TextEditor1.Background was insufficient. I had to set Texteditor1.Background and TextEditor1.Theme["Background"].Color to get results. I'm writing a new script editor that has full theme customisation so will let you know of any problems in the new config. I think re-adding Theme["Background"].Color to work as before is great news. Thank you, that will make for simpler code :) Much respect Bruce ---------------------------------------------------------------------------- Attachment: Untitled.png ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----