sparing the eyes of gahnoo slash linox users

This commit is contained in:
booploops 2021-12-08 13:39:23 -08:00
parent cb3f18874d
commit 0286c8e851
3 changed files with 14 additions and 11 deletions

View file

@ -29,10 +29,8 @@ body {
box-sizing: border-box; box-sizing: border-box;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
} background: #0000;
font-family: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
body {
background: transparent;
transition: opacity .10s var(--appleEase); transition: opacity .10s var(--appleEase);
} }
@ -41,6 +39,10 @@ body[loading] {
pointer-events: none; pointer-events: none;
} }
body[platform='linux'] {
background:#222;
}
*, *,
*:before, *:before,
*:after { *:after {
@ -134,11 +136,6 @@ body[loading] {
opacity:0; opacity:0;
} }
body {
background: #0000;
font-family: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
input[type="range"].web-slider { input[type="range"].web-slider {
-webkit-appearance: none; -webkit-appearance: none;
height: 4px; height: 4px;

View file

@ -23,7 +23,7 @@
<link rel="manifest" href="./manifest.json?v=2"> <link rel="manifest" href="./manifest.json?v=2">
</head> </head>
<body oncontextmenu="return false;" loading="1"> <body oncontextmenu="return false;" loading="1" platform="<%= env.platform %>">
<div id="app"> <div id="app">
<div id="app-main"> <div id="app-main">
<div class="mv-chrome" v-if="chrome.topChromeVisible == false"></div> <div class="mv-chrome" v-if="chrome.topChromeVisible == false"></div>

View file

@ -5,6 +5,7 @@ const express = require("express");
const path = require("path"); const path = require("path");
const windowStateKeeper = require("electron-window-state"); const windowStateKeeper = require("electron-window-state");
const request = require('request'); const request = require('request');
const os = require('os');
const CiderBase = { const CiderBase = {
@ -109,6 +110,11 @@ const CiderBase = {
} }
return win return win
}, },
EnvironmentVariables: {
"env": {
platform: os.platform()
}
},
async InitWebServer() { async InitWebServer() {
const webRemotePort = await getPort({port : 9000}); const webRemotePort = await getPort({port : 9000});
const webapp = express(); const webapp = express();
@ -119,7 +125,7 @@ const CiderBase = {
webapp.use(express.static(webRemotePath)); webapp.use(express.static(webRemotePath));
webapp.get('/', function (req, res) { webapp.get('/', function (req, res) {
//res.sendFile(path.join(webRemotePath, 'index_old.html')); //res.sendFile(path.join(webRemotePath, 'index_old.html'));
res.render("main") res.render("main", CiderBase.EnvironmentVariables)
}); });
webapp.listen(webRemotePort, function () { webapp.listen(webRemotePort, function () {
console.log(`Web Remote listening on port ${webRemotePort}`); console.log(`Web Remote listening on port ${webRemotePort}`);