From ee3553ac6fcffb15e76ea4574076f1aa3225a862 Mon Sep 17 00:00:00 2001
From: Wim Brand
Date: Thu, 17 Jun 2021 11:27:31 +0200
Subject: [PATCH] But what if it was purple?
---
res/include/script/file_viewer/EmbedWindow.js | 2 +-
res/template/appearance.html | 1 +
webcontroller/user_style.go | 25 +++++++++++++++++++
3 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/res/include/script/file_viewer/EmbedWindow.js b/res/include/script/file_viewer/EmbedWindow.js
index 1a1a9be..38ef9ea 100644
--- a/res/include/script/file_viewer/EmbedWindow.js
+++ b/res/include/script/file_viewer/EmbedWindow.js
@@ -45,7 +45,7 @@ EmbedWindow.prototype.updateCode = function () {
this.textarea.value = ``
}
diff --git a/res/template/appearance.html b/res/template/appearance.html
index 2671833..a23b388 100644
--- a/res/template/appearance.html
+++ b/res/template/appearance.html
@@ -15,6 +15,7 @@
+
diff --git a/webcontroller/user_style.go b/webcontroller/user_style.go
index c26a13c..b3c9d7a 100644
--- a/webcontroller/user_style.go
+++ b/webcontroller/user_style.go
@@ -12,6 +12,8 @@ func userStyle(r *http.Request) (style pixeldrainStyleSheet) {
selectedStyle = defaultPixeldrainStyle
} else {
switch cookie.Value {
+ case "classic":
+ selectedStyle = pixeldrainClassicStyle
case "solarized_dark":
selectedStyle = solarizedDarkStyle
case "sunny":
@@ -205,6 +207,29 @@ func (h hsl) add(hue int, saturation float64, lightness float64) hsl {
// Following are all the available styles
var defaultPixeldrainStyle = pixeldrainStyleSheet{
+ TextColor: hsl{0, 0, .8},
+ InputColor: hsl{242, .42, .3},
+ InputTextColor: hsl{0, 0, 1},
+ HighlightColor: hsl{89, .60, .45},
+ HighlightTextColor: hsl{0, 0, 0},
+ DangerColor: hsl{339, .65, .31},
+ ScrollbarForegroundColor: hsl{272, .5, .35},
+ ScrollbarHoverColor: hsl{272, .5, .5},
+ ScrollbarBackgroundColor: hsl{270, .5, .07},
+
+ Layer1Color: hsl{270, .5, .04},
+ Layer1Shadow: 3,
+ Layer2Color: hsl{270, .5, .07},
+ Layer2Shadow: 5,
+ Layer3Color: hsl{272, .45, .12},
+ Layer3Shadow: 7,
+ Layer4Color: hsl{272, .45, .19},
+ Layer4Shadow: 9,
+
+ ShadowColor: hsl{0, 0, 0},
+}
+
+var pixeldrainClassicStyle = pixeldrainStyleSheet{
TextColor: hsl{0, 0, .8},
InputColor: hsl{0, 0, .2},
InputTextColor: hsl{0, 0, 1},