-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ability for macOS to use the native title bar
- Loading branch information
1 parent
a318f6b
commit aa11933
Showing
7 changed files
with
51 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* SPDX-License-Identifier: GPL-3.0 | ||
* Vesktop, a desktop app aiming to give you a snappier Discord Experience | ||
* Copyright (c) 2024 Vendicated and Vencord contributors | ||
*/ | ||
|
||
import { Margins } from "@vencord/types/utils"; | ||
import { Select, Forms } from "@vencord/types/webpack/common"; | ||
import { isMac, isWindows } from "renderer/utils"; | ||
|
||
import { SettingsComponent } from "./Settings"; | ||
|
||
export const TitleBarPicker: SettingsComponent = ({ settings }) => { | ||
return ( | ||
<> | ||
<Forms.FormText className={Margins.bottom8}> | ||
Customize apps title bar. Pick Discord if you want to use Discord's custom title bar. Requires a full restart | ||
</Forms.FormText> | ||
<Select | ||
placeholder="Hidden" | ||
options={[ | ||
...(isMac ? [{ label: "Hidden", value: "hidden", default: isMac }] : []), | ||
{ label: "Native", value: "shown" }, | ||
{ label: "Discord", value: "custom", default: isWindows } | ||
]} | ||
closeOnSelect={true} | ||
select={v => (settings.titleBar = v)} | ||
isSelected={v => v === settings.titleBar} | ||
serialize={s => s} | ||
/> | ||
<Forms.FormDivider className={Margins.top16 + " " + Margins.bottom16} /> | ||
</> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters