2019-02-18 13:37:41 +01:00
|
|
|
{{define "user_style"}}
|
|
|
|
<style>
|
|
|
|
{{.UserStyle}}
|
2020-01-28 12:51:21 +01:00
|
|
|
{{template "layout.css" .}}
|
2019-02-18 13:37:41 +01:00
|
|
|
</style>
|
|
|
|
{{end}}
|
2021-10-12 21:25:43 +02:00
|
|
|
|
|
|
|
{{ define "user_style_js" }}
|
|
|
|
<script>
|
|
|
|
window.style = {
|
2022-01-17 17:40:03 +01:00
|
|
|
textColor: "{{.Style.Text.RGB}}",
|
|
|
|
inputColor: "{{.Style.Input.RGB}}",
|
|
|
|
inputTextColor: "{{.Style.InputText.RGB}}",
|
|
|
|
highlightColor: "{{.Style.Highlight.RGB}}",
|
|
|
|
dangerColor: "{{.Style.Danger.RGB}}",
|
|
|
|
layer1Color: "{{.Style.Layer1.RGB}}",
|
|
|
|
layer2Color: "{{.Style.Layer2.RGB}}",
|
|
|
|
layer3Color: "{{.Style.Layer3.RGB}}",
|
|
|
|
layer4Color: "{{.Style.Layer4.RGB}}",
|
2022-01-25 20:37:21 +01:00
|
|
|
chart1Color: "{{.Style.Chart1.RGB}}",
|
|
|
|
chart2Color: "{{.Style.Chart2.RGB}}",
|
|
|
|
chart3Color: "{{.Style.Chart3.RGB}}",
|
2021-10-12 21:25:43 +02:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
{{ end }}
|