2024-06-02 16:53:45 +02:00
|
|
|
{ config, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (lib) mkForce;
|
|
|
|
|
|
|
|
highlightTransparency = "0.3";
|
|
|
|
getColorCh = colorName: channel: config.lib.stylix.colors."${colorName}-rgb-${channel}";
|
|
|
|
rgba = color: ''rgba(${getColorCh color "r"}, ${getColorCh color "g"}, ${getColorCh color "b"}, ${highlightTransparency})'';
|
|
|
|
in
|
2023-05-16 23:09:05 +02:00
|
|
|
{
|
2023-06-16 13:23:35 +02:00
|
|
|
programs.zathura = {
|
|
|
|
enable = true;
|
2023-06-05 03:26:34 +02:00
|
|
|
|
2023-06-16 13:23:35 +02:00
|
|
|
options = {
|
|
|
|
guioptions = "v";
|
|
|
|
adjust-open = "width";
|
|
|
|
statusbar-basename = true;
|
|
|
|
render-loading = false;
|
|
|
|
scroll-step = 120;
|
2024-06-02 16:53:45 +02:00
|
|
|
|
|
|
|
highlight-color = mkForce (rgba "base0A");
|
|
|
|
highlight-active-color = mkForce (rgba "base0D");
|
2023-06-16 13:23:35 +02:00
|
|
|
};
|
|
|
|
};
|
2023-05-16 23:09:05 +02:00
|
|
|
}
|