mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-04 21:58:18 +02:00
Gtk2: do not change color of TScrollBar since it's painted by theme engine.issue #22996
git-svn-id: trunk@38860 -
This commit is contained in:
parent
aa29f1f739
commit
8b7dff7f43
@ -757,6 +757,10 @@ begin
|
||||
if not WSCheckHandleAllocated(AWinControl, 'SetColor')
|
||||
then Exit;
|
||||
|
||||
// do not change color of scrollbar. issue #22996
|
||||
if (AWinControl.FCompStyle = csScrollBar) then
|
||||
exit;
|
||||
|
||||
if ((csOpaque in AWinControl.ControlStyle) and
|
||||
GtkWidgetIsA({%H-}pGtkWidget(AWinControl.handle),GTKAPIWidget_GetType)) then
|
||||
Exit;
|
||||
|
Loading…
Reference in New Issue
Block a user