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
+2 -3
View File
@@ -6,15 +6,14 @@
import type arRpcPlugin from "@vencord/types/plugins/arRPC.web";
import { Logger } from "@vencord/types/utils";
import { findLazy, findStoreLazy, onceReady } from "@vencord/types/webpack";
import { FluxDispatcher, InviteActions } from "@vencord/types/webpack/common";
import { findLazy, onceReady } from "@vencord/types/webpack";
import { FluxDispatcher, InviteActions, StreamerModeStore } from "@vencord/types/webpack/common";
import { IpcCommands } from "shared/IpcEvents";
import { onIpcCommand } from "./ipcCommands";
import { Settings } from "./settings";
const logger = new Logger("VesktopRPC", "#5865f2");
const StreamerModeStore = findStoreLazy("StreamerModeStore");
const arRPC = Vencord.Plugins.plugins["WebRichPresence (arRPC)"] as typeof arRpcPlugin;
-9
View File
@@ -1,9 +0,0 @@
/*
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2025 Vendicated and Vesktop contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
import { findStoreLazy } from "@vencord/types/webpack";
export const MediaEngineStore = findStoreLazy("MediaEngineStore");
@@ -31,10 +31,9 @@ import {
useForceUpdater
} from "@vencord/types/utils";
import { onceReady } from "@vencord/types/webpack";
import { FluxDispatcher, Select, UserStore, useState } from "@vencord/types/webpack/common";
import { FluxDispatcher, MediaEngineStore, Select, UserStore, useState } from "@vencord/types/webpack/common";
import { Node } from "@vencord/venmic";
import type { Dispatch, SetStateAction } from "react";
import { MediaEngineStore } from "renderer/common";
import { addPatch } from "renderer/patches/shared";
import { State, useSettings, useVesktopState } from "renderer/settings";
import { isLinux, isWindows } from "renderer/utils";
+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,