startpage/settings.go

20 lines
436 B
Go
Raw Normal View History

2022-05-08 14:32:13 +02:00
package main
type Settings struct {
2022-09-06 11:22:28 +02:00
SessionID string `json:"-"`
2022-09-05 14:17:07 +02:00
Background string `json:"background_color"`
Foreground string `json:"foreground_color"`
Search string `json:"search_query"`
BorderRadius string `json:"border_radius"`
2022-05-08 14:32:13 +02:00
}
2022-09-05 14:17:07 +02:00
func DefaultSettings() *Settings {
return &Settings{
Background: "#2b2a33",
Foreground: "#ffffff",
Search: "https://duckduckgo.com/?q=%s",
BorderRadius: "1.5%",
}
2022-05-08 14:32:13 +02:00
}