Skip to content

Commit 13ddf3e

Browse files
committed
Bug fix for shortcuts background color.
1 parent df5c3fa commit 13ddf3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Source/VCL/devShortcuts/devShortcutsEditorForm.dfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ object frmShortcutsEditor: TfrmShortcutsEditor
4545
ColumnClick = False
4646
ReadOnly = True
4747
RowSelect = True
48+
ParentColor = True
4849
TabOrder = 0
4950
ViewStyle = vsReport
5051
OnCustomDrawItem = lvShortcutsCustomDrawItem

Source/VCL/devShortcuts/devShortcutsEditorForm.pas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface
2424
uses
2525
{$IFDEF WIN32}
2626
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
27-
Dialogs, ExtCtrls, ComCtrls, StdCtrls, Menus, devShortcuts;
27+
Dialogs, ExtCtrls, ComCtrls, StdCtrls, Menus, devShortcuts, Vcl.Themes;
2828
{$ENDIF}
2929
{$IFDEF LINUX}
3030
SysUtils, Variants, Classes, QGraphics, QControls, QForms,
@@ -193,9 +193,9 @@ procedure TfrmShortcutsEditor.lvShortcutsCustomDrawItem(Sender: TCustomListView;
193193
with Sender.Canvas do begin
194194
if not (cdsSelected in State) then begin
195195
if Item.Index mod 2 = 0 then
196-
Brush.Color := clWhite
196+
Brush.Color := lvShortcuts.Color
197197
else
198-
Brush.Color := $E0E0E0;
198+
Brush.Color := StyleServices.GetStyleColor(scGenericBackground);
199199
end;
200200
end;
201201
end;

0 commit comments

Comments
 (0)