But what if it was purple?

This commit is contained in:
2021-06-17 11:27:31 +02:00
parent 8817e7cb16
commit ee3553ac6f
3 changed files with 27 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ EmbedWindow.prototype.updateCode = function () {
this.textarea.value = `<iframe ` +
`src="${url}" ` +
`style="border: none; width: 640px; max-width: 100%; height: 400px; border-radius: 6px;"` +
`style="border: none; width: 800px; max-width: 100%; height: 500px; border-radius: 6px;"` +
`></iframe>`
}

View File

@@ -15,6 +15,7 @@
</p>
<div class="indent">
<input type="radio" id="style_default" name="style"><label for="style_default">Pixeldrain Style</label><br/>
<input type="radio" id="style_classic" name="style"><label for="style_classic">Pixeldrain classic (gray)</label><br/>
<input type="radio" id="style_solarized_dark" name="style"><label for="style_solarized_dark">Solarized Dark Style</label><br/>
<input type="radio" id="style_maroon" name="style"><label for="style_maroon">Maroon Style</label><br/>
<input type="radio" id="style_hacker" name="style"><label for="style_hacker">Hacker Style</label><br/>

View File

@@ -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},