Skip to content

Conversation

meowgorithm
Copy link
Member

This revision:

  1. Changes the name of the default theme from "crush" to "charmtone"
  2. Removes a panic that could occur if the name of the default theme was not what the theme manager expected

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the default theme management by renaming the default theme from "crush" to "charmtone" and improving the theme initialization logic to prevent potential panics when the expected default theme name doesn't match.

  • Renamed default theme from "crush" to "charmtone"
  • Modified NewManager() to infer the default theme name instead of hardcoding it
  • Removed the hardcoded default theme parameter from NewManager()

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
internal/tui/styles/theme.go Updated theme manager to remove hardcoded default theme name and infer it dynamically
internal/tui/styles/charmtone.go Renamed theme function and name from "crush" to "charmtone"

@kujtimiihoxha
Copy link
Member

@meowgorithm this needs a rebase/merge

meowgorithm and others added 2 commits August 5, 2025 22:37
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@meowgorithm
Copy link
Member Author

Rebased on main. It's fairly minor, so as long as everything passes I'm going to merge.

@meowgorithm meowgorithm merged commit 31dc01e into main Aug 6, 2025
19 checks passed
@meowgorithm meowgorithm deleted the default-theme branch August 6, 2025 02:55
scalabl3 pushed a commit to metaphori-ai/crush that referenced this pull request Aug 19, 2025
…#570)

* chore: rename default theme + infer default theme name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants