blob: 723c94ec2c65729c20aaf9943f8547674d6d38ae (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
config,
lib,
pkgs,
...
}:
{
config = lib.mkIf config.beeMods.mango.enable {
xdg.configFile."matugen/templates/swaylock-colors" = {
text = ''
show-failed-attempts
indicator-radius=70
indicator-thickness=9
line-uses-inside
image={{image}}
# --- Base Colors ---
color={{colors.background.default.hex}}
layout-text-color={{colors.on_surface.default.hex}}
# --- State: Idle (Gray-like ring for visibility) ---
# Using surface_variant for a distinct but neutral gray ring
ring-color={{colors.surface_variant.default.hex}}
inside-color={{colors.surface.default.hex}}
text-color={{colors.on_surface.default.hex}}
# Key Highlight (When typing)
key-hl-color={{colors.primary.default.hex}}
separator-color={{colors.outline.default.hex}}
# --- State: Verifying (Pressing Enter) ---
# Switched to Primary to make the "Enter" state pop
ring-ver-color={{colors.primary.default.hex}}
inside-ver-color={{colors.primary_container.default.hex}}
text-ver-color={{colors.on_primary_container.default.hex}}
# --- State: Wrong Password ---
ring-wrong-color={{colors.error.default.hex}}
inside-wrong-color={{colors.error_container.default.hex}}
text-wrong-color={{colors.on_error_container.default.hex}}
# --- State: Backspace / Clear ---
ring-clear-color={{colors.secondary.default.hex}}
inside-clear-color={{colors.surface_variant.default.hex}}
text-clear-color={{colors.on_surface_variant.default.hex}}
# --- Misc ---
bs-hl-color={{colors.error.default.hex}}
caps-lock-key-hl-color={{colors.tertiary.default.hex}}
caps-lock-bs-hl-color={{colors.error.default.hex}}
'';
};
};
}
|