@@ -23,37 +23,37 @@ type toggleModel struct {
2323 cursor int
2424 viewportOffset int // For scrolling large lists
2525 cwd string
26- toggledProjects ToggledProjects
26+ toggledProjects config. ToggledProjects
2727 cfg * config.GitteConfig
2828 width int
2929 height int
3030}
3131
3232var (
3333 titleStyle = lipgloss .NewStyle ().
34- Bold (true ).
35- Foreground (lipgloss .Color ("170" )).
36- MarginBottom (1 )
34+ Bold (true ).
35+ Foreground (lipgloss .Color ("170" )).
36+ MarginBottom (1 )
3737
3838 selectedStyle = lipgloss .NewStyle ().
39- Foreground (lipgloss .Color ("170" )).
40- Bold (true )
39+ Foreground (lipgloss .Color ("170" )).
40+ Bold (true )
4141
4242 cursorStyle = lipgloss .NewStyle ().
43- Foreground (lipgloss .Color ("170" ))
43+ Foreground (lipgloss .Color ("170" ))
4444
4545 enabledStyle = lipgloss .NewStyle ().
46- Foreground (lipgloss .Color ("42" ))
46+ Foreground (lipgloss .Color ("42" ))
4747
4848 disabledStyle = lipgloss .NewStyle ().
49- Foreground (lipgloss .Color ("196" ))
49+ Foreground (lipgloss .Color ("196" ))
5050
5151 customStyle = lipgloss .NewStyle ().
52- Foreground (lipgloss .Color ("226" ))
52+ Foreground (lipgloss .Color ("226" ))
5353
5454 helpStyle = lipgloss .NewStyle ().
55- Foreground (lipgloss .Color ("241" )).
56- MarginTop (1 )
55+ Foreground (lipgloss .Color ("241" )).
56+ MarginTop (1 )
5757)
5858
5959func newToggleModel (cfg * config.GitteConfig , cwd string ) (* toggleModel , error ) {
@@ -342,7 +342,7 @@ func (m *toggleModel) resetAllProjects() {
342342 proj .CurrentState = proj .DefaultState
343343 proj .IsCustom = false
344344 }
345- m .toggledProjects = make (ToggledProjects )
345+ m .toggledProjects = make (config. ToggledProjects )
346346}
347347
348348// updateViewport adjusts the viewport offset to keep the cursor visible
0 commit comments