Skip to content

Commit

Permalink
Patch GTK theme
Browse files Browse the repository at this point in the history
Until witalihirsch/Mono-gtk-theme#51 is resolved/full Gnome 45 support exists
  • Loading branch information
4JX committed Nov 25, 2023
1 parent b7d99b9 commit d214e7d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
2 changes: 1 addition & 1 deletion home/modules/DE/extensions/list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ let
# '';
# }));
in
with pkgs.gnomeExtensions; builtins.trace "Re enable pano https://nixpk.gs/pr-tracker.html?pr=269588" [
with pkgs.gnomeExtensions; lib.warn "Re enable pano https://nixpk.gs/pr-tracker.html?pr=269588" [
{
package = user-themes;
dconfSettings = {
Expand Down
36 changes: 25 additions & 11 deletions home/modules/themes/gtk.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, pkgs, self, ... }:
{ config, pkgs, self, lib, ... }:

# https://github.com/NotAShelf/nyx/blob/fac9b59c8239c573733f89e41b35f267ae19413d/homes/notashelf/themes/gtk.nix#L15C1-L18C1

Expand Down Expand Up @@ -31,16 +31,30 @@ in
let
themePath = cfg.gtk.theme.themePath;
in
{
"gtk-4.0/gtk.css" = {
source = "${themePath}/gtk.css";
};
"gtk-4.0/gtk-dark.css" = {
source = "${themePath}/gtk-dark.css";
};
"gtk-4.0/assets" = {
source = "${themePath}/assets";
};
lib.warn "Await GNOME 45 fix https://github.com/witalihirsch/Mono-gtk-theme/issues/51" {
"gtk-4.0/gtk.css".text = builtins.concatStringsSep "\n" [
(builtins.readFile "${themePath}/gtk.css")
# Intuition would tell me that this file needs the *light* background, but alas it is not the case
''
/* Temp workaround */
.nautilus-window .content-pane,
.nautilus-window .sidebar-pane {
background-color: #252525;
}
''
];
"gtk-4.0/gtk-dark.css" .
text = builtins.concatStringsSep "\n" [
(builtins.readFile ("${themePath}/gtk-dark.css"))
''
/* Temp workaround */
.nautilus-window .content-pane,
.nautilus-window .sidebar-pane {
background-color: #f0f0f0;
}
''
];
"gtk-4.0/assets".source = "${themePath}/assets";
};


Expand Down

0 comments on commit d214e7d

Please sign in to comment.