modify automapaper to use nix-colors

This commit is contained in:
Noa Aarts 2024-06-18 16:04:30 +02:00
parent 20dd891399
commit 03b2f54a25
2 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, inputs, ... }:
{ lib, config, pkgs, inputs, nix-colors, ... }:
let
cfg = config.modules.automapaper;
in
@ -149,8 +149,8 @@ in
in highp vec2 texCoords;
out vec4 stateColor;
const vec4 bgColor = vec4(38.0/255.0, 5.0/255.0, 46.0/255.0, 1.0); // #26052e
const vec4 fgColor = vec4(148.0/255.0, 15.0/255.0, 173.0/255.0, 1.0); // #950fad
const vec4 bgColor = ${nix-colors.lib.conversions.hexToGLSLVec "26052e"}; // #26052e
const vec4 fgColor = ${nix-colors.lib.conversions.hexToGLSLVec "950fad"}; // #950fad
void main() {
vec2 canvasSize = vec2(textureSize(tex2D, 0));