Skip to content

Core: GUI/Kivy: Change some static default and hard-coded colors to use dynamic colors - #6382

Open
aidanii24 wants to merge 3 commits into
ArchipelagoMW:mainfrom
aidanii24:features/kv-colors
Open

Core: GUI/Kivy: Change some static default and hard-coded colors to use dynamic colors#6382
aidanii24 wants to merge 3 commits into
ArchipelagoMW:mainfrom
aidanii24:features/kv-colors

Conversation

@aidanii24

Copy link
Copy Markdown

This PR replaces some default colors in client.kv and launcher.kv to instead source from KivyMD ThemeManager's dynamic colors. Some colors hardcoded in kvui.py and Launcher.py have also been moved to their respective KV files.

What is this fixing or adding?

This allows the Archipelago GUI to be able to better adapt to user preferences. Most importantly though, GameManager-inheriting Clients can now automatically set the color for the SelectableLabel widget. That widget was by default set to a static value of (1, 1, 1, 1), which made it invisible. With this change, users who opt into Light mode will no longer need to change that widget color as well just to read the text in most clients.

Accompanying changes were made for consistency and aesthetics. Such changes are kept to a minimum.

How was this tested?

I tested both Light and Dark versions of Lightsteelblue, Red, Violet, Green and Olive on the Launcher and the Text Client. Options Creator and the OoT Client were also tested to a much lesser degree. Personally, legibility and contrast across all combinations are kept solid and high. These tests were performed on my machine, running Fedora 44 KDE.

Unittests were performed and run by GitHub Actions upon push. They all passed, though one test did need to be rerun before passing. (Python 3.13 - Windows Latest).

If this makes graphical changes, please attach screenshots.

Provided screenshots showcase both Light and Dark versions of Lightsteelblue and Red with the PR applied.

image image image image

Additionally, the following is a screenshot from the 0.6.7 tarball, when using Red in Light Mode, to showcase the problem trying to be fixed.
image

…ce from theme_cls instead

kvui/Launcher: Moved hardcoded background colors to client.kv/launcher.kv
kv: Changed text color for SelectableLabel
@github-actions github-actions Bot added affects: core Issues/PRs that touch core and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

affects: core Issues/PRs that touch core and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant