mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-21 17:54:23 +01:00
fix(tui): make opencode theme default
This commit is contained in:
@@ -18,7 +18,7 @@ type State struct {
|
|||||||
|
|
||||||
func NewState() *State {
|
func NewState() *State {
|
||||||
return &State{
|
return &State{
|
||||||
Theme: "system",
|
Theme: "opencode",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,16 +93,16 @@ func AvailableThemes() []string {
|
|||||||
names = append(names, name)
|
names = append(names, name)
|
||||||
}
|
}
|
||||||
slices.SortFunc(names, func(a, b string) int {
|
slices.SortFunc(names, func(a, b string) int {
|
||||||
if a == "system" {
|
|
||||||
return -1
|
|
||||||
} else if b == "system" {
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
if a == "opencode" {
|
if a == "opencode" {
|
||||||
return -1
|
return -1
|
||||||
} else if b == "opencode" {
|
} else if b == "opencode" {
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
if a == "system" {
|
||||||
|
return -1
|
||||||
|
} else if b == "system" {
|
||||||
|
return 1
|
||||||
|
}
|
||||||
return strings.Compare(a, b)
|
return strings.Compare(a, b)
|
||||||
})
|
})
|
||||||
return names
|
return names
|
||||||
|
|||||||
Reference in New Issue
Block a user