Open
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
6503cc7 to
dc0b8d4
Compare
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Author
|
Here's a demo of Calibre's theme updating with Omarchy theme changes: calibre-theme-demo.mp4 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem Statement
Calibre doesn't natively update with Omarchy themes, so I added a new script and call in
bin/omarchy-theme-setto trigger Calibre theme changes. Calibre is a little finicky with updating themes, so I added logic to make sure it closes and applies the theme whenever a user changes the Omarchy theme.Summary
Syncs the current Omarchy theme to Calibre's custom palette system when switching themes. Follows the same pattern as the existing Obsidian, VS Code, and browser integrations.
colors.tomland maps colors to Qt QPalette roles (deriving shades likeAlternateBaseandPlaceholderTextvia ablend()helper sincecolors.tomlonly has ~6 base colors but Calibre's palette needs 15)gprefsviacalibre-debug -c(Calibre stores palettes in a Python-managed JSON config, not a plain file)hyprctlbefore killing, then sets a temporarywindowruleso it opens silently in the right placeomarchy-cmd-present calibre-- no-op if Calibre isn't installedFiles
bin/omarchy-theme-set-calibre→ new scriptbin/omarchy-theme-set→ addedomarchy-theme-set-calibrebetween obsidian and keyboard