on main help sign in
fix(ui): logo and grad arguments from earlier refactor
511916aChristian Rocha
internal/ui/model/header.go+1−1
@@ -39,7 +39,7 @@ func newHeader(com *common.Common) *header {
39 }
39 }
40 t := com.Styles
40 t := com.Styles
41 h.compactLogo = t.Header.Charm.Render("Charm™") + " " +
41 h.compactLogo = t.Header.Charm.Render("Charm™") + " " +
42− styles.ApplyBoldForegroundGrad(t, "CRUSH", t.Secondary, t.Primary) + " "
42+ styles.ApplyBoldForegroundGrad(t.Base, "CRUSH", t.Secondary, t.Primary) + " "
43 return h
43 return h
44}
44}
45
45
internal/ui/model/pills.go+1−1
@@ -56,7 +56,7 @@ func queuePill(queue int, focused, panelFocused bool, t *styles.Styles) string {
56 if queue <= 0 {
56 if queue <= 0 {
57 return ""
57 return ""
58 }
58 }
59− triangles := styles.ForegroundGrad(t, "▶▶▶▶▶▶▶▶▶", false, t.RedDark, t.Secondary)
59+ triangles := styles.ForegroundGrad(t.Base, "▶▶▶▶▶▶▶▶▶", false, t.Pills.QueueGradFromColor, t.Secondary)
60 if queue < len(triangles) {
60 if queue < len(triangles) {
61 triangles = triangles[:queue]
61 triangles = triangles[:queue]
62 }
62 }
internal/ui/model/ui.go+1−1
@@ -3651,7 +3651,7 @@ func (m *UI) disableDockerMCP() tea.Msg {
3651
3651
3652// renderLogo renders the Crush logo with the given styles and dimensions.
3652// renderLogo renders the Crush logo with the given styles and dimensions.
3653func renderLogo(t *styles.Styles, compact bool, width int) string {
3653func renderLogo(t *styles.Styles, compact bool, width int) string {
3654− return logo.Render(t, version.Version, compact, logo.Opts{
3654+ return logo.Render(t.Base, version.Version, compact, logo.Opts{
3655 FieldColor: t.LogoFieldColor,
3655 FieldColor: t.LogoFieldColor,
3656 TitleColorA: t.LogoTitleColorA,
3656 TitleColorA: t.LogoTitleColorA,
3657 TitleColorB: t.LogoTitleColorB,
3657 TitleColorB: t.LogoTitleColorB,