Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spectator list element not saving the Text Colour #32275

Closed
bencie opened this issue Mar 7, 2025 · 3 comments · Fixed by #32312
Closed

Spectator list element not saving the Text Colour #32275

bencie opened this issue Mar 7, 2025 · 3 comments · Fixed by #32312
Assignees

Comments

@bencie
Copy link

bencie commented Mar 7, 2025

Type

Cosmetic

Bug description

Edit a skin's layout, and add a SpectatorList if there's none on the skin. Change the Text Colour, and then retry a map, switch skins, or reload skin. The text colour is reverted back to default.

Screenshots or videos

speclistbug.mp4

Version

2025-306.0-lazer

Logs

compressed-logs.zip

@bencie bencie changed the title Skinning: Spectator list element not saving the Text Colour Spectator list element not saving the Text Colour Mar 7, 2025
@zihadmahiuddin
Copy link
Contributor

Looks like it's caused by this, not sure why it's being done here and then the opposite is being done here.
I think the one in updateAppearance is enough, and removing the other one does seem to fix the issue for me.

@Joehuu
Copy link
Member

Joehuu commented Mar 9, 2025

@zihadmahiuddin presumably to set the default to:

Colour = colours.Blue0,

but it should be set here:

public BindableColour4 HeaderColour { get; } = new BindableColour4(Colour4.White);

But Blue0 is not static and has to be hardcoded like ArgonWedgePiece (copies Blue1):

public BindableColour4 AccentColour { get; } = new BindableColour4(Color4Extensions.FromHex("#66CCFF"));

The question is hardcoding again or make those colors static.

@peppy peppy self-assigned this Mar 10, 2025
@peppy
Copy link
Member

peppy commented Mar 10, 2025

I don't know why the header text is customisable here as "text colour". No other argon headers are customisable. I think I'll just remove it for now (because it's implemented weirdly in the first place).

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

Successfully merging a pull request may close this issue.

5 participants