Skip to content

Refactor theme mechanism#1637

Open
mutatrum wants to merge 6 commits into
bitaxeorg:masterfrom
mutatrum:technicolor-dreamcoat
Open

Refactor theme mechanism#1637
mutatrum wants to merge 6 commits into
bitaxeorg:masterfrom
mutatrum:technicolor-dreamcoat

Conversation

@mutatrum

@mutatrum mutatrum commented Mar 28, 2026

Copy link
Copy Markdown
Collaborator

There is a lot of duplicate code in the theme system. Refactored it to only use a single RGB value, which makes it easy to do this while reducing line count:

image

</div>

<div class="col-12 mt-4">
<h5>Theme Color</h5>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

This file is extracted from theme-config.component.ts‎, only change is Theme Colors -> Theme Color

@github-actions

github-actions Bot commented Mar 28, 2026

Copy link
Copy Markdown

Test Results

 2 files  ±0   2 suites  ±0   0s ⏱️ ±0s
88 tests ±0  88 ✅ ±0  0 💤 ±0  0 ❌ ±0 
90 runs  ±0  90 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit aecff4e. ± Comparison against base commit 2c0e549.

♻️ This comment has been updated with latest results.

@0xf0xx0 0xf0xx0 self-requested a review April 6, 2026 19:40

@0xf0xx0 0xf0xx0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

ack, should look into switching the text color on lighter colors
image
image

@mutatrum mutatrum force-pushed the technicolor-dreamcoat branch from 36275f5 to 78d36f2 Compare April 24, 2026 21:13
@mutatrum

Copy link
Copy Markdown
Collaborator Author
image

@0xf0xx0 0xf0xx0 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

tested ack

@0xf0xx0

0xf0xx0 commented May 8, 2026

Copy link
Copy Markdown
Collaborator

two last things before merging, the buttons/checkboxes should also use contrast-color, and the hint indicators should be the fg color

image image image

@WantClue WantClue added the design Design Enhancements label May 28, 2026
@WantClue

Copy link
Copy Markdown
Collaborator

just resolved the minor conflict another quick test would be ideal

@WantClue WantClue added this to the 2.14.0 milestone May 28, 2026
@mutatrum

Copy link
Copy Markdown
Collaborator Author

just resolved the minor conflict another quick test would be ideal

Makes more sense to do again after #1651. Keep open for now, to see what the conflicts will be.

@WantClue WantClue removed this from the 2.14.0 milestone May 29, 2026
@mutatrum mutatrum added this to the 2.15.0 milestone May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

design Design Enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants