feat: per-entity foreground/background color overrides in BarSettings#47
Open
feat: per-entity foreground/background color overrides in BarSettings#47
Conversation
…ttings Co-authored-by: sparten11740 <2863630+sparten11740@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add configurable colors for foreground and background in BarSettings
feat: per-entity foreground/background color overrides in BarSettings
Feb 21, 2026
Owner
|
@copilot build in the CI is failing, make sure it passes. Also remove the rustdoc from resolve_colors |
…olve_colors Co-authored-by: sparten11740 <2863630+sparten11740@users.noreply.github.com>
Author
Fixed in 9d954b7:
|
Owner
|
@copilot add a very short paragraph to the README that outlines how to use this |
Co-authored-by: sparten11740 <2863630+sparten11740@users.noreply.github.com>
Author
Added a "Per-Entity Color Overrides" section to the README in b2f3fe6, placed right after the |
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.
foreground_color: Option<ForegroundColor>andbackground_color: Option<Color>fields toBarSettings<T>inconfiguration.rsspawninplugin.rsto resolve effective colors: use per-entity overrides fromBarSettingsif present, fall back to globalColorScheme<T>resourceupdate_settingsinplugin.rsto also update colors whenBarSettingschanges (needsColorScheme<T>param)resolve_colorshelper to avoid duplicationexamples/ally_enemy.rsdemonstrating enemy (red) vs. friendly (blue) health bars using the sameHealthcomponent with different per-entity colors inBarSettingslibwayland-devto system library installs (required by bevy 0.17 wayland-sys dependency)resolve_colorshelperally_enemyexampleOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.