Explorar el Código

Add a background-brightness option

master
Fen Dweller hace 4 años
padre
commit
f7e49e9d60
Se han modificado 1 ficheros con 34 adiciones y 1 borrados
  1. +34
    -1
      macrovision.js

+ 34
- 1
macrovision.js Ver fichero

@@ -723,7 +723,21 @@ function drawScales(ifDirty = false) {

ctx.beginPath();
ctx.rect(0, 0, ctx.canvas.width / deviceScale, ctx.canvas.height / deviceScale);
ctx.fillStyle = "#333";

switch(config.background){
case "black":
ctx.fillStyle = "#000";
break;
case "dark":
ctx.fillStyle = "#111";
break;
case "medium":
ctx.fillStyle = "#333";
break;
case "light":
ctx.fillStyle = "#555";
break;
}
ctx.fill();


@@ -2500,6 +2514,25 @@ const settingsData = {
toggleBodyClass("toggle-entity-glow", param);
}
},
"background-brightness": {
name: "Background Brightness",
desc: "How bright the background is",
type: "select",
default: "medium",
options: [
"black",
"dark",
"medium",
"light",
],
get value() {
return config.background;
},
set value(param) {
config.background = param;
drawScales();
}
},
"smoothing": {
name: "Smoothing",
desc: "Smooth out movements and size changes. Disable for better performance.",


Cargando…
Cancelar
Guardar