Recent

Author Topic: Black background on object's inspector combobox options  (Read 4655 times)

szlbz

  • New Member
  • *
  • Posts: 20
Re: Black background on object's inspector combobox options
« Reply #15 on: May 28, 2022, 02:40:27 pm »
@szlbz
Is this a patch for LCL which is always needed? If so we need it in the bugtracker.

But it must be not {$ifdef linux} but {$ifdef LCLgtk2}. Because BSD systems use the same GTK2.
Just tested, lclgtk2 does not work

wp

  • Hero Member
  • *****
  • Posts: 9734
Re: Black background on object's inspector combobox options
« Reply #16 on: May 28, 2022, 02:41:14 pm »
Be careful with this code. As I see in this discussion the combobox is painted correctly normally except for some themes on some Linux versions. The {$IFDEF Linux} directive will introduce some background flicker also for those situations in which the background issue does not occur.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

Thaddy

  • Hero Member
  • *****
  • Posts: 11621
Re: Black background on object's inspector combobox options
« Reply #17 on: May 28, 2022, 03:30:43 pm »
The $ifdef by itself can not cause flicker. I guess you mean the code it contains? DoubleBuffering should fix that.
« Last Edit: May 28, 2022, 03:33:04 pm by Thaddy »
Black themes should be banned.

wp

  • Hero Member
  • *****
  • Posts: 9734
Re: Black background on object's inspector combobox options
« Reply #18 on: May 28, 2022, 04:45:51 pm »
The $ifdef by itself can not cause flicker. I guess you mean the code it contains?
Of course...

DoubleBuffering should fix that.
Not sure if this really is an option. Why should all the many gtk2 Linuxes and themes which do not show this issue be slowed down because of these rare combinations?
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

Thaddy

  • Hero Member
  • *****
  • Posts: 11621
Re: Black background on object's inspector combobox options
« Reply #19 on: May 28, 2022, 05:56:21 pm »
Double buffering is per control, so should not be an issue.
Black themes should be banned.

Thaddy

  • Hero Member
  • *****
  • Posts: 11621
Re: Black background on object's inspector combobox options
« Reply #20 on: May 28, 2022, 06:12:39 pm »
Based on Debian. Debian does not know nothing about desktops and is always too late with fixing errors. It is a good and stable server system. Point.
Ubuntu is still an impatient version of Debian. Yes Debian is conservative. It is done when it is done, just like FreePascal which is also conservative (to the extreme, I would sometimes sigh) and with good reason: user expectation should not be ruined by plethora of bugs. It is already difficult to keep users in line.
(Knowing about new features and do not  want to wait for thorough testing)
Black themes should be banned.

 

TinyPortal © 2005-2018