Add dynamic columns style for bookmarks, stocks & monitor sites

This commit is contained in:
Svilen Markov
2024-05-12 22:07:58 +01:00
parent 503562f2e5
commit 714e1b6d29
8 changed files with 156 additions and 58 deletions

View File

@ -22,6 +22,7 @@ type Bookmarks struct {
HideArrow bool `yaml:"hide-arrow"`
} `yaml:"links"`
} `yaml:"groups"`
Style string `yaml:"style"`
}
func (widget *Bookmarks) Initialize() error {

View File

@ -54,6 +54,7 @@ type Monitor struct {
StatusText string `yaml:"-"`
StatusStyle string `yaml:"-"`
} `yaml:"sites"`
Style string `yaml:"style"`
}
func (widget *Monitor) Initialize() error {

View File

@ -14,6 +14,7 @@ type Stocks struct {
widgetBase `yaml:",inline"`
Stocks feed.Stocks `yaml:"stocks"`
Sort string `yaml:"sort-by"`
Style string `yaml:"style"`
}
func (widget *Stocks) Initialize() error {