Merge pull request #301148 from Viibrant/lxqt-theme-support

catppuccin: add lxqt theme
This commit is contained in:
Aleksana 2024-04-10 22:25:21 +08:00 committed by GitHub
commit 39f8cb5840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
let
validThemes = [ "bat" "bottom" "btop" "grub" "hyprland" "k9s" "kvantum" "lazygit" "plymouth" "qt5ct" "refind" "rofi" "starship" "thunderbird" "waybar" ];
validThemes = [ "bat" "bottom" "btop" "grub" "hyprland" "k9s" "kvantum" "lazygit" "lxqt" "plymouth" "qt5ct" "refind" "rofi" "starship" "thunderbird" "waybar" ];
in
{ fetchFromGitHub
, lib
@ -80,6 +80,14 @@ let
hash = "sha256-gM0HplHhcpvtpmIVdlX/p59h0v+ihKEidS1imqPYlBg=";
};
lxqt = fetchFromGitHub {
name = "lxqt";
owner = "catppuccin";
repo = "lxqt";
rev = "38cf86b3e499e0c0928a102c9c030e5dc6b79255";
hash = "sha256-3TuUkOwk6BSc7BnLnTowGAkSlNTOtGTRlEcjJ6MNJ5g=";
};
plymouth = fetchFromGitHub {
name = "plymouth";
owner = "catppuccin";
@ -194,6 +202,10 @@ stdenvNoCC.mkDerivation {
cp "${sources.lazygit}/themes/${variant}/${accent}.yml" "$out/lazygit/themes/"
cp "${sources.lazygit}/themes-mergable/${variant}/${accent}.yml" "$out/lazygit/themes-mergable/"
'' + lib.optionalString (lib.elem "lxqt" themeList) ''
mkdir -p $out/share/lxqt/themes/catppuccin-${variant}
cp -r ${sources.lxqt}/src/catppuccin-${variant}/* $out/share/lxqt/themes/catppuccin-${variant}/
'' + lib.optionalString (lib.elem "plymouth" themeList) ''
mkdir -p $out/share/plymouth/themes/catppuccin-${variant}
cp ${sources.plymouth}/themes/catppuccin-${variant}/* $out/share/plymouth/themes/catppuccin-${variant}