Skip to content

Commit

Permalink
chore: Remove calls to deprecated style.Copy
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed May 24, 2024
1 parent 6c72f96 commit d45950b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions internal/player/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ func newHelp(renderer *lipgloss.Renderer) help.Model {
ShortKey: keyStyle,
ShortDesc: descStyle,
ShortSeparator: sepStyle,
Ellipsis: sepStyle.Copy(),
FullKey: keyStyle.Copy(),
FullDesc: descStyle.Copy(),
FullSeparator: sepStyle.Copy(),
Ellipsis: sepStyle,
FullKey: keyStyle,
FullDesc: descStyle,
FullSeparator: sepStyle,
},
}
}
4 changes: 2 additions & 2 deletions internal/player/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ func NewStyles(m *movie.Movie, renderer *lipgloss.Renderer) Styles {
Foreground(lipgloss.AdaptiveColor{Light: "15", Dark: "7"}),
}

s.Active = s.Options.Copy().
s.Active = s.Options.
Background(activeColor).
BorderForeground(activeColor).
Bold(true)

s.Selected = s.Options.Copy().
s.Selected = s.Options.
Background(selectedColor).
BorderForeground(selectedColor).
Foreground(lipgloss.Color("15")).
Expand Down

0 comments on commit d45950b

Please sign in to comment.