add discord theme
This commit is contained in:
parent
33398dbad1
commit
659af3d00d
8 changed files with 612 additions and 1 deletions
63
modules/home/discord/webcord/config.json
Normal file
63
modules/home/discord/webcord/config.json
Normal file
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"settings": {
|
||||
"general": {
|
||||
"menuBar": {
|
||||
"hide": true
|
||||
},
|
||||
"tray": {
|
||||
"disable": true
|
||||
},
|
||||
"taskbar": {
|
||||
"flash": true
|
||||
},
|
||||
"window": {
|
||||
"transparent": true,
|
||||
"hideOnClose": false
|
||||
}
|
||||
},
|
||||
"privacy": {
|
||||
"blockApi": {
|
||||
"science": true,
|
||||
"typingIndicator": true,
|
||||
"fingerprinting": true
|
||||
},
|
||||
"permissions": {
|
||||
"video": false,
|
||||
"audio": false,
|
||||
"fullscreen": true,
|
||||
"notifications": true,
|
||||
"display-capture": true,
|
||||
"background-sync": true
|
||||
}
|
||||
},
|
||||
"advanced": {
|
||||
"currentInstance": {
|
||||
"radio": 0
|
||||
},
|
||||
"devel": {
|
||||
"enabled": true
|
||||
},
|
||||
"redirection": {
|
||||
"warn": true
|
||||
},
|
||||
"optimize": {
|
||||
"gpu": true
|
||||
},
|
||||
"webApi": {
|
||||
"webGl": true
|
||||
},
|
||||
"unix": {
|
||||
"autoscroll": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"update": {
|
||||
"notification": {
|
||||
"version": "",
|
||||
"till": ""
|
||||
}
|
||||
},
|
||||
"screenShareStore": {
|
||||
"audio": false
|
||||
}
|
||||
}
|
39
modules/home/discord/webcord/unwritable-config.patch
Normal file
39
modules/home/discord/webcord/unwritable-config.patch
Normal file
|
@ -0,0 +1,39 @@
|
|||
diff --git a/sources/code/main/modules/config.ts b/sources/code/main/modules/config.ts
|
||||
index 4390832..31fe819 100644
|
||||
--- a/sources/code/main/modules/config.ts
|
||||
+++ b/sources/code/main/modules/config.ts
|
||||
@@ -2,7 +2,7 @@
|
||||
* configManager
|
||||
*/
|
||||
|
||||
-import { readFileSync, existsSync, rmSync, writeFileSync } from "fs";
|
||||
+import { readFileSync, existsSync, rmSync } from "fs";
|
||||
import {
|
||||
app,
|
||||
BrowserWindow,
|
||||
@@ -146,12 +146,12 @@ class Config<T> {
|
||||
/** Default configuration values. */
|
||||
private readonly defaultConfig;
|
||||
protected spaces = 4;
|
||||
- #write(object: unknown) {
|
||||
- const decodedData = JSON.stringify(object, null, this.spaces);
|
||||
- let encodedData:string|Buffer = decodedData;
|
||||
- if(this.#pathExtension === FileExt.Encrypted)
|
||||
- encodedData = safeStorage.encryptString(decodedData);
|
||||
- writeFileSync(this.#path+this.#pathExtension,encodedData);
|
||||
+ #write(_object: unknown) {
|
||||
+ // const decodedData = JSON.stringify(object, null, this.spaces);
|
||||
+ // let encodedData:string|Buffer = decodedData;
|
||||
+ // if(this.#pathExtension === FileExt.Encrypted)
|
||||
+ // encodedData = safeStorage.encryptString(decodedData);
|
||||
+ // writeFileSync(this.#path+this.#pathExtension,encodedData);
|
||||
}
|
||||
#read(): unknown {
|
||||
const encodedData = readFileSync(this.#path+this.#pathExtension);
|
||||
@@ -317,4 +317,4 @@ void import("electron/main")
|
||||
if(new URL(event.senderFrame.url).protocol === "file:")
|
||||
appConfig.value = config;
|
||||
})
|
||||
- );
|
||||
\ No newline at end of file
|
||||
+ );
|
Loading…
Add table
Add a link
Reference in a new issue