Adds proper wallpaper reaction to theme

This commit is contained in:
Michel Fedde 2025-05-02 14:36:12 +02:00
parent ab0c103ad9
commit 1a04002bd2
22 changed files with 96 additions and 55 deletions

View file

@ -0,0 +1,14 @@
#define FG_COLOR vec3({foreground.rgb})
#define BG_COLOR vec3({background.rgb})
precision mediump float;
uniform vec2 uSize;
uniform sampler2D uImage;
void main() {{
vec2 uv = gl_FragCoord.xy / uSize;
float value = texture2D(uImage, uv).r;
gl_FragColor = vec4(mix(BG_COLOR / 255.0, FG_COLOR / 255.0, value), 1.0);
}}