2018-01-07 21:42:19 +01:00
|
|
|
package webcontroller
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"net/http"
|
|
|
|
)
|
|
|
|
|
2021-11-28 15:58:04 +01:00
|
|
|
func userStyle(r *http.Request) pixeldrainStyleSheet {
|
|
|
|
// Get the chosen style from the URL
|
|
|
|
var style = r.URL.Query().Get("style")
|
2018-01-07 21:42:19 +01:00
|
|
|
|
2021-11-28 15:58:04 +01:00
|
|
|
// If the URL style was empty use the cookie value
|
|
|
|
if style == "" {
|
|
|
|
if cookie, err := r.Cookie("style"); err == nil {
|
|
|
|
style = cookie.Value
|
2018-07-11 22:46:44 +02:00
|
|
|
}
|
|
|
|
}
|
2018-01-07 21:42:19 +01:00
|
|
|
|
2021-11-28 15:58:04 +01:00
|
|
|
switch style {
|
|
|
|
case "classic":
|
|
|
|
return pixeldrainClassicStyle
|
|
|
|
case "solarized_dark":
|
|
|
|
return solarizedDarkStyle
|
|
|
|
case "sunny":
|
|
|
|
return sunnyPixeldrainStyle
|
|
|
|
case "maroon":
|
|
|
|
return maroonStyle
|
|
|
|
case "hacker":
|
|
|
|
return hackerStyle
|
|
|
|
case "canta":
|
|
|
|
return cantaPixeldrainStyle
|
|
|
|
case "arc":
|
|
|
|
return arcPixeldrainStyle
|
|
|
|
case "deepsea":
|
|
|
|
return deepseaPixeldrainStyle
|
2022-01-10 21:59:07 +01:00
|
|
|
case "skeuos":
|
|
|
|
return skeuosPixeldrainStyle
|
2021-11-28 15:58:04 +01:00
|
|
|
case "default":
|
|
|
|
fallthrough // use default case
|
|
|
|
default:
|
2021-12-27 09:30:57 +01:00
|
|
|
return defaultPixeldrainStyle
|
2021-11-28 15:58:04 +01:00
|
|
|
}
|
2019-12-23 23:56:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type pixeldrainStyleSheet struct {
|
|
|
|
TextColor hsl
|
|
|
|
InputColor hsl // Buttons, text fields
|
|
|
|
InputTextColor hsl
|
|
|
|
HighlightColor hsl // Links, highlighted buttons, list navigation
|
|
|
|
HighlightTextColor hsl // Text on buttons
|
|
|
|
DangerColor hsl
|
|
|
|
ScrollbarForegroundColor hsl
|
|
|
|
ScrollbarHoverColor hsl
|
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color hsl // Deepest and darkest layer
|
|
|
|
Layer2Color hsl
|
|
|
|
Layer3Color hsl
|
|
|
|
Layer4Color hsl // Highest and brightest layer
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor hsl
|
2019-12-23 23:56:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s pixeldrainStyleSheet) String() string {
|
|
|
|
return fmt.Sprintf(
|
2018-01-07 21:42:19 +01:00
|
|
|
`:root {
|
2020-01-13 16:24:06 +01:00
|
|
|
--text_color: #%s;
|
|
|
|
--input_color: #%s;
|
|
|
|
--input_color_dark: #%s;
|
|
|
|
--input_text_color: #%s;
|
|
|
|
--highlight_color: #%s;
|
|
|
|
--highlight_color_dark: #%s;
|
|
|
|
--highlight_text_color: #%s;
|
|
|
|
--danger_color: #%s;
|
|
|
|
--danger_color_dark: #%s;
|
|
|
|
--scrollbar_foreground_color: #%s;
|
|
|
|
--scrollbar_hover_color: #%s;
|
|
|
|
--scrollbar_background_color: #%s;
|
|
|
|
|
2020-01-13 21:50:53 +01:00
|
|
|
--layer_1_color: #%s;
|
|
|
|
--layer_1_color_border: #%s;
|
|
|
|
--layer_2_color: #%s;
|
|
|
|
--layer_2_color_border: #%s;
|
|
|
|
--layer_3_color: #%s;
|
|
|
|
--layer_3_color_border: #%s;
|
2021-01-08 00:48:07 +01:00
|
|
|
--layer_4_color: #%s;
|
|
|
|
--layer_4_color_border: #%s;
|
2018-07-11 22:46:44 +02:00
|
|
|
|
2020-01-13 16:24:06 +01:00
|
|
|
--shadow_color: #%s;
|
2019-02-18 13:37:41 +01:00
|
|
|
}`,
|
2020-01-13 16:24:06 +01:00
|
|
|
s.TextColor.RGB(),
|
|
|
|
s.InputColor.RGB(),
|
2022-01-10 21:59:07 +01:00
|
|
|
s.InputColor.Add(0, 0, -.02).RGB(),
|
2020-01-13 16:24:06 +01:00
|
|
|
s.InputTextColor.RGB(),
|
|
|
|
s.HighlightColor.RGB(),
|
2022-01-10 21:59:07 +01:00
|
|
|
s.HighlightColor.Add(0, 0, -.02).RGB(),
|
2020-01-13 16:24:06 +01:00
|
|
|
s.HighlightTextColor.RGB(),
|
|
|
|
s.DangerColor.RGB(),
|
2022-01-10 21:59:07 +01:00
|
|
|
s.DangerColor.Add(0, 0, -.02).RGB(),
|
2020-01-13 16:24:06 +01:00
|
|
|
s.ScrollbarForegroundColor.RGB(),
|
|
|
|
s.ScrollbarHoverColor.RGB(),
|
2022-01-11 00:15:23 +01:00
|
|
|
s.Layer2Color.RGB(), // Scrollbar background
|
2020-01-13 16:24:06 +01:00
|
|
|
s.Layer1Color.RGB(),
|
2022-01-10 21:59:07 +01:00
|
|
|
s.Layer1Color.Add(0, 0, .05).RGB(),
|
2020-01-13 16:24:06 +01:00
|
|
|
s.Layer2Color.RGB(),
|
2022-01-10 21:59:07 +01:00
|
|
|
s.Layer2Color.Add(0, 0, .05).RGB(),
|
2020-01-13 16:24:06 +01:00
|
|
|
s.Layer3Color.RGB(),
|
2022-01-10 21:59:07 +01:00
|
|
|
s.Layer3Color.Add(0, 0, .05).RGB(),
|
2021-01-08 00:48:07 +01:00
|
|
|
s.Layer4Color.RGB(),
|
2022-01-10 21:59:07 +01:00
|
|
|
s.Layer4Color.Add(0, 0, .05).RGB(),
|
2020-01-13 16:24:06 +01:00
|
|
|
s.ShadowColor.RGB(),
|
2019-12-23 23:56:57 +01:00
|
|
|
)
|
2018-01-07 21:42:19 +01:00
|
|
|
}
|
2018-07-11 22:46:44 +02:00
|
|
|
|
2019-02-18 22:42:20 +01:00
|
|
|
type hsl struct {
|
2018-07-11 22:46:44 +02:00
|
|
|
Hue int
|
|
|
|
Saturation float64
|
|
|
|
Lightness float64
|
|
|
|
}
|
|
|
|
|
2020-01-13 16:24:06 +01:00
|
|
|
func (orig hsl) RGB() string {
|
|
|
|
var r, g, b, q, p float64
|
|
|
|
var h, s, l = float64(orig.Hue) / 360, orig.Saturation, orig.Lightness
|
|
|
|
|
|
|
|
if s == 0 {
|
|
|
|
r, g, b = l, l, l
|
|
|
|
} else {
|
|
|
|
var hue2rgb = func(p, q, t float64) float64 {
|
|
|
|
if t < 0 {
|
|
|
|
t++
|
|
|
|
}
|
|
|
|
if t > 1 {
|
|
|
|
t--
|
|
|
|
}
|
|
|
|
|
|
|
|
if t < 1.0/6.0 {
|
|
|
|
return p + (q-p)*6*t
|
|
|
|
} else if t < 1.0/2.0 {
|
|
|
|
return q
|
|
|
|
} else if t < 2.0/3.0 {
|
|
|
|
return p + (q-p)*(2.0/3.0-t)*6
|
|
|
|
}
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
if l < 0.5 {
|
|
|
|
q = l * (1 + s)
|
|
|
|
} else {
|
|
|
|
q = l + s - l*s
|
|
|
|
}
|
|
|
|
|
|
|
|
p = 2*l - q
|
|
|
|
r = hue2rgb(p, q, h+1.0/3.0)
|
|
|
|
g = hue2rgb(p, q, h)
|
|
|
|
b = hue2rgb(p, q, h-1.0/3.0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return fmt.Sprintf("%02x%02x%02x", int(r*255), int(g*255), int(b*255))
|
|
|
|
}
|
|
|
|
|
2018-07-11 22:46:44 +02:00
|
|
|
// Add returns a NEW HSL struct, it doesn't modify the current one
|
2022-01-10 21:59:07 +01:00
|
|
|
func (h hsl) Add(hue int, saturation float64, lightness float64) hsl {
|
2019-02-18 22:42:20 +01:00
|
|
|
var new = hsl{
|
|
|
|
h.Hue + hue,
|
|
|
|
h.Saturation + saturation,
|
|
|
|
h.Lightness + lightness,
|
2018-07-11 22:46:44 +02:00
|
|
|
}
|
|
|
|
// Hue bounds correction
|
|
|
|
if new.Hue < 0 {
|
|
|
|
new.Hue += 360
|
|
|
|
} else if new.Hue > 360 {
|
|
|
|
new.Hue -= 360
|
|
|
|
}
|
|
|
|
// Saturation bounds check
|
|
|
|
if new.Saturation < 0 {
|
|
|
|
new.Saturation = 0
|
|
|
|
} else if new.Saturation > 1 {
|
|
|
|
new.Saturation = 1
|
|
|
|
}
|
|
|
|
// Lightness bounds check
|
|
|
|
if new.Lightness < 0 {
|
|
|
|
new.Lightness = 0
|
|
|
|
} else if new.Lightness > 1 {
|
|
|
|
new.Lightness = 1
|
|
|
|
}
|
|
|
|
|
|
|
|
return new
|
|
|
|
}
|
|
|
|
|
|
|
|
// Following are all the available styles
|
|
|
|
|
2019-02-18 22:42:20 +01:00
|
|
|
var defaultPixeldrainStyle = pixeldrainStyleSheet{
|
2021-06-17 11:27:31 +02:00
|
|
|
TextColor: hsl{0, 0, .8},
|
2021-09-10 21:08:31 +02:00
|
|
|
InputColor: hsl{266, .85, .38},
|
2021-06-17 11:27:31 +02:00
|
|
|
InputTextColor: hsl{0, 0, 1},
|
2021-09-10 21:08:31 +02:00
|
|
|
HighlightColor: hsl{117, .63, .46},
|
2021-06-17 11:27:31 +02:00
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
2021-09-10 21:08:31 +02:00
|
|
|
DangerColor: hsl{357, .63, .46},
|
2022-01-11 00:05:58 +01:00
|
|
|
ScrollbarForegroundColor: hsl{266, .85, .40},
|
2021-09-10 21:08:31 +02:00
|
|
|
ScrollbarHoverColor: hsl{266, .85, .50},
|
2021-06-17 11:27:31 +02:00
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{275, .8, .07},
|
|
|
|
Layer2Color: hsl{275, .75, .12},
|
|
|
|
Layer3Color: hsl{275, .7, .18},
|
|
|
|
Layer4Color: hsl{275, .65, .24},
|
2021-06-17 11:27:31 +02:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
|
|
|
}
|
|
|
|
|
|
|
|
var pixeldrainClassicStyle = pixeldrainStyleSheet{
|
2021-01-12 14:18:11 +01:00
|
|
|
TextColor: hsl{0, 0, .8},
|
2021-09-23 20:38:17 +02:00
|
|
|
InputColor: hsl{0, 0, .25},
|
2019-07-06 18:41:16 +02:00
|
|
|
InputTextColor: hsl{0, 0, 1},
|
2021-01-11 21:43:04 +01:00
|
|
|
HighlightColor: hsl{89, .60, .45},
|
2019-07-06 18:41:16 +02:00
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
|
|
|
DangerColor: hsl{339, .65, .31},
|
2022-01-11 00:05:58 +01:00
|
|
|
ScrollbarForegroundColor: hsl{0, 0, .40},
|
|
|
|
ScrollbarHoverColor: hsl{0, 0, .50},
|
2019-07-06 18:41:16 +02:00
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{0, 0, .08},
|
|
|
|
Layer2Color: hsl{0, 0, .11},
|
|
|
|
Layer3Color: hsl{0, 0, .15},
|
|
|
|
Layer4Color: hsl{0, 0, .18},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2019-07-06 18:41:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var sunnyPixeldrainStyle = pixeldrainStyleSheet{
|
|
|
|
TextColor: hsl{0, 0, .1},
|
2020-03-10 17:06:52 +01:00
|
|
|
InputColor: hsl{0, 0, .96}, // hsl(0, 0%, 96%)
|
2019-07-06 18:41:16 +02:00
|
|
|
InputTextColor: hsl{0, 0, .1},
|
2020-03-10 17:06:52 +01:00
|
|
|
HighlightColor: hsl{89, .74, .5}, // hsl(89, 73%, 50%)
|
2019-07-06 18:41:16 +02:00
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
2020-03-10 17:06:52 +01:00
|
|
|
DangerColor: hsl{345, .99, .33}, // hsl(345, 99%, 33%)
|
2019-07-06 18:41:16 +02:00
|
|
|
ScrollbarForegroundColor: hsl{0, 0, .30},
|
2019-09-18 22:23:12 +02:00
|
|
|
ScrollbarHoverColor: hsl{0, 0, .40},
|
2019-07-06 18:41:16 +02:00
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{0, 0, .98}, // hsl(0, 0%, 13%)
|
|
|
|
Layer2Color: hsl{0, 1, 1},
|
|
|
|
Layer3Color: hsl{0, 1, 1},
|
|
|
|
Layer4Color: hsl{0, 1, 1},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
2022-01-03 14:02:50 +01:00
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2019-02-18 22:42:20 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
var solarizedDarkStyle = pixeldrainStyleSheet{
|
2019-07-06 18:41:16 +02:00
|
|
|
TextColor: hsl{0, 0, .75},
|
2019-07-16 22:07:10 +02:00
|
|
|
InputColor: hsl{192, .95, .25},
|
2019-07-06 18:41:16 +02:00
|
|
|
InputTextColor: hsl{0, 0, 1},
|
|
|
|
HighlightColor: hsl{145, .63, .42},
|
2019-07-16 22:07:10 +02:00
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
2019-07-06 18:41:16 +02:00
|
|
|
DangerColor: hsl{343, .63, .42},
|
|
|
|
ScrollbarForegroundColor: hsl{192, .95, .30},
|
2019-09-18 22:23:12 +02:00
|
|
|
ScrollbarHoverColor: hsl{192, .95, .40},
|
2019-02-18 22:42:20 +01:00
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{192, .87, .09},
|
|
|
|
Layer2Color: hsl{192, .81, .14},
|
|
|
|
Layer3Color: hsl{192, .95, .17},
|
|
|
|
Layer4Color: hsl{192, .99, .19},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2018-07-11 22:46:44 +02:00
|
|
|
}
|
|
|
|
|
2019-02-18 22:42:20 +01:00
|
|
|
var maroonStyle = pixeldrainStyleSheet{
|
2021-12-25 11:18:58 +01:00
|
|
|
TextColor: hsl{0, 0, .8},
|
2021-12-25 12:39:04 +01:00
|
|
|
InputColor: hsl{0, .87, .40}, // hsl(0, 87%, 40%)
|
2019-07-06 18:41:16 +02:00
|
|
|
InputTextColor: hsl{0, 0, 1},
|
2021-12-25 12:39:04 +01:00
|
|
|
HighlightColor: hsl{137, 1, .37}, //hsl(137, 100%, 37%)
|
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
|
|
|
DangerColor: hsl{9, .96, .42}, //hsl(9, 96%, 42%)
|
2019-08-11 17:16:18 +02:00
|
|
|
ScrollbarForegroundColor: hsl{0, .75, .3},
|
2019-09-18 22:23:12 +02:00
|
|
|
ScrollbarHoverColor: hsl{0, .75, .4},
|
2019-02-18 22:42:20 +01:00
|
|
|
|
2021-12-25 12:39:04 +01:00
|
|
|
Layer1Color: hsl{0, .7, .05},
|
|
|
|
Layer2Color: hsl{0, .8, .08}, // hsl{0, .8, .15},
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer3Color: hsl{0, .9, .14},
|
|
|
|
Layer4Color: hsl{0, .9, .20},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2018-07-11 22:46:44 +02:00
|
|
|
}
|
2019-03-31 21:06:52 +02:00
|
|
|
|
|
|
|
var hackerStyle = pixeldrainStyleSheet{
|
2019-07-06 18:41:16 +02:00
|
|
|
TextColor: hsl{0, 0, .8},
|
2020-03-10 17:06:52 +01:00
|
|
|
InputColor: hsl{120, .5, .1}, // hsl(120, 50%, 10%)
|
2019-07-06 18:41:16 +02:00
|
|
|
InputTextColor: hsl{0, 0, 1},
|
|
|
|
HighlightColor: hsl{120, 1, .5},
|
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
2020-03-10 17:06:52 +01:00
|
|
|
DangerColor: hsl{0, 1, .4},
|
2019-08-11 17:16:18 +02:00
|
|
|
ScrollbarForegroundColor: hsl{120, .5, .25},
|
2019-09-18 22:23:12 +02:00
|
|
|
ScrollbarHoverColor: hsl{120, .5, .35},
|
2019-03-31 21:06:52 +02:00
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{0, 0, 0},
|
|
|
|
Layer2Color: hsl{0, 0, .03},
|
|
|
|
Layer3Color: hsl{120, .3, .08},
|
|
|
|
Layer4Color: hsl{120, .5, .12},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2019-07-06 18:41:16 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var cantaPixeldrainStyle = pixeldrainStyleSheet{
|
|
|
|
TextColor: hsl{0, 0, .8},
|
2020-03-10 17:06:52 +01:00
|
|
|
InputColor: hsl{167, .06, .30}, // hsl(167, 6%, 30%)
|
2019-07-06 18:41:16 +02:00
|
|
|
InputTextColor: hsl{0, 0, 1},
|
2020-03-10 17:06:52 +01:00
|
|
|
HighlightColor: hsl{165, 1, .40}, // hsl(165, 100%, 40%)
|
2019-07-06 18:41:16 +02:00
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
2020-03-10 17:06:52 +01:00
|
|
|
DangerColor: hsl{40, 1, .5}, // hsl(40, 100%, 50%)
|
2019-11-21 20:25:06 +01:00
|
|
|
ScrollbarForegroundColor: hsl{204, .05, .78}, // hsl(204, 5%, 78%)
|
|
|
|
ScrollbarHoverColor: hsl{204, .05, .88},
|
2019-07-06 18:41:16 +02:00
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{180, .04, .16},
|
|
|
|
Layer2Color: hsl{168, .05, .21},
|
|
|
|
Layer3Color: hsl{170, .05, .26},
|
|
|
|
Layer4Color: hsl{163, .04, .31},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2019-03-31 21:06:52 +02:00
|
|
|
}
|
2019-07-16 22:07:10 +02:00
|
|
|
|
|
|
|
var arcPixeldrainStyle = pixeldrainStyleSheet{
|
2019-07-17 23:19:57 +02:00
|
|
|
TextColor: hsl{0, 0, 1},
|
|
|
|
InputColor: hsl{218, .16, .30},
|
|
|
|
InputTextColor: hsl{215, .19, .75},
|
|
|
|
HighlightColor: hsl{212, .71, .60},
|
|
|
|
HighlightTextColor: hsl{215, .19, .9},
|
|
|
|
DangerColor: hsl{357, .53, .57}, // hsl(357, 53%, 57%)
|
|
|
|
ScrollbarForegroundColor: hsl{222, .08, .44}, // hsl(222, 8%, 44%)
|
2019-09-18 22:23:12 +02:00
|
|
|
ScrollbarHoverColor: hsl{222, .08, .54}, // hsl(222, 8%, 44%)
|
2019-07-17 23:19:57 +02:00
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{215, .17, .19},
|
|
|
|
Layer2Color: hsl{227, .14, .25}, // hsl(227, 14%, 25%)
|
|
|
|
Layer3Color: hsl{223, .12, .29},
|
|
|
|
Layer4Color: hsl{223, .10, .32},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2019-09-18 22:23:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
var deepseaPixeldrainStyle = pixeldrainStyleSheet{
|
|
|
|
TextColor: hsl{0, 0, .7},
|
2020-03-10 18:04:30 +01:00
|
|
|
InputColor: hsl{41, .58, .47},
|
2019-09-18 22:23:12 +02:00
|
|
|
InputTextColor: hsl{0, 0, 0},
|
|
|
|
HighlightColor: hsl{5, .77, .55},
|
|
|
|
HighlightTextColor: hsl{0, 0, 0},
|
|
|
|
DangerColor: hsl{5, .77, .55},
|
|
|
|
ScrollbarForegroundColor: hsl{162, .28, .23}, // hsl(162, 28%, 23%)
|
|
|
|
ScrollbarHoverColor: hsl{12, .38, .26}, // hsl(12, 38%, 26%)
|
|
|
|
|
2021-09-23 20:38:17 +02:00
|
|
|
Layer1Color: hsl{160, .27, .05},
|
|
|
|
Layer2Color: hsl{163, .26, .09}, // hsl(163, 26%, 11%)
|
|
|
|
Layer3Color: hsl{161, .28, .12}, // hsl(161, 28%, 14%)
|
|
|
|
Layer4Color: hsl{161, .32, .15},
|
2020-03-10 17:06:52 +01:00
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
2019-07-16 22:07:10 +02:00
|
|
|
}
|
2022-01-10 21:59:07 +01:00
|
|
|
|
|
|
|
var skeuosPixeldrainStyle = pixeldrainStyleSheet{
|
|
|
|
TextColor: hsl{60, .06, .93}, // hsl(60, 6%, 93%)
|
|
|
|
InputColor: hsl{226, .15, .23}, //hsl(226, 15%, 23%)
|
|
|
|
InputTextColor: hsl{60, .06, .93},
|
|
|
|
HighlightColor: hsl{282, .65, .54}, // hsl(282, 65%, 54%)
|
|
|
|
HighlightTextColor: hsl{0, 0, 1},
|
|
|
|
DangerColor: hsl{0, .79, .43}, // hsl(0, 79%, 43%)
|
|
|
|
ScrollbarForegroundColor: hsl{220, .02, .62}, // hsl(220, 2%, 62%)
|
|
|
|
ScrollbarHoverColor: hsl{220, .02, .80},
|
|
|
|
|
|
|
|
Layer1Color: hsl{232, .14, .11}, //hsl(232, 14%, 11%)
|
|
|
|
Layer2Color: hsl{229, .14, .16}, // hsl(229, 14%, 16%)
|
|
|
|
Layer3Color: hsl{225, .14, .17}, // hsl(225, 14%, 17%)
|
|
|
|
Layer4Color: hsl{226, .14, .18}, // hsl(226, 14%, 18%)
|
|
|
|
|
|
|
|
ShadowColor: hsl{0, 0, 0},
|
|
|
|
}
|