mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 09:39:31 +02:00
gtk1 intf: improved clHighlighttext using bg_gc instead of text_g
git-svn-id: trunk@11406 -
This commit is contained in:
parent
14c9c1fef0
commit
1ddf9fb8f9
@ -8511,10 +8511,14 @@ begin
|
||||
Style := GetStyle(lgsDefault);
|
||||
If Style = nil then
|
||||
exit;
|
||||
{$IFDEF Gtk1}
|
||||
GC := Style^.bg_gc[GTK_STATE_PRELIGHT];
|
||||
{$ELSE}
|
||||
GC := Style^.text_gc[GTK_STATE_PRELIGHT];
|
||||
{$ENDIF}
|
||||
If GC = nil then begin
|
||||
Result.Fill := GDK_Solid;
|
||||
Result.foreground := Style^.text[GTK_STATE_PRELIGHT];
|
||||
Result.foreground := Style^.bg[GTK_STATE_PRELIGHT];
|
||||
end
|
||||
else
|
||||
GDK_GC_Get_Values(GC, @Result);
|
||||
|
Loading…
Reference in New Issue
Block a user