nixos-config/profiles/applications/okular.nix
2023-02-22 00:34:25 +04:00

28 lines
701 B
Nix

{ pkgs, lib, config, ... }:
with (pkgs.my-lib.thmDec config.themes.colors); {
home-manager.users.balsoft = {
home.packages = [
(if config.deviceSpecific.isPhone then
pkgs.okularMobile
else
pkgs.okular)
];
xdg.configFile."okularpartrc".text = pkgs.my-lib.genIni {
"Dlg Accessibility" = {
RecolorBackground = base00;
RecolorForeground = base05;
};
"Document" = {
ChangeColors = true;
PaperColor = base00;
RenderMode = "Recolor";
};
"Main View" = { ShowLeftPanel = false; };
PageView = {
BackgroundColor = base00;
UseCustomBackgroundColor = true;
};
};
};
}