diff --git a/shell/applets/WeatherApplet.qml b/shell/applets/WeatherApplet.qml index 0421bf5..9cd5ad2 100644 --- a/shell/applets/WeatherApplet.qml +++ b/shell/applets/WeatherApplet.qml @@ -22,11 +22,12 @@ Column { } } - // Forecast details from wttrbar tooltip + // Forecast details from wttrbar tooltip (may contain HTML from waybar format) Text { width: parent.width - 24 anchors.horizontalCenter: parent.horizontalCenter text: S.WeatherService.tooltip + textFormat: Text.RichText color: S.Theme.base05 font.pixelSize: S.Theme.fontSize - 2 font.family: S.Theme.fontFamily diff --git a/shell/modules/lock_threat.frag b/shell/modules/lock_threat.frag index 9f5a39c..a37f0fe 100644 --- a/shell/modules/lock_threat.frag +++ b/shell/modules/lock_threat.frag @@ -35,18 +35,18 @@ void main() { // Vignette - radial darkening from edges, creeping inward with threat vec2 center = uv - 0.5; float dist = length(center * vec2(1.0, 0.7)); // wider horizontally - // Inner edge shrinks as threat rises (0.7 -> 0.25) - float vigInner = mix(0.7, 0.25, intensity); - // Outer edge also shrinks (1.0 -> 0.6) - float vigOuter = mix(1.0, 0.6, intensity); + // Inner edge shrinks as threat rises (0.8 -> 0.35) + float vigInner = mix(0.8, 0.35, intensity); + // Outer edge also shrinks (1.1 -> 0.7) + float vigOuter = mix(1.1, 0.7, intensity); float vig = smoothstep(vigInner, vigOuter, dist); - // Red tint on the vignette area + // Red tint on the vignette area - translucent blend vec3 threatColor = uColor.rgb; - vec3 tinted = mix(tex.rgb, threatColor * 0.15, vig * intensity); + vec3 tinted = mix(tex.rgb, threatColor * 0.12, vig * intensity * 0.6); - // Darken edges - tinted *= 1.0 - vig * intensity * 0.7; + // Darken edges - softer + tinted *= 1.0 - vig * intensity * 0.35; fragColor = vec4(tinted, tex.a) * qt_Opacity; }