Compare commits
No commits in common. "662c3590af2fe57065fb9be790ee3a8a5e56b41e" and "92853657323daa63c55612135dd7487e3c506fa2" have entirely different histories.
662c3590af
...
9285365732
2 changed files with 9 additions and 10 deletions
|
|
@ -22,12 +22,11 @@ Column {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Forecast details from wttrbar tooltip (may contain HTML from waybar format)
|
// Forecast details from wttrbar tooltip
|
||||||
Text {
|
Text {
|
||||||
width: parent.width - 24
|
width: parent.width - 24
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
text: S.WeatherService.tooltip
|
text: S.WeatherService.tooltip
|
||||||
textFormat: Text.RichText
|
|
||||||
color: S.Theme.base05
|
color: S.Theme.base05
|
||||||
font.pixelSize: S.Theme.fontSize - 2
|
font.pixelSize: S.Theme.fontSize - 2
|
||||||
font.family: S.Theme.fontFamily
|
font.family: S.Theme.fontFamily
|
||||||
|
|
|
||||||
|
|
@ -35,18 +35,18 @@ void main() {
|
||||||
// Vignette - radial darkening from edges, creeping inward with threat
|
// Vignette - radial darkening from edges, creeping inward with threat
|
||||||
vec2 center = uv - 0.5;
|
vec2 center = uv - 0.5;
|
||||||
float dist = length(center * vec2(1.0, 0.7)); // wider horizontally
|
float dist = length(center * vec2(1.0, 0.7)); // wider horizontally
|
||||||
// Inner edge shrinks as threat rises (0.8 -> 0.35)
|
// Inner edge shrinks as threat rises (0.7 -> 0.25)
|
||||||
float vigInner = mix(0.8, 0.35, intensity);
|
float vigInner = mix(0.7, 0.25, intensity);
|
||||||
// Outer edge also shrinks (1.1 -> 0.7)
|
// Outer edge also shrinks (1.0 -> 0.6)
|
||||||
float vigOuter = mix(1.1, 0.7, intensity);
|
float vigOuter = mix(1.0, 0.6, intensity);
|
||||||
float vig = smoothstep(vigInner, vigOuter, dist);
|
float vig = smoothstep(vigInner, vigOuter, dist);
|
||||||
|
|
||||||
// Red tint on the vignette area - translucent blend
|
// Red tint on the vignette area
|
||||||
vec3 threatColor = uColor.rgb;
|
vec3 threatColor = uColor.rgb;
|
||||||
vec3 tinted = mix(tex.rgb, threatColor * 0.12, vig * intensity * 0.6);
|
vec3 tinted = mix(tex.rgb, threatColor * 0.15, vig * intensity);
|
||||||
|
|
||||||
// Darken edges - softer
|
// Darken edges
|
||||||
tinted *= 1.0 - vig * intensity * 0.35;
|
tinted *= 1.0 - vig * intensity * 0.7;
|
||||||
|
|
||||||
fragColor = vec4(tinted, tex.a) * qt_Opacity;
|
fragColor = vec4(tinted, tex.a) * qt_Opacity;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue