Skip to content

feat: themes #113

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
May 1, 2025
Merged

feat: themes #113

merged 9 commits into from
May 1, 2025

Conversation

adamdottv
Copy link
Contributor

@adamdottv adamdottv commented Apr 28, 2025

Closes #63

Screen.Recording.2025-04-28.at.4.10.32.PM.mov

@adamdottv adamdottv marked this pull request as ready for review April 29, 2025 15:30
Copy link

@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 implements theming support throughout the TUI by replacing hard-coded style values with dynamic theme values from the new theme package. Key changes include updating imports and style calls across multiple components, removing legacy background and border color options from containers, and integrating theme adjustments in configuration and dialogs.

Reviewed Changes

Copilot reviewed 42 out of 42 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/tui/layout/container.go Removed legacy borderColor/backgroundColor; now uses theme values
internal/tui/components/* Updated style calls across logs, dialogs, chat, etc. to use theme
internal/config/config.go Added TUI config support and default theme for the application
internal/app/app.go Initialized theme based on the configuration
cmd/schema/main.go Extended schema to include TUI theme configuration

@adamdottv
Copy link
Contributor Author

i should probably add the ability to define a custom theme in the config file, will add that now

@kujtimiihoxha
Copy link
Collaborator

@adamdottv I will wait on reviewing this until you get that in.

@adamdottv
Copy link
Contributor Author

yeah, will finish it up first thing this morning

@kujtimiihoxha kujtimiihoxha merged commit 82de143 into main May 1, 2025
@kujtimiihoxha kujtimiihoxha mentioned this pull request May 1, 2025
kujtimiihoxha added a commit to PhantomReactor/opencode that referenced this pull request May 2, 2025
* feat: themes

* feat: flexoki theme

* feat: onedark theme

* feat: monokai pro theme

* feat: opencode theme (default)

* feat: dracula theme

* feat: tokyonight theme

* feat: tron theme

* some small fixes

---------

Co-authored-by: Kujtim Hoxha <kujtimii.h@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom color schemes
2 participants