javalent / initiative-tracker

TTRPG Initiative Tracker for Obsidian.md
GNU General Public License v3.0
144 stars 30 forks source link

🐞 Initiative tracker color scheme doesn't adhere to theme color scheme #287

Open scooper4711 opened 2 months ago

scooper4711 commented 2 months ago

Check for existing bug reports before submitting.

Expected Behavior

Colors for e.g. red, green, yellow, orange etc should adhere to the RGB values provided in the chosen theme

Current behaviour

Colors are chosen by the plugin author and don't shift with changing theme.

Reproduction

Most obvious if you don't use the ITS theme. My preferred theme is Obsidian Nord.

Without my changes, e.g. orange is rendered as #ffa500

With my changes, orange is rendered as #d08770 which is according to the Nord color palette.

Which Operating Systems are you using?

Obsidian Version Check

1.6.3 and 1.5.3

Plugin Version

13.0.12

Confirmation

Possible solution

I have applied a custom CSS which addresses this where it was super obvious (the encounter rating in the rendering of the encounter). There may be other locations that need this.

.trivial .difficulty-label {
    color: var(--text-faint) !important;
}
.easy .difficulty-label {
    color: var(--green) !important;
}
.medium .difficulty-label {
    color: var(--yellow) !important;
}
.hard .difficulty-label {
    color: var(--orange) !important;
}
.deadly .difficulty-label {
    color: var(--red) !important;
}