Skip to content

feat: add build-theme command#11

Merged
HeitorAugustoLN merged 1 commit into
mainfrom
build-theme
May 2, 2025
Merged

feat: add build-theme command#11
HeitorAugustoLN merged 1 commit into
mainfrom
build-theme

Conversation

@HeitorAugustoLN
Copy link
Copy Markdown
Member

No description provided.

@HeitorAugustoLN HeitorAugustoLN requested a review from Copilot May 2, 2025 15:38
Copy link
Copy Markdown

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 adds a new "build-theme" command to allow manual generation of light and dark themes using builder settings.

  • Updated the interactive mode to include the new command.
  • Added a new BuildThemeCommand in the commands module.
  • Integrated the necessary libcosmic dependency in Cargo.toml.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

File Description
src/interactive.rs Added option and function for "Build Theme" in interactive mode.
src/commands/mod.rs Introduced the BuildTheme module and updated the Commands enum.
src/commands/build_theme.rs Created BuildThemeCommand implementing the theme building logic.
Cargo.toml Added dependency on libcosmic from GitHub.

Err((_, builder)) => builder,
})
})
.unwrap_or_else(|_| ThemeBuilder::light());
Copy link

Copilot AI May 2, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider logging a warning when falling back to the default light theme builder to help diagnose potential configuration issues.

Copilot uses AI. Check for mistakes.
Err((_, builder)) => builder,
})
})
.unwrap_or_else(|_| ThemeBuilder::dark());
Copy link

Copilot AI May 2, 2025

Choose a reason for hiding this comment

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

[nitpick] Consider logging a warning when falling back to the default dark theme builder to aid in troubleshooting missing or invalid configuration.

Copilot uses AI. Check for mistakes.
@HeitorAugustoLN HeitorAugustoLN merged commit b8fbc4e into main May 2, 2025
1 check passed
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.

2 participants