danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
1.25k stars 161 forks source link

GNOME buttons incorrectly styled when running Stylix as NixOS module. #660

Open velen2077 opened 8 hours ago

velen2077 commented 8 hours ago

I currently use Stylix as below, for my GNOME system. There is an oddity when enabled, in that certain buttons (namely the power options shown in the image) are incorrectly styled and hang off the screen.

With this code, I see the issue:

    # Apply Stylix styling to this system for colour scheming
    # and wallpaper. This applies globally to the system.
    stylix.enable = true;
    stylix.autoEnable = false;
    stylix.image = ../../../../assets/wallpapers/monokai.jpeg;
    stylix.imageScalingMode = "fill";
    stylix.polarity = "dark";
    stylix.base16Scheme = "${pkgs.base16-schemes}/share/themes/rose-pine.yaml";
    # Set the system cursor type. I like Bibata Modern Classic.
    stylix.cursor = {
      package = pkgs.bibata-cursors;
      name = "Bibata-Modern-Classic";
      size = 24;
    };

Screenshot From 2024-12-04 19-14-49

When I set autoEnable = false; so that Stylix applies no theming, I get the expected behaviour, which looks like this:

Screenshot From 2024-12-04 19-16-28

This is using the release-24.11 branch. Both physical and virtual machines experience this issue.

danth commented 7 hours ago

This was fixed for the master branch in #658. We should be able to backport this to release-24.11.

velen2077 commented 6 hours ago

This was fixed for the master branch in #658. We should be able to backport this to release-24.11.

The master branch seems to have a different issue - if I used the code above for GNOME, I get the error:

error: The optionvirtualisation.vmVariant.home-manager.users.username.programs.kubecolor' does not exist. Definition values:`

I've tried manually disabling the target for kubecolor but it doesn't seem to help.

trueNAHO commented 3 hours ago

The master branch seems to have a different issue - if I used the code above for GNOME, I get the error:

error: The optionvirtualisation.vmVariant.home-manager.users.username.programs.kubecolor' does not exist. Definition values:`

I've tried manually disabling the target for kubecolor but it doesn't seem to help.

IIRC, the kubecolor module is not available on release-24.11. Consider manually disabling the module: https://github.com/danth/stylix/commit/9b61cc39b2c82f01b63bb0ae85865d7372697fc4.