mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Make window title dark only when dark mode enabled
This commit is contained in:
parent
3806af891d
commit
bec4ea82d3
1 changed files with 6 additions and 3 deletions
|
|
@ -573,9 +573,12 @@ begin
|
|||
with Widgetset do
|
||||
SetWindowLong(AppHandle, GWL_EXSTYLE, GetWindowLong(AppHandle, GWL_EXSTYLE) or WS_EX_TOOLWINDOW);
|
||||
{$ELSEIF DEFINED(LCLQT5)}
|
||||
Handler.Data:= MainForm;
|
||||
Handler.Code:= @ScreenFormEvent;
|
||||
Screen.AddHandlerFormVisibleChanged(TScreenFormEvent(Handler), True);
|
||||
if g_darkModeEnabled then
|
||||
begin
|
||||
Handler.Data:= MainForm;
|
||||
Handler.Code:= @ScreenFormEvent;
|
||||
Screen.AddHandlerFormVisibleChanged(TScreenFormEvent(Handler), True);
|
||||
end;
|
||||
{$ENDIF}
|
||||
// Register network file source
|
||||
RegisterVirtualFileSource(rsVfsNetwork, TWinNetFileSource);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue