Ignore:
Timestamp:
Feb 26, 2018, 10:08:13 AM (7 years ago)
Author:
chronos
Message:
  • Fixed: Wrong theming of TCustomDrawGrid Editor.
  • Fixed: Update Editor width in TListViewSort filter gridview.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/UTheme.pas

    r174 r175  
    138138    Control := (Component as TControl);
    139139    if (Control is TEdit) or (Control is TSpinEdit) or (Control is TComboBox) and
    140     (Control is TMemo) or (Control is TListView) or (Control is TStringGrid) or
     140    (Control is TMemo) or (Control is TListView) or (Control is TCustomDrawGrid) or
    141141    (Control is TCheckBox) then begin
    142142      Control.Color := FTheme.ColorWindow;
     
    145145      Control.Color := FTheme.ColorControl;
    146146      Control.Font.Color := FTheme.ColorControlText;
     147    end;
     148
     149    if Control is TCustomDrawGrid then begin
     150      (Control as TCustomDrawGrid).Editor.Color := FTheme.ColorWindow;
     151      (Control as TCustomDrawGrid).Editor.Font.Color := FTheme.ColorWindowText;
    147152    end;
    148153  end;
Note: See TracChangeset for help on using the changeset viewer.