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

Improve info row colors #3448

Merged

Conversation

nielsvanvelzen
Copy link
Member

Changes
Update the colors used in the new InfoRow (#3379) to some better ones. I've shamefully stolen them from the Figma lab project. The background colors all have 50% transparency, creating some sort of "glassy" effect.

The biggest improvement is in the used red/green colors because I really hated those. They're missing in the screenshots though.

Before
96900002f4

After
97800002f3

Issues

@nielsvanvelzen nielsvanvelzen added the enhancement New feature or request label Mar 12, 2024
@nielsvanvelzen nielsvanvelzen added this to the v0.17.0 milestone Mar 12, 2024
val Green = Color(0xFF30843D)
val Red = Color(0xFFB20000)
val Transparent = Color.Transparent to Color.White
val Default = Color(0x80FFFFFF) to Color.Black

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
val Red = Color(0xFFB20000)
val Transparent = Color.Transparent to Color.White
val Default = Color(0x80FFFFFF) to Color.Black
val Green = Color(0x8034D97C) to Color.Black

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
val Transparent = Color.Transparent to Color.White
val Default = Color(0x80FFFFFF) to Color.Black
val Green = Color(0x8034D97C) to Color.Black
val Red = Color(0x80F2364D) to Color.Black

Check warning

Code scanning / detekt

Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers. Warning

This expression contains a magic number. Consider defining it to a well named constant.
@nielsvanvelzen nielsvanvelzen merged commit f906998 into jellyfin:master Mar 13, 2024
5 checks passed
@nielsvanvelzen nielsvanvelzen deleted the improve-info-row-colors branch May 4, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants