mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
MS Store tweaks
This commit is contained in:
parent
3d7cad28d7
commit
6d1e291be5
13 changed files with 88 additions and 5 deletions
Binary file not shown.
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 9.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 17 KiB |
|
@ -17,9 +17,17 @@
|
||||||
"settings-theme-desc1": "ArmCord \"themes\" manage apps behaviour and looks.",
|
"settings-theme-desc1": "ArmCord \"themes\" manage apps behaviour and looks.",
|
||||||
"settings-theme-desc2": "this is how ArmCord looks when you first launch it. It includes recreation of Discord's\n custom titlebar and ArmCord specific styles injected into Discord.",
|
"settings-theme-desc2": "this is how ArmCord looks when you first launch it. It includes recreation of Discord's\n custom titlebar and ArmCord specific styles injected into Discord.",
|
||||||
"settings-theme-desc3": "uses native titlebar of OS you're currently running (e.g Windows 7/10). Functions more\n similar to actual Discord app on Linux.",
|
"settings-theme-desc3": "uses native titlebar of OS you're currently running (e.g Windows 7/10). Functions more\n similar to actual Discord app on Linux.",
|
||||||
|
"settings-theme-desc4": "transparent window with native titlebar, you need a compatible theme to run this.",
|
||||||
"settings-theme-default": "Default",
|
"settings-theme-default": "Default",
|
||||||
"settings-theme-native": "Native",
|
"settings-theme-native": "Native",
|
||||||
"settings-theme-transparent": "Transparent (Experimental)",
|
"settings-theme-transparent": "Transparent",
|
||||||
|
"settings-transparencyMode": "Transparency mode:",
|
||||||
|
"settings-transparencyMode-acrylic": "Acrylic",
|
||||||
|
"settings-transparencyMode-mica": "Mica",
|
||||||
|
"settings-transparencyMode-unifiedAcrylic": "Unified Acrylic",
|
||||||
|
"settings-transparencyMode-blurbehind": "Blur behind",
|
||||||
|
"settings-autoLaunch": "Auto launch",
|
||||||
|
"settings-autoLaunch-desc": "Starts ArmCord on system-startup.",
|
||||||
"settings-csp-desc": "ArmCord CSP is our system that manages loading custom content loading into the Discord app. Stuff like\n client mods and themes depend on it. Disable if you want to get rid of mods and custom styles.",
|
"settings-csp-desc": "ArmCord CSP is our system that manages loading custom content loading into the Discord app. Stuff like\n client mods and themes depend on it. Disable if you want to get rid of mods and custom styles.",
|
||||||
"settings-tray": "Minimize to tray",
|
"settings-tray": "Minimize to tray",
|
||||||
"settings-tray-desc": "When disabled, ArmCord will close like any other window when closed, otherwise it'll sit back and relax\n in your system tray for later.",
|
"settings-tray-desc": "When disabled, ArmCord will close like any other window when closed, otherwise it'll sit back and relax\n in your system tray for later.",
|
||||||
|
|
|
@ -50,6 +50,7 @@
|
||||||
"arrpc": "file:src/arrpc",
|
"arrpc": "file:src/arrpc",
|
||||||
"cross-fetch": "^3.1.5",
|
"cross-fetch": "^3.1.5",
|
||||||
"electron-context-menu": "github:ArmCord/electron-context-menu",
|
"electron-context-menu": "github:ArmCord/electron-context-menu",
|
||||||
|
"electron-winstore-auto-launch": "^2.0.6",
|
||||||
"extract-zip": "^2.0.1",
|
"extract-zip": "^2.0.1",
|
||||||
"v8-compile-cache": "^2.3.0",
|
"v8-compile-cache": "^2.3.0",
|
||||||
"ws": "^8.11.0"
|
"ws": "^8.11.0"
|
||||||
|
@ -81,6 +82,12 @@
|
||||||
"rpm",
|
"rpm",
|
||||||
"AppImage"
|
"AppImage"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"appx": {
|
||||||
|
"identityName": "53758smartfrigde.ArmCord",
|
||||||
|
"publisher": "CN=EAB3A6D3-7145-4623-8176-D579F573F339",
|
||||||
|
"publisherDisplayName": "smartfrigde",
|
||||||
|
"applicationId": "smartfrigde.ArmCord"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@7.13.4"
|
"packageManager": "pnpm@7.13.4"
|
||||||
|
|
22
pnpm-lock.yaml
generated
22
pnpm-lock.yaml
generated
|
@ -13,6 +13,9 @@ dependencies:
|
||||||
electron-context-menu:
|
electron-context-menu:
|
||||||
specifier: github:ArmCord/electron-context-menu
|
specifier: github:ArmCord/electron-context-menu
|
||||||
version: github.com/ArmCord/electron-context-menu/280c81398c02a063f46e3285a9708d8db1a7ce32
|
version: github.com/ArmCord/electron-context-menu/280c81398c02a063f46e3285a9708d8db1a7ce32
|
||||||
|
electron-winstore-auto-launch:
|
||||||
|
specifier: ^2.0.6
|
||||||
|
version: 2.0.6
|
||||||
extract-zip:
|
extract-zip:
|
||||||
specifier: ^2.0.1
|
specifier: ^2.0.1
|
||||||
version: 2.0.1
|
version: 2.0.1
|
||||||
|
@ -230,6 +233,14 @@ packages:
|
||||||
fastq: 1.15.0
|
fastq: 1.15.0
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/@nodert-win10-au/windows.applicationmodel@0.4.4:
|
||||||
|
resolution: {integrity: sha512-/46SHT3E5s29p9Fh+BEAJIuzX1vLnGTKSfeGHcUKrPzJneP7OY05NTRH1PHRfRRCgE7YfbIeQqRpbJ0dyvliqw==}
|
||||||
|
requiresBuild: true
|
||||||
|
dependencies:
|
||||||
|
nan: 2.17.0
|
||||||
|
dev: false
|
||||||
|
optional: true
|
||||||
|
|
||||||
/@sindresorhus/is@4.6.0:
|
/@sindresorhus/is@4.6.0:
|
||||||
resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==}
|
resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==}
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
|
@ -1184,6 +1195,12 @@ packages:
|
||||||
- supports-color
|
- supports-color
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
|
/electron-winstore-auto-launch@2.0.6:
|
||||||
|
resolution: {integrity: sha512-piE1U0+YCRzftD5YZjFFS5QfuksNGD6lpUMmtsHjd417grnttjRDK+ve6wTyyiGZfIQG3yEvYAEA5hUfGD42Sg==}
|
||||||
|
optionalDependencies:
|
||||||
|
'@nodert-win10-au/windows.applicationmodel': 0.4.4
|
||||||
|
dev: false
|
||||||
|
|
||||||
/electron@24.3.0:
|
/electron@24.3.0:
|
||||||
resolution: {integrity: sha512-M7PpfpOzGdLeZPr2xhxXuvJeoXPEHMH40Rtv8BCGleRPolwna9BepAGc0H0F+Uz5kGKOv3xcm99fTurvXUH0nw==}
|
resolution: {integrity: sha512-M7PpfpOzGdLeZPr2xhxXuvJeoXPEHMH40Rtv8BCGleRPolwna9BepAGc0H0F+Uz5kGKOv3xcm99fTurvXUH0nw==}
|
||||||
engines: {node: '>= 12.20.55'}
|
engines: {node: '>= 12.20.55'}
|
||||||
|
@ -2142,6 +2159,11 @@ packages:
|
||||||
/ms@2.1.2:
|
/ms@2.1.2:
|
||||||
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
|
||||||
|
|
||||||
|
/nan@2.17.0:
|
||||||
|
resolution: {integrity: sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==}
|
||||||
|
dev: false
|
||||||
|
optional: true
|
||||||
|
|
||||||
/natural-compare-lite@1.4.0:
|
/natural-compare-lite@1.4.0:
|
||||||
resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}
|
resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
|
@ -257,6 +257,13 @@ select option {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
.previewimage {
|
||||||
|
height: auto;
|
||||||
|
width: 540px;
|
||||||
|
}
|
||||||
|
.acTransparencyMode {
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
select {
|
select {
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button;
|
||||||
-moz-appearance: button;
|
-moz-appearance: button;
|
||||||
|
|
|
@ -120,6 +120,8 @@
|
||||||
alternativePaste: false,
|
alternativePaste: false,
|
||||||
automaticPatches: false,
|
automaticPatches: false,
|
||||||
mods: "none",
|
mods: "none",
|
||||||
|
transparencyMode: "acrylic",
|
||||||
|
autoStart: false,
|
||||||
useLegacyCapturer: false,
|
useLegacyCapturer: false,
|
||||||
inviteWebsocket: true,
|
inviteWebsocket: true,
|
||||||
mobileMode: false,
|
mobileMode: false,
|
||||||
|
@ -154,12 +156,14 @@
|
||||||
channel: options.channel,
|
channel: options.channel,
|
||||||
armcordCSP: true,
|
armcordCSP: true,
|
||||||
minimizeToTray: true,
|
minimizeToTray: true,
|
||||||
|
autoStart: true,
|
||||||
mobileMode: false,
|
mobileMode: false,
|
||||||
automaticPatches: false,
|
automaticPatches: false,
|
||||||
performanceMode: "none",
|
performanceMode: "none",
|
||||||
useLegacyCapturer: false,
|
useLegacyCapturer: false,
|
||||||
alternativePaste: false,
|
alternativePaste: false,
|
||||||
dynamicIcon: false,
|
dynamicIcon: false,
|
||||||
|
transparencyMode: "acrylic",
|
||||||
spellcheck: true,
|
spellcheck: true,
|
||||||
disableAutogain: false,
|
disableAutogain: false,
|
||||||
startMinimized: false,
|
startMinimized: false,
|
||||||
|
@ -180,9 +184,11 @@
|
||||||
spellcheck: true,
|
spellcheck: true,
|
||||||
disableAutogain: false,
|
disableAutogain: false,
|
||||||
mods: "none",
|
mods: "none",
|
||||||
|
autoStart: true,
|
||||||
dynamicIcon: false,
|
dynamicIcon: false,
|
||||||
useLegacyCapturer: false,
|
useLegacyCapturer: false,
|
||||||
startMinimized: false,
|
startMinimized: false,
|
||||||
|
transparencyMode: "acrylic",
|
||||||
alternativePaste: false,
|
alternativePaste: false,
|
||||||
performanceMode: "none",
|
performanceMode: "none",
|
||||||
trayIcon: "default",
|
trayIcon: "default",
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
if (window.armcord.version === "3.2.0") {
|
if (window.armcord.version === "3.2.0") {
|
||||||
console.log("Running a development build of ArmCord. Skipping updater.");
|
console.log("Running a development build of ArmCord. Skipping updater.");
|
||||||
} else {
|
} else {
|
||||||
const response = await fetch("https://armcord.xyz/latest.json");
|
const response = await fetch("https://armcord.xyz/msstore.json");
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
if (data.version !== window.armcord.version) {
|
if (data.version !== window.armcord.version) {
|
||||||
var elem = document.createElement("img");
|
var elem = document.createElement("img");
|
||||||
|
|
|
@ -14,6 +14,7 @@ import "./extensions/mods";
|
||||||
import "./tray";
|
import "./tray";
|
||||||
import {createCustomWindow, createNativeWindow, createTransparentWindow} from "./window";
|
import {createCustomWindow, createNativeWindow, createTransparentWindow} from "./window";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
import {WindowsStoreAutoLaunch} from "electron-winstore-auto-launch";
|
||||||
import {createTManagerWindow} from "./themeManager/main";
|
import {createTManagerWindow} from "./themeManager/main";
|
||||||
export let iconPath: string;
|
export let iconPath: string;
|
||||||
export let settings: any;
|
export let settings: any;
|
||||||
|
@ -68,6 +69,11 @@ if (!app.requestSingleInstanceLock()) {
|
||||||
checkIfConfigExists();
|
checkIfConfigExists();
|
||||||
injectElectronFlags();
|
injectElectronFlags();
|
||||||
app.whenReady().then(async () => {
|
app.whenReady().then(async () => {
|
||||||
|
if ((await getConfig("autoStart")) == true) {
|
||||||
|
WindowsStoreAutoLaunch.enable();
|
||||||
|
} else {
|
||||||
|
WindowsStoreAutoLaunch.disable();
|
||||||
|
}
|
||||||
if ((await getConfig("customIcon")) !== undefined ?? null) {
|
if ((await getConfig("customIcon")) !== undefined ?? null) {
|
||||||
iconPath = await getConfig("customIcon");
|
iconPath = await getConfig("customIcon");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<option value="" disabled selected hidden data-string="settings-theme"></option>
|
<option value="" disabled selected hidden data-string="settings-theme"></option>
|
||||||
<option value="default" data-string="settings-theme-default"></option>
|
<option value="default" data-string="settings-theme-default"></option>
|
||||||
<option value="native" data-string="settings-theme-native"></option>
|
<option value="native" data-string="settings-theme-native"></option>
|
||||||
|
<option value="transparent" data-string="settings-theme-transparent"></option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<p class="header" data-string="settings-theme"></p>
|
<p class="header" data-string="settings-theme"></p>
|
||||||
|
@ -32,10 +33,27 @@
|
||||||
<br />
|
<br />
|
||||||
<b data-string="settings-theme-native"></b> -
|
<b data-string="settings-theme-native"></b> -
|
||||||
<span data-string="settings-theme-desc3"></span>
|
<span data-string="settings-theme-desc3"></span>
|
||||||
|
<br />
|
||||||
|
<b data-string="settings-theme-transparent"></b> -
|
||||||
|
<span data-string="settings-theme-desc4"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
<div class="switch acTransparencyMode">
|
||||||
|
<select name="transparencyMode" data-setting="transparencyMode" class="left dropdown">
|
||||||
|
<option value="acrylic" data-string="settings-transparencyMode-acrylic"></option>
|
||||||
|
<option value="mica" data-string="settings-transparencyMode-mica"></option>
|
||||||
|
<option value="unified-acrylic" data-string="settings-transparencyMode-unifiedAcrylic"></option>
|
||||||
|
<option value="blurbehind" data-string="settings-transparencyMode-blurbehind"></option>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<p class="header" data-string="settings-transparencyMode"></p>
|
||||||
|
|
||||||
|
<div class="description">
|
||||||
|
<img class="previewimage" src="https://armcord.xyz/preview.gif" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
<div class="switch acCSP">
|
<div class="switch acCSP">
|
||||||
<label class="header">ArmCord CSP</label>
|
<label class="header">ArmCord CSP</label>
|
||||||
<input id="csp" class="tgl tgl-light left" data-setting="armcordCSP" type="checkbox" />
|
<input id="csp" class="tgl tgl-light left" data-setting="armcordCSP" type="checkbox" />
|
||||||
|
@ -59,7 +77,13 @@
|
||||||
<p class="description" data-string="settings-startMinimized-desc"></p>
|
<p class="description" data-string="settings-startMinimized-desc"></p>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
<div class="switch acAutoLaunch">
|
||||||
|
<label class="header" data-string="settings-autoLaunch"></label>
|
||||||
|
<input id="autoLaunch" class="tgl tgl-light left" data-setting="autoLaunch" type="checkbox" />
|
||||||
|
<label class="tgl-btn left" for="autoLaunch"></label>
|
||||||
|
<p class="description" data-string="settings-autoLaunch-desc"></p>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
<div class="switch acPatches">
|
<div class="switch acPatches">
|
||||||
<label class="header" data-string="settings-patches"></label>
|
<label class="header" data-string="settings-patches"></label>
|
||||||
<input id="patches" class="tgl tgl-light left" data-setting="automaticPatches" type="checkbox" />
|
<input id="patches" class="tgl tgl-light left" data-setting="automaticPatches" type="checkbox" />
|
||||||
|
|
|
@ -42,10 +42,12 @@ export function setup(): void {
|
||||||
windowStyle: "default",
|
windowStyle: "default",
|
||||||
channel: "stable",
|
channel: "stable",
|
||||||
armcordCSP: true,
|
armcordCSP: true,
|
||||||
|
autoStart: true,
|
||||||
minimizeToTray: true,
|
minimizeToTray: true,
|
||||||
automaticPatches: false,
|
automaticPatches: false,
|
||||||
alternativePaste: false,
|
alternativePaste: false,
|
||||||
mods: "none",
|
mods: "none",
|
||||||
|
transparencyMode: "acrylic",
|
||||||
spellcheck: true,
|
spellcheck: true,
|
||||||
performanceMode: "none",
|
performanceMode: "none",
|
||||||
skipSplash: false,
|
skipSplash: false,
|
||||||
|
@ -245,10 +247,11 @@ export interface Settings {
|
||||||
// Only used for external url warning dialog.
|
// Only used for external url warning dialog.
|
||||||
ignoreProtocolWarning?: boolean;
|
ignoreProtocolWarning?: boolean;
|
||||||
customIcon: string;
|
customIcon: string;
|
||||||
|
transparencyMode: "mica" | "acrylic" | "unified-acrylic" | "blurbehind";
|
||||||
windowStyle: string;
|
windowStyle: string;
|
||||||
channel: string;
|
channel: string;
|
||||||
armcordCSP: boolean;
|
armcordCSP: boolean;
|
||||||
|
autoStart: boolean;
|
||||||
minimizeToTray: boolean;
|
minimizeToTray: boolean;
|
||||||
automaticPatches: boolean;
|
automaticPatches: boolean;
|
||||||
alternativePaste: boolean;
|
alternativePaste: boolean;
|
||||||
|
|
|
@ -59,7 +59,7 @@ async function doAfterDefiningTheWindow(): Promise<void> {
|
||||||
}
|
}
|
||||||
if (transparency && process.platform === "win32") {
|
if (transparency && process.platform === "win32") {
|
||||||
import("@pyke/vibe").then(async (vibe) => {
|
import("@pyke/vibe").then(async (vibe) => {
|
||||||
vibe.applyEffect(mainWindow, "acrylic");
|
vibe.applyEffect(mainWindow, await getConfig("transparencyMode"));
|
||||||
vibe.forceTheme(mainWindow, "dark");
|
vibe.forceTheme(mainWindow, "dark");
|
||||||
if ((await getConfig("startMinimized")) == false) {
|
if ((await getConfig("startMinimized")) == false) {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue