cleaning up

This commit is contained in:
smartfrigde 2022-07-05 18:34:53 +02:00
parent 57fbc45315
commit 5d19f1844b
12 changed files with 26 additions and 28 deletions

View file

@ -26,7 +26,7 @@
"@types/node": "^17.0.42",
"@types/ws": "^8.5.3",
"copyfiles": "^2.4.1",
"electron": "^19.0.4",
"electron": "^19.0.7",
"electron-builder": "^23.0.3",
"husky": "^8.0.1",
"prettier": "^2.7.0",
@ -47,7 +47,7 @@
"linux": {
"icon": "build/icon.icns",
"category": "Network",
"maintainer": "smartfrigde@gmail.com",
"maintainer": "smartfridge@vivaldi.net",
"target": [
"deb",
"tar.gz",

View file

@ -90,18 +90,18 @@ button {
border: none;
border-radius: 5px;
padding: 8px;
transition: .17s ease;
transition: 0.17s ease;
}
button:hover {
background: var(--brand-experiment-560);
cursor: pointer;
transition: .17s ease;
transition: 0.17s ease;
}
button:active {
background: var(--brand-experiment-600);
cursor: pointer;
transition: .17s ease;
transition: 0.17s ease;
}
#save {
font-size: 15px;

View file

@ -135,18 +135,18 @@ button {
border: none;
border-radius: 4px;
padding: 8px 20px;
transition: .17s ease;
transition: 0.17s ease;
}
button:hover {
background: var(--brand-experiment-560);
cursor: pointer;
transition: .17s ease;
transition: 0.17s ease;
}
button:active {
background: var(--brand-experiment-600);
cursor: pointer;
transition: .17s ease;
transition: 0.17s ease;
}
/* }}} */

View file

@ -136,7 +136,6 @@
no-repeat 50% 50%;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='25' height='25'%3E%3Cstyle%3E.a%7Bfill:%23808080%7D%3C/style%3E%3Ccircle class='a' cx='15' cy='15' r='15'/%3E%3C/svg%3E")
no-repeat 50% 50%;
}
[armcord-platform="linux"] .titlebar #window-controls-container #quit:active {
background-color: var(--brand-experiment-600);
@ -299,7 +298,6 @@
no-repeat 50% 50%;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30' width='13' height='13'%3E%3Cstyle%3E.a%7Bfill:%23808080%7D%3C/style%3E%3Ccircle class='a' cx='15' cy='15' r='15'/%3E%3C/svg%3E")
no-repeat 50% 50%;
}
[armcord-platform="darwin"] .titlebar #window-controls-container:hover #maximize:active {
background-color: #13c11e;

View file

@ -12,9 +12,7 @@
<body>
<div class="container">
<div id="warning" class="hidden">
<p id="setup_offline">
You appear to be offline. Please connect to the internet and restart ArmCord.
</p>
<p id="setup_offline">You appear to be offline. Please connect to the internet and restart ArmCord.</p>
</div>
<div id="setup">
<div id="logo" class="hidden"></div>

View file

@ -8,7 +8,7 @@
</style>
<script>
window.onbeforeunload = function () {
const style = document.createElement('style');
const style = document.createElement("style");
style.textContent = "body { display: none; }";
document.head.append(style);
};
@ -30,7 +30,7 @@
text.innerHTML = await armcord.getLang("loading_screen_offline");
} else {
text.innerHTML = await armcord.getLang("loading_screen_start");
if (window.armcord.version === "DEV") {
if (window.armcord.version === "3.1.0") {
console.log("Running a development build of ArmCord. Skipping updater.");
} else {
const response = await fetch("https://armcord.xyz/latest.json");

View file

@ -26,9 +26,8 @@ export function injectTitlebar() {
addStyle(fs.readFileSync(titlebarcssPath, "utf8"));
addStyle(fs.readFileSync(wordmarkcssPath, "utf8"));
document.body.setAttribute("customTitlebar", "");
document.body.setAttribute("armcord-platform", os.platform());
document.body.setAttribute("armcord-platform", "win32");
var titlebar = document.getElementsByClassName("titlebar")[0];
var minimize = document.getElementById("minimize");
var maximize = document.getElementById("maximize");
var quit = document.getElementById("quit");

View file

@ -4,9 +4,7 @@ import { mainWindow } from "./window";
import { getConfig, getConfigLocation, setWindowState } from "./utils";
import * as path from "path";
import { createSettingsWindow } from "./settings/main";
import { platform } from "process";
let tray: any = null;
let defaultIcon = "ac_plug_colored";
app.whenReady().then(async () => {
let finishedSetup = (await getConfig("doneSetup"));
if ((await getConfig("windowStyle")) == "basic") {
@ -89,6 +87,12 @@ app.whenReady().then(async () => {
{
type: "separator"
},
{
label: `Open ${clientName}`,
click: function () {
mainWindow.show();
}
},
{
label: "Open Settings",
click: function () {

View file

@ -1,7 +1,6 @@
import * as fs from "fs";
import { app, dialog } from "electron";
import path from "path";
import { defaultMaxListeners } from "events";
export var firstRun: boolean;
export var isSetup: boolean;
export var contentPath: string;