浏览代码

Improve StatusBarCanvasDrawPanel's style detection.

Martijn Laan 2 周之前
父节点
当前提交
4f925e0740
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Projects/Src/IDE.MainForm.pas

+ 1 - 1
Projects/Src/IDE.MainForm.pas

@@ -7458,7 +7458,7 @@ begin
         end;
         var Color: TColor := FTheme.Colors[tcFore];
         const LStyle = TStyleManager.ActiveStyle;
-        if LStyle <> nil then begin
+        if not LStyle.IsSystemStyle then begin
           const Details = LStyle.GetElementDetails(tsPane);
           LStyle.GetElementColor(Details, ecTextColor, Color);
         end;