Text color in Linux version (GTK)

ralfmr's profile image ralfmr posted 1 month ago in General Permalink

In the GTK version on Linux the items in the tree view on the left side are always in light grey. This is difficult to read, especially if a color is configured for a database. I use colors to distinguish different databases.

In the Windows version the text of the active DB is displayed in black. Only items of non-active DBs are displayed in grey.

Is that a configuration option?

ansgar's profile image ansgar posted 1 month ago Permalink

No that's by design currently. And I'm also unhappy with that. The crux is that the Lazarus VirtualTree implementation has an older painting issue with "ghosted" icons, which is why I cannot just do the same as in the Windows/Delphi version, which does not have that issue. I believe that issue is the same as I reported for Delphi in 2020:

Due to that icon painting issue, I decided to paint the text differently for seen/unseen objects.

  • I could perhaps add an overlay icon to seen objects, but this would perhaps make the tree overcrowded
  • maybe there is a technique for painting the icon through the owner code. I should check that.
ralfmr's profile image ralfmr posted 1 month ago Permalink

I checked the Windows version and indeed the icon changes for seen objects. I did never notice this before :-)

For me it would be much more important to be able to read the object names. Especially in combination with colors for the databases it's very hard to read the grey labels.

Maybe an option in the settings would be helpful, so that users can decide if unseen objects should be displayed in grey or black.

ansgar's profile image ansgar posted 1 month ago Permalink

I just recalled I already have grayscale icons for displaying on the inactive query tabs. The use case is the very much the same, inactive tabs and inactive tree nodes. I just had to turn them from grayscale to just lightened color versions. Result now looks like in the Windows releases, apart from the no longer grayscale tab icons. The node text is no longer gray but always black (or white, depending on dark mode):

grafik.png

commit:4b2f469bf33cace48a656371130e95cb222fce9e will be in the next v12.19 release.

ralfmr's profile image ralfmr posted 1 month ago Permalink

Very nice. Thanks a lot for the quick fix.

ansgar's profile image ansgar posted 1 month ago Permalink

Here's a screeny of the same area in the classic Windows version - should be really comparable now.

grafik.png

ralfmr's profile image ralfmr posted 1 month ago Permalink

Perfect!!!

ralfmr's profile image ralfmr posted 4 weeks ago Permalink

Installed version 12.19. Looks perfect again! Thanks a lot.

Please login to leave a reply, or register at first.