Skip to content

Replace YellowAdaptive anon function with a basic lipgloss.NewStyle() #207

@digitalghost-dev

Description

@digitalghost-dev

Currently, there is an anonymous function called YellowAdapative in styling.go that is used in the speed command to adapt the color depending on light or dark mode the user has in their terminal.

This can be removed and replaced with:

Yellow = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "#E1AD01", Dark: "#FFDE00"})

Then, used with the lipgloss .Render() method instead like:

styling.Yellow.Render(pokemon.SpeedEV),

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactorRefactoring existing code.

    Projects

    Status

    Completed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions