mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: make all form titlebar more native and modern on macOS 11+
This commit is contained in:
parent
da0410a472
commit
dd22c4ff7c
1 changed files with 28 additions and 1 deletions
|
|
@ -858,6 +858,29 @@ const
|
|||
);
|
||||
);
|
||||
|
||||
transparentTitleFormConfig: TCocoaConfigForm = (
|
||||
name: 'frmFindDlg;frmMultiRename;frmSyncDirsDlg;frmOptions';
|
||||
className: '';
|
||||
isMainForm: False;
|
||||
|
||||
titleBar: (
|
||||
transparent: True;
|
||||
separatorStyle: NSTitlebarSeparatorStyleNone;
|
||||
);
|
||||
);
|
||||
|
||||
separateTitleFormConfig: TCocoaConfigForm = (
|
||||
name: '*';
|
||||
className: '';
|
||||
isMainForm: False;
|
||||
|
||||
titleBar: (
|
||||
transparent: False;
|
||||
separatorStyle: NSTitlebarSeparatorStyleLine;
|
||||
);
|
||||
);
|
||||
|
||||
|
||||
procedure addShortCutString( var item: TCocoaConfigToolBarItemWithAction; const command: String );
|
||||
var
|
||||
form: THMForm;
|
||||
|
|
@ -914,7 +937,11 @@ begin
|
|||
TCocoaToolBarUtils.toClass(networkItemConfig)
|
||||
];
|
||||
|
||||
CocoaConfigForms:= [ mainFormConfig ];
|
||||
CocoaConfigForms:= [
|
||||
mainFormConfig,
|
||||
transparentTitleFormConfig,
|
||||
separateTitleFormConfig
|
||||
];
|
||||
end;
|
||||
|
||||
procedure initCocoaModernFormConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue