add setting to disable hardware acceleration (#315)

This commit is contained in:
Nick 2024-01-01 23:36:50 -05:00 committed by GitHub
parent 2f35128acf
commit a89cd9d2ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -24,8 +24,9 @@ if (IS_DEV) {
process.env.VENCORD_USER_DATA_DIR = DATA_DIR;
function init() {
const { disableSmoothScroll } = Settings.store;
const { disableSmoothScroll, disableHardwareAcceleration } = Settings.store;
if (disableHardwareAcceleration) app.disableHardwareAcceleration();
if (disableSmoothScroll) {
app.commandLine.appendSwitch("disable-smooth-scrolling");
}

View file

@ -43,6 +43,12 @@ export default function SettingsUi() {
["staticTitle", "Static Title", 'Makes the window title "Vesktop" instead of changing to the current page'],
["enableMenu", "Enable Menu Bar", "Enables the application menu bar. Press ALT to toggle visibility."],
["disableSmoothScroll", "Disable smooth scrolling", "Disables smooth scrolling in Vesktop", false],
[
"disableHardwareAcceleration",
"Disable Hardware Acceleration",
"Disables hardware acceleration in Vesktop",
false
],
["splashTheming", "Splash theming", "Adapt the splash window colors to your custom theme", false],
[
"openLinksWithElectron",

View file

@ -16,6 +16,7 @@ export interface Settings {
staticTitle?: boolean;
enableMenu?: boolean;
disableSmoothScroll?: boolean;
disableHardwareAcceleration?: boolean;
arRPC?: boolean;
appBadge?: boolean;
discordWindowsTitleBar?: boolean;