Vitals bars: preset Foreground colours the bar, Background colours the label text

Open
#461 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp

Research direction

Start with StatusBarView.axaml and the PresetBar implementation, then trace how preset Foreground and Background values are applied in both the status strip and Vitals panel. Inspect the theme editor's Theme.HealthTrack handling and the relevant preset serialization or migration path before changing the color behavior. Update the implementation and wiki/Configuration.md; the work is done when bars use Foreground for the fill and Background for label text, the default label remains readable, and existing themes or saved presets retain a valid track color.

Written by the indexing model from the issue text.

Description

area:highlighting enhancement

Request

A vitals preset (health, mana, stamina, spirit, concentration) should colour its bar like this:

  • Foreground = the bar's fill (as it does today)
  • Background = the bar's label text (health 100%, mana 100%, …)

What happens today

  • Foreground colours the fill. This works.
  • Background colours the bar's track (the empty part) and border, as Genie 4 did. On a full bar there is no empty part, so setting a background looks like it does nothing.
  • The label text is a fixed white (StatusBarView.axaml, Foreground="#fff"). No preset reaches it, so a light fill makes the label unreadable.

Repro

  1. Edit → Configuration… → Presets, select health.
  2. Set Foreground to yellow and Background to magenta, then Apply.
  3. Look at the health bar in the status strip at 100%.

Result: the bar turns yellow, the label stays white (close to invisible on yellow), and magenta shows nowhere.
Wanted: yellow bar, magenta label text.

Scope

  • The status strip bars and the Vitals panel bars (both use PresetBar).
  • A preset with no background keeps a readable default label colour.

To decide

  • The track colour needs a new home if Background becomes the text colour. The theme editor's Vitals bars group has a track row per bar (Theme.HealthTrack …) which writes into the preset's background today, so themes and saved presets that carry a track need a migration or a separate track setting.
  • Docs to update with the change: wiki/Configuration.md, "The vitals bars".
Dominant language
C#
Stars
2
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenieClient/Genie5

All issues in GenieClient/Genie5

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.