wlogout: migrate to font modules

This commit is contained in:
Aly Raffauf 2024-08-07 22:41:41 -04:00
parent d6dbe4e976
commit f04298cdd4

View file

@ -3,8 +3,10 @@
lib, lib,
pkgs, pkgs,
... ...
}: { }: let
config = lib.mkIf config.ar.home.apps.wlogout.enable { cfg = config.ar.home;
in {
config = lib.mkIf cfg.apps.wlogout.enable {
programs.wlogout = { programs.wlogout = {
enable = true; enable = true;
@ -33,7 +35,7 @@
* { * {
background-image: none; background-image: none;
box-shadow: none; box-shadow: none;
font-family: "${config.gtk.font.name}", sans-serif; font-family: "${cfg.theme.sansFont.name}", sans-serif;
transition: 20ms; transition: 20ms;
} }
@ -42,21 +44,21 @@
} }
button { button {
background-color: ${config.ar.home.theme.colors.background}; background-color: ${cfg.theme.colors.background};
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 25%; background-size: 25%;
border-color: ${config.ar.home.theme.colors.primary}; border-color: ${cfg.theme.colors.primary};
border-radius: 10; border-radius: 10;
border-style: solid; border-style: solid;
border-width: 2; border-width: 2;
color: ${config.ar.home.theme.colors.text}; color: ${cfg.theme.colors.text};
margin: 5px; margin: 5px;
text-decoration-color: ${config.ar.home.theme.colors.text}; text-decoration-color: ${cfg.theme.colors.text};
} }
button:active, button:hover { button:active, button:hover {
background-color: ${config.ar.home.theme.colors.primary}; background-color: ${cfg.theme.colors.primary};
outline-style: none; outline-style: none;
} }