Add custom theming
This commit is contained in:
4
main.go
4
main.go
@@ -23,7 +23,7 @@ func main() {
|
||||
showAll = flag.Bool("all", defaults.ShowAll, "show all open PRs in --repo, not only PRs assigned to you")
|
||||
limit = flag.Int("limit", defaults.Limit, "maximum open PRs to load (1-1000)")
|
||||
endpoint = flag.String("endpoint", defaults.Endpoint, "GitHub GraphQL endpoint")
|
||||
theme = flag.String("theme", defaults.Theme, "color theme: dark, light, high-contrast, or no-color")
|
||||
theme = flag.String("theme", defaults.Theme, "color theme name (including custom, catppuccin, gruvbox, one-dark-pro, and github)")
|
||||
foldResolved = flag.Bool("fold-resolved", defaults.Display.FoldResolved, "start resolved threads folded")
|
||||
listWidth = flag.Int("thread-list-width", defaults.Display.ThreadListWidthPercent, "thread list width as terminal percentage (20-60)")
|
||||
dashboardMode = flag.String("dashboard-mode", defaults.Display.DashboardMode, "dashboard navigation: intermediate or hotkey")
|
||||
@@ -109,7 +109,7 @@ func main() {
|
||||
}
|
||||
owner, name = parts[0], parts[1]
|
||||
}
|
||||
if err := applyTheme(config.Theme); err != nil {
|
||||
if err := applyTheme(config.Theme, config.CustomTheme); err != nil {
|
||||
exitf("configuration: %v", err)
|
||||
}
|
||||
token, err := resolveToken(config.Endpoint)
|
||||
|
||||
Reference in New Issue
Block a user