summaryrefslogtreecommitdiff
path: root/home/apps/rofi/theme.nix
blob: 891b5a3543d20548b1c520c418aed38acc85168b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{theme}: let
  text = "#${theme.colors.text}";
  base = "#${theme.colors.base}";
  surface = "#${theme.colors.surface}";
  primary = "#${theme.colors.primary}";
  error = "#${theme.colors.error}";
  outerGap = "${toString theme.outerGap}px";
  innerGap = "${toString theme.innerGap}px";
  outerRadius = "${toString theme.outerRadius}px";
  innerRadius = "${toString theme.innerRadius}px";
  borderWidth = "${toString theme.borderWidth}px";
  wallpaper = theme.wallpaper;
in ''
  * {
      primary: ${primary};
      error: ${error};
      base: ${base};
      surface: ${surface};
      text: ${text};
      inner-radius: ${innerRadius};
      outer-radius: ${outerRadius};
      inner-gap: ${innerGap};
      outer-gap: ${outerGap};
      border-width: ${borderWidth};
      background: url("${wallpaper}", height);
  }
''