Skip to content

Conversation

@AnAndroNerd
Copy link
Contributor

Adds the ability to read track colors out of the Character.yaml, meant for making the track color match the character's color.

@AnAndroNerd AnAndroNerd marked this pull request as draft November 26, 2025 04:31
Copy link
Contributor

@overdramatic overdramatic left a comment

Choose a reason for hiding this comment

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

the yaml is deserialized using UnderscoredNamingCovention
try doing this:

VoicebankConfig.cs - lines 38-44

public class TrackColor {
    public string ColorName { get; set; } = string.Empty;
    public string AccentColor { get; set; } = string.Empty;
    public string AccentColorDark { get; set; } = string.Empty; // Pressed
    public string AccentColorLight { get; set; } = string.Empty; // PointerOver
    public string AccentColorCenterKey { get; set; } = string.Empty; // Keyboard
}

ThemeManager.cs - line 92

var appTrackColor = new TrackColor(Colors[i].ColorName,

character.yaml

track_color:
- color_name: Default 
  accent_color: "#ffc0cb"
  accent_color_dark: "#ffc0cb"
  accent_color_light: "#ffc0cb"
  accent_color_center_key: "#ffc0cb"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants