Documentation ¶
Overview ¶
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Index ¶
Constants ¶
View Source
const KeyNew = "new"
Variables ¶
View Source
var ThemeDefault = func() *Theme { nbl := "#72a0c1" if o := util.GetEnv("app_nav_color_light"); o != "" { nbl = o } nbd := "#00415d" if o := util.GetEnv("app_nav_color_dark"); o != "" { nbd = o } return &Theme{ Key: "default", Light: &Colors{ Border: "1px solid #dddddd", LinkDecoration: "none", Foreground: "#000000", ForegroundMuted: "#777777", Background: "#ffffff", BackgroundMuted: "#e3ebf2", LinkForeground: "#455d6f", LinkVisitedForeground: "#303e4a", NavForeground: "#000000", NavBackground: nbl, MenuForeground: "#000000", MenuBackground: "#acc5da", MenuSelectedBackground: "#72a0c1", MenuSelectedForeground: "#000000", ModalBackdrop: "rgba(77, 77, 77, .7)", Success: "#008000", Error: "#ff0000", }, Dark: &Colors{ Border: "1px solid #666666", LinkDecoration: "none", Foreground: "#ffffff", ForegroundMuted: "#777777", Background: "#121212", BackgroundMuted: "#0f1e28", LinkForeground: "#6f889b", LinkVisitedForeground: "#9eaebb", NavForeground: "#ffffff", NavBackground: nbd, MenuForeground: "#eeeeee", MenuBackground: "#0e2939", MenuSelectedBackground: "#00415d", MenuSelectedForeground: "#ffffff", ModalBackdrop: "rgba(33, 33, 33, .7)", Success: "#008000", Error: "#ff0000", }, } }()
Functions ¶
This section is empty.
Types ¶
type Colors ¶
type Colors struct { Border string `json:"brd"` LinkDecoration string `json:"ld"` Foreground string `json:"fg"` ForegroundMuted string `json:"fgm"` Background string `json:"bg"` BackgroundMuted string `json:"bgm"` LinkForeground string `json:"lf"` LinkVisitedForeground string `json:"lvf"` MenuForeground string `json:"mf"` MenuBackground string `json:"mb"` MenuSelectedForeground string `json:"msf"` MenuSelectedBackground string `json:"msb"` ModalBackdrop string `json:"mbd"` Success string `json:"ok"` Error string `json:"err"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(files filesystem.FileLoader) *Service
type Theme ¶
Click to show internal directories.
Click to hide internal directories.