-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update wish Update wish, and use the new MakeRenderer feature to properly handle colors. Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * test: update Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * chore: update Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * chore: lint Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
107 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package wishlist | ||
|
||
import "github.com/charmbracelet/lipgloss" | ||
|
||
//nolint:gomnd | ||
func makeStyles(r *lipgloss.Renderer) styles { | ||
return styles{ | ||
Logo: r.NewStyle(). | ||
Foreground(lipgloss.AdaptiveColor{Light: "#FFFDF5", Dark: "#FFFDF5"}). | ||
Background(lipgloss.Color("#5A56E0")). | ||
Padding(0, 1). | ||
SetString("Wishlist"), | ||
Err: r.NewStyle(). | ||
Italic(true). | ||
Foreground(lipgloss.AdaptiveColor{Light: "#FF4672", Dark: "#ED567A"}), | ||
Footer: r.NewStyle(). | ||
Foreground(lipgloss.AdaptiveColor{Light: "#9B9B9B", Dark: "#5C5C5C"}), | ||
NoContent: r.NewStyle().Faint(true).Italic(true), | ||
Doc: r.NewStyle().Margin(1, 2), | ||
} | ||
} | ||
|
||
type styles struct { | ||
Logo lipgloss.Style | ||
Err lipgloss.Style | ||
Footer lipgloss.Style | ||
NoContent lipgloss.Style | ||
Doc lipgloss.Style | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package wishlist | ||
|
||
import ( | ||
"os" | ||
|
||
"github.com/charmbracelet/lipgloss" | ||
) | ||
|
||
var testRenderer = lipgloss.NewRenderer(os.Stderr) |
Oops, something went wrong.