mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-16 10:39:30 +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);
|
Style := GetStyle(lgsDefault);
|
||||||
If Style = nil then
|
If Style = nil then
|
||||||
exit;
|
exit;
|
||||||
|
{$IFDEF Gtk1}
|
||||||
|
GC := Style^.bg_gc[GTK_STATE_PRELIGHT];
|
||||||
|
{$ELSE}
|
||||||
GC := Style^.text_gc[GTK_STATE_PRELIGHT];
|
GC := Style^.text_gc[GTK_STATE_PRELIGHT];
|
||||||
|
{$ENDIF}
|
||||||
If GC = nil then begin
|
If GC = nil then begin
|
||||||
Result.Fill := GDK_Solid;
|
Result.Fill := GDK_Solid;
|
||||||
Result.foreground := Style^.text[GTK_STATE_PRELIGHT];
|
Result.foreground := Style^.bg[GTK_STATE_PRELIGHT];
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
GDK_GC_Get_Values(GC, @Result);
|
GDK_GC_Get_Values(GC, @Result);
|
||||||
|
Loading…
Reference in New Issue
Block a user