feat(freetube): Remove FreeTube

This commit is contained in:
punkfairie 2024-10-19 20:48:07 -07:00
parent 127d492d5a
commit 2e5fabb018
Signed by: punkfairie
GPG key ID: 01823C057725C266
2 changed files with 0 additions and 26 deletions

View file

@ -8,7 +8,6 @@
./fcitx5.nix
./fish.nix
./foot.nix
./freetube.nix
./fuzzel.nix
./fzf.nix
./gh-dash.nix

View file

@ -1,25 +0,0 @@
{ config, lib, ... }:
let
inherit (config.programs.freetube.settings) baseTheme;
inherit (lib.ctp) mkAccentOpt mkUpper;
cfg = config.programs.freetube.catppuccin;
enable = cfg.enable && config.programs.freetube.enable;
in
{
options.programs.freetube.catppuccin = lib.ctp.mkCatppuccinOpt { name = "freetube"; } // {
accent = mkAccentOpt "FreeTube";
# FreeTube supports two accent colors
secondaryAccent = mkAccentOpt "FreeTube" // {
# Have the secondary accent default to FreeTube's main accent rather than the global Catppuccin accent
# This assumes most users would prefer both accent colors to be the same when only overriding the main one
default = cfg.accent;
};
};
config.programs.freetube.settings = lib.mkIf enable {
# NOTE: For some reason, baseTheme does not capitalize first letter, but the other settings do
baseTheme = "catppuccin${mkUpper cfg.flavor}";
mainColor = mkUpper "${baseTheme}${mkUpper cfg.accent}";
secColor = mkUpper "${baseTheme}${mkUpper cfg.secondaryAccent}";
};
}