mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 21:55:09 +00:00
chore: make the linter happy once again
This commit is contained in:
parent
7592f0be21
commit
ffa6d930da
3 changed files with 7 additions and 6 deletions
|
@ -425,12 +425,12 @@ function createMainWindow() {
|
||||||
transparent: true
|
transparent: true
|
||||||
}),
|
}),
|
||||||
...(staticTitle && { title: "Vesktop" }),
|
...(staticTitle && { title: "Vesktop" }),
|
||||||
...(process.platform === "darwin" && titleBar !== "shown" && getDarwinOptions()), // Show/Hide titlebar depending on settings on Mac
|
...(process.platform === "darwin" && titleBar !== "shown" && getDarwinOptions()), // Show/Hide titlebar depending on settings on Mac
|
||||||
...getWindowBoundsOptions(),
|
...getWindowBoundsOptions(),
|
||||||
autoHideMenuBar: enableMenu
|
autoHideMenuBar: enableMenu
|
||||||
}));
|
}));
|
||||||
win.setMenuBarVisibility(false);
|
win.setMenuBarVisibility(false);
|
||||||
if (process.platform === "darwin" && titleBar === "custom") {
|
if (process.platform === "darwin" && titleBar === "custom") {
|
||||||
win.setWindowButtonVisibility(false); // Hide the traffic lights
|
win.setWindowButtonVisibility(false); // Hide the traffic lights
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@ import { isMac, isWindows } from "renderer/utils";
|
||||||
import { AutoStartToggle } from "./AutoStartToggle";
|
import { AutoStartToggle } from "./AutoStartToggle";
|
||||||
import { DiscordBranchPicker } from "./DiscordBranchPicker";
|
import { DiscordBranchPicker } from "./DiscordBranchPicker";
|
||||||
import { NotificationBadgeToggle } from "./NotificationBadgeToggle";
|
import { NotificationBadgeToggle } from "./NotificationBadgeToggle";
|
||||||
|
import { TitleBarPicker } from "./TitleBarPicker";
|
||||||
import { VencordLocationPicker } from "./VencordLocationPicker";
|
import { VencordLocationPicker } from "./VencordLocationPicker";
|
||||||
import { WindowsTransparencyControls } from "./WindowsTransparencyControls";
|
import { WindowsTransparencyControls } from "./WindowsTransparencyControls";
|
||||||
import { TitleBarPicker } from "./TitleBarPicker";
|
|
||||||
|
|
||||||
interface BooleanSetting {
|
interface BooleanSetting {
|
||||||
key: keyof typeof Settings.store;
|
key: keyof typeof Settings.store;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* SPDX-License-Identifier: GPL-3.0
|
* SPDX-License-Identifier: GPL-3.0
|
||||||
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
|
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
|
||||||
* Copyright (c) 2024 Vendicated and Vencord contributors
|
* Copyright (c) 2023 Vendicated and Vencord contributors
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Margins } from "@vencord/types/utils";
|
import { Margins } from "@vencord/types/utils";
|
||||||
|
@ -14,9 +14,10 @@ export const TitleBarPicker: SettingsComponent = ({ settings }) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Forms.FormText className={Margins.bottom8}>
|
<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
|
Customize apps title bar. Pick Discord if you want to use Discord's custom title bar. Requires a full
|
||||||
|
restart
|
||||||
</Forms.FormText>
|
</Forms.FormText>
|
||||||
|
|
||||||
<Select
|
<Select
|
||||||
placeholder="Hidden"
|
placeholder="Hidden"
|
||||||
options={[
|
options={[
|
||||||
|
|
Loading…
Add table
Reference in a new issue