Skip to content

Commit

Permalink
Fix default overlay config
Browse files Browse the repository at this point in the history
  • Loading branch information
shivas committed Sep 17, 2022
1 parent 9e7b648 commit 2dbdcb2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,14 @@ func Read() (*CaptureConfig, error) {
if c.AbyssWeather == "" {
c.AbyssWeather = "Dark"
}

if c.OverlayConfig.Spacing == 0 && c.OverlayConfig.FontSize == 0 {
c.OverlayConfig.FontFamily = "Verdana"
c.OverlayConfig.Spacing = 11
c.OverlayConfig.FontSize = 9
c.OverlayConfig.BackgroundColor = "#000000"
c.OverlayConfig.Color = "#FFFFFF"
}
}

return c, nil
Expand Down

0 comments on commit 2dbdcb2

Please sign in to comment.