Skip to content

Commit

Permalink
🐛 Fix options section border
Browse files Browse the repository at this point in the history
The border for the the options sections was not inheriting the theme
changes when using the theme selector.
  • Loading branch information
mikelorant committed Mar 1, 2023
1 parent bea6d7b commit 7f8607b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/ui/option/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package option

import (
"github.com/mikelorant/committed/internal/commit"
"github.com/mikelorant/committed/internal/ui/colour"
"github.com/mikelorant/committed/internal/ui/option/help"
"github.com/mikelorant/committed/internal/ui/option/section"
"github.com/mikelorant/committed/internal/ui/option/setting"
Expand Down Expand Up @@ -139,6 +140,12 @@ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
}

//nolint:gocritic
switch msg.(type) {
case colour.Msg:
m.styles = defaultStyles(m.state.Theme)
}

if m.Panel == PanelTheme && !m.theme.Focused() {
m.theme.Focus()
msg = nil
Expand Down

0 comments on commit 7f8607b

Please sign in to comment.