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;
background-size: cover;
background-position: center;
}
body {
background: transparent;
background: #0000;
font-family: "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
transition: opacity .10s var(--appleEase);
}
@ -41,6 +39,10 @@ body[loading] {
pointer-events: none;
}
body[platform='linux'] {
background:#222;
}
*,
*:before,
*:after {
@ -134,11 +136,6 @@ body[loading] {
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 {
-webkit-appearance: none;
height: 4px;

View file

@ -23,7 +23,7 @@
<link rel="manifest" href="./manifest.json?v=2">
</head>
<body oncontextmenu="return false;" loading="1">
<body oncontextmenu="return false;" loading="1" platform="<%= env.platform %>">
<div id="app">
<div id="app-main">
<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 windowStateKeeper = require("electron-window-state");
const request = require('request');
const os = require('os');
const CiderBase = {
@ -109,6 +110,11 @@ const CiderBase = {
}
return win
},
EnvironmentVariables: {
"env": {
platform: os.platform()
}
},
async InitWebServer() {
const webRemotePort = await getPort({port : 9000});
const webapp = express();
@ -119,7 +125,7 @@ const CiderBase = {
webapp.use(express.static(webRemotePath));
webapp.get('/', function (req, res) {
//res.sendFile(path.join(webRemotePath, 'index_old.html'));
res.render("main")
res.render("main", CiderBase.EnvironmentVariables)
});
webapp.listen(webRemotePort, function () {
console.log(`Web Remote listening on port ${webRemotePort}`);