ソースを参照

Add dark mode support to the dropdown glyph used by BackNavButton.

Martijn Laan 1 年間 前
コミット
8d35b77957
1 ファイル変更3 行追加1 行削除
  1. 3 1
      Projects/Src/CompFunc.pas

+ 3 - 1
Projects/Src/CompFunc.pas

@@ -72,7 +72,7 @@ function CreateBitmapInfo(const Width, Height, BitCount: Integer): TBitmapInfo;
 implementation
 
 uses
-  ActiveX, ShlObj, ShellApi, CommDlg, SysUtils, IOUtils,
+  ActiveX, ShlObj, ShellApi, CommDlg, SysUtils, IOUtils, ComCtrls,
   Messages, DwmApi,
   CmnFunc2, PathFunc, FileClass, NewUxTheme,
   CompForm, CompMsgs, CompTypes;
@@ -130,6 +130,8 @@ procedure InitFormTheme(Form: TForm);
       var Control := ParentControl.Controls[I];
       if Control is TListBox then
         InitListBoxDarkTheme(Control as TListBox)
+      else if Control is TToolBar then
+        SetControlWindowTheme(Control as TToolBar, FormTheme.Dark)
       else if Control is TWinControl then
         InitWinControlTheme(Control as TWinControl);
     end;