fix window controls

This commit is contained in:
Vendicated
2026-01-24 02:25:37 +01:00
parent 786c3cc196
commit 5befd967ba
9 changed files with 48 additions and 40 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
*/
import { Logger } from "@vencord/types/utils";
import { MediaEngineStore } from "renderer/common";
import { MediaEngineStore } from "@vencord/types/webpack/common";
const logger = new Logger("VesktopStreamFixes");
+1 -4
View File
@@ -5,8 +5,7 @@
*/
import { addContextMenuPatch } from "@vencord/types/api/ContextMenu";
import { findStoreLazy } from "@vencord/types/webpack";
import { FluxDispatcher, Menu, useMemo, useStateFromStores } from "@vencord/types/webpack/common";
import { FluxDispatcher, Menu, SpellCheckStore, useMemo, useStateFromStores } from "@vencord/types/webpack/common";
import { useSettings } from "renderer/settings";
import { addPatch } from "./shared";
@@ -14,8 +13,6 @@ import { addPatch } from "./shared";
let word: string;
let corrections: string[];
const SpellCheckStore = findStoreLazy("SpellcheckStore");
// Make spellcheck suggestions work
addPatch({
patches: [
+3 -3
View File
@@ -9,11 +9,11 @@ import { addPatch } from "./shared";
addPatch({
patches: [
{
find: ".STREAMER_MODE_ENABLE,",
find: ".STREAMING_AUTO_STREAMER_MODE,",
replacement: {
// remove if (platformEmbedded) check from streamer mode toggle
match: /if\(\i\.\i\)(?=return.{0,200}?"autoToggle")/g,
replace: ""
match: /(?<=usePredicate.{0,20}?return )\i\.\i/g,
replace: "true"
}
}
]
+2 -2
View File
@@ -12,7 +12,7 @@ if (Settings.store.customTitleBar)
addPatch({
patches: [
{
find: ".wordmarkWindows",
find: ".USE_OSX_NATIVE_TRAFFIC_LIGHTS",
replacement: [
{
match: /case \i\.\i\.WINDOWS:/,
@@ -22,7 +22,7 @@ if (Settings.store.customTitleBar)
},
// Visual Refresh
{
find: ".systemBar,",
find: '"refresh-title-bar-small"',
replacement: [
{
match: /\i===\i\.PlatformTypes\.WINDOWS/g,