fix(tui): make opencode theme default

This commit is contained in:
adamdottv 2025-06-26 11:32:25 -05:00
parent 7d13baadc8
commit ccbc9e00f2
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
2 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ type State struct {
func NewState() *State {
return &State{
Theme: "system",
Theme: "opencode",
}
}

View file

@ -93,16 +93,16 @@ func AvailableThemes() []string {
names = append(names, name)
}
slices.SortFunc(names, func(a, b string) int {
if a == "system" {
return -1
} else if b == "system" {
return 1
}
if a == "opencode" {
return -1
} else if b == "opencode" {
return 1
}
if a == "system" {
return -1
} else if b == "system" {
return 1
}
return strings.Compare(a, b)
})
return names