Implement Theme Switcher and Translucent UI Configuration - #617
Conversation
…et main for release final (OpenCloudGaming#588) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Reflect name/UI changes in issue templates
…rsor is visible (OpenCloudGaming#594) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Preserve relative input during cursor visibility transitions by allowing mixed absolute/relative. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Send mixed abs+rel mouse batches over the ordered reliable channel Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Preserve raw-input deltas queued before cursor-visible transition Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --------- Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Capy auto-review is paused for this organization because the usage-cycle auto-review limit has been reached. Increase the limit or turn it off in billing settings to resume automatic reviews. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8f4a4d5b45
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
67676767766767767676 |
…aming#617) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Co-authored-by: Zortos <zortosdev@proton.me> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Kiefer <67562560+Kief5555@users.noreply.github.com>




Pull Request: Implement Theme Switcher and Translucent UI Configuration
Overview
This PR implements a cohesive, theme-aware user experience by introducing a Theme Switcher (supporting Light, Dark, and System Auto preferences) along with a customizable Translucent UI toggle for in-game and settings overlays.
Key Features
prefers-color-scheme) in real-time.backdrop-filter) and soft opacity for floating overlay components.15%with8pxblur.Detailed File Changes
Backend & Shared State
opennow-stable/src/shared/gfn.tsappTheme(AppTheme) andtranslucentUI(boolean) to the sharedSettingscontract.opennow-stable/src/main/settings.tsappTheme: "auto",translucentUI: false).Renderer & UI Layer
opennow-stable/src/renderer/src/App.tsxopennow-stable/src/renderer/src/lib/uiCustomization.tsapplyThemeandapplyTranslucentUIto toggledata-themeanddata-translucentattributes directly ondocument.documentElement.opennow-stable/src/renderer/src/components/SettingsPage.tsxlocales/en.json"theme","themeHint","themeAuto","themeLight","themeDark","translucentUI", and"translucentUIHint".Style System (CSS)
opennow-stable/src/renderer/src/styles.css--bg-a,--bg-b,--bg-c,--panel,--ink).rgba(255, 255, 255, x)rules with theme-awarecolor-mix(in srgb, var(--ink) x%, transparent)..settings-modal,.navbar-modal,.sv-stats,.sv-session-clock, and dialog styles to react to[data-translucent="true"].Validation & Verification Checks
npm run typecheckcompleted successfully with no compilation errors on node/renderer.npm run locales:checkpassed baseline translations verify.autoand changing OS settings syncs real-time.4pxto8px) with15%modal opacity.