fix(immersive): preserve blue colors and improve lyrics readability
Shader: - Fixed luminance formula that was killing blue (30% blend instead of 100%) Lyrics: - Added Oswald font for immersive lyrics - Increased font size by 2pt (26px inactive, 28px active) - Active lines now pure white with higher weight for clarity
This commit is contained in:
1 parent
01adbb7ab4
commit
9d3f05025a
3 files changed
+14
-12
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&family=LINE+Seed+JP:wght@400;700&display=swap');
|
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&family=LINE+Seed+JP:wght@400;700&family=Oswald:wght@400;500;600;700&display=swap');
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
/* QBZ Dark Theme Colors */
|
/* QBZ Dark Theme Colors */
|
||||||
|
|||||||
@@ -184,15 +184,17 @@
|
|||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Immersive mode - larger text, center aligned */
|
/* Immersive mode - larger text with Oswald font */
|
||||||
.lyrics-lines.immersive {
|
.lyrics-lines.immersive {
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
padding: 24px;
|
padding: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lyrics-lines.immersive .lyrics-line {
|
.lyrics-lines.immersive .lyrics-line {
|
||||||
font-size: 24px;
|
font-family: 'Oswald', var(--font-sans), sans-serif;
|
||||||
font-weight: 500;
|
font-size: 26px;
|
||||||
|
font-weight: 400;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
/* Text shadow for contrast against any background */
|
/* Text shadow for contrast against any background */
|
||||||
text-shadow:
|
text-shadow:
|
||||||
0 1px 2px rgba(0, 0, 0, 0.5),
|
0 1px 2px rgba(0, 0, 0, 0.5),
|
||||||
@@ -200,8 +202,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.lyrics-lines.immersive .lyrics-line.active {
|
.lyrics-lines.immersive .lyrics-line.active {
|
||||||
font-size: 24px;
|
font-size: 28px;
|
||||||
font-weight: 700;
|
font-weight: 600;
|
||||||
|
color: #ffffff;
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lyrics-line {
|
.lyrics-line {
|
||||||
|
|||||||
@@ -46,13 +46,11 @@ void main() {
|
|||||||
vec3 c4 = texture(u_texture, uv + vec2(-offset, -offset)).rgb;
|
vec3 c4 = texture(u_texture, uv + vec2(-offset, -offset)).rgb;
|
||||||
vec3 color = (c1 + c2 + c3 + c4) * 0.25;
|
vec3 color = (c1 + c2 + c3 + c4) * 0.25;
|
||||||
|
|
||||||
// Preserve luminance over saturation
|
// Gentle luminance-aware adjustment (preserves color, reduces harsh contrast)
|
||||||
float luma = dot(color, vec3(0.2126, 0.7152, 0.0722));
|
float luma = dot(color, vec3(0.2126, 0.7152, 0.0722));
|
||||||
// Avoid division by zero for very dark colors
|
// Mix original color with luminance-adjusted version (30% adjustment, 70% original)
|
||||||
float len = length(color);
|
vec3 lumaColor = color * (luma / max(length(color), 0.001));
|
||||||
if (len > 0.001) {
|
color = mix(color, lumaColor, 0.3);
|
||||||
color = normalize(color) * luma;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Gradient tint (cool top, warm bottom) - anti-flat
|
// Gradient tint (cool top, warm bottom) - anti-flat
|
||||||
vec3 tintTop = vec3(0.95, 0.97, 1.0); // Cool/blue
|
vec3 tintTop = vec3(0.95, 0.97, 1.0); // Cool/blue
|
||||||
|
|||||||
Reference in new issue
Block a user