Files
Veskslop/src/renderer/patches/windowsTitleBar.tsx
T
2025-11-23 23:55:37 +01:00

39 lines
1.0 KiB
TypeScript

/*
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2023 Vendicated and Vencord contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { Settings } from "renderer/settings";
import { addPatch } from "./shared";
if (Settings.store.customTitleBar)
addPatch({
patches: [
{
find: ".wordmarkWindows",
replacement: [
{
match: /case \i\.\i\.WINDOWS:/,
replace: 'case "WEB":'
}
]
},
// Visual Refresh
{
find: ".systemBar,",
replacement: [
{
match: /\i===\i\.PlatformTypes\.WINDOWS/g,
replace: "true"
},
{
match: /\i===\i\.PlatformTypes\.WEB/g,
replace: "false"
}
]
}
]
});