From 5f1b9b17ecf886af26d81c639f57486e1d674ac5 Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Thu, 20 Mar 2025 21:54:10 +1100 Subject: [PATCH] user/spicetify: add custom css for nowplaying menu --- modules/user/spicetify.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/modules/user/spicetify.nix b/modules/user/spicetify.nix index 998f9f6..f917968 100644 --- a/modules/user/spicetify.nix +++ b/modules/user/spicetify.nix @@ -8,7 +8,25 @@ in programs.spicetify = { enable = true; alwaysEnableDevTools = true; - theme = spicePkgs.themes.catppuccin; + theme = spicePkgs.themes.catppuccin // { + additionalCss = '' + /* Removes "About the artist" text in now playing menu */ + .main-nowPlayingView-sectionHeaderText { + display: none; + } + + /* Removes gradient in now playing menu */ + .main-nowPlayingView-contextItemInfo:before { + background: none; + } + + /* Removes gradient above artist image */ + /* https://stackoverflow.com/a/77015731 < this is so smart */ + .main-nowPlayingView-aboutArtistV2ImageContainer.main-nowPlayingView-aboutArtistV2Image { + background-size: 0% 0%, cover; + } + ''; + }; colorScheme = config.catppuccin.flavor; enabledSnippets = with spicePkgs.snippets; [