Coder Social home page Coder Social logo

Comments (7)

vinceliuice avatar vinceliuice commented on July 1, 2024 1

Fixed now

from fluent-gtk-theme.

vinceliuice avatar vinceliuice commented on July 1, 2024

How did you installed this theme ?

from fluent-gtk-theme.

rikthomas avatar rikthomas commented on July 1, 2024

Via NixOS Home Manager. I copied the default.nix from the channel repo and updated the src to get your latest commit:

fluent.nix:

{ lib
, stdenvNoCC
, fetchFromGitHub
, gitUpdater
, gnome-themes-extra
, gtk-engine-murrine
, jdupes
, sassc
, themeVariants ? [] # default: blue
, colorVariants ? [] # default: all
, sizeVariants ? [] # default: standard
, tweaks ? []
}:

let
  pname = "fluent-gtk-theme";

in
lib.checkListOfEnum "${pname}: theme variants" [ "default" "purple" "pink" "red" "orange" "yellow" "green" "teal" "grey" "all" ] themeVariants
lib.checkListOfEnum "${pname}: color variants" [ "standard" "light" "dark" ] colorVariants
lib.checkListOfEnum "${pname}: size variants" [ "standard" "compact" ] sizeVariants
lib.checkListOfEnum "${pname}: tweaks" [ "solid" "float" "round" "blur" "noborder" "square" ] tweaks

stdenvNoCC.mkDerivation rec {
  inherit pname;
  version = "latest-commit";

  src = fetchFromGitHub {
    owner = "vinceliuice";
    repo = pname;
    rev = "fdf6f8cba968909af0f45575929b13464fad3d95";
    hash = "sha256-ONhW68UUrFiv5hxkR7XI8U/5+qM+tYLIS2OM05pqJi0=";
  };

  nativeBuildInputs = [
    jdupes
    sassc
  ];

  buildInputs = [
    gnome-themes-extra
  ];

  propagatedUserEnvPkgs = [
    gtk-engine-murrine
  ];

  postPatch = ''
    patchShebangs install.sh
  '';

  installPhase = ''
    runHook preInstall

    name= HOME="$TMPDIR" ./install.sh \
      ${lib.optionalString (themeVariants != []) "--theme " + builtins.toString themeVariants} \
      ${lib.optionalString (colorVariants != []) "--color " + builtins.toString colorVariants} \
      ${lib.optionalString (sizeVariants != []) "--size " + builtins.toString sizeVariants} \
      ${lib.optionalString (tweaks != []) "--tweaks " + builtins.toString tweaks} \
      --icon nixos \
      --dest $out/share/themes

    jdupes --quiet --link-soft --recurse $out/share

    runHook postInstall
  '';

  passthru.updateScript = gitUpdater { };

  meta = with lib; {
    description = "Fluent design gtk theme";
    homepage = "https://github.com/vinceliuice/Fluent-gtk-theme";
    license = licenses.gpl3Only;
    platforms = platforms.unix;
    maintainers = [ maintainers.romildo ];
  };
}

Section from home.nix:

    gtk = {
    enable = true;
    iconTheme = {
      name = "Fluent";
      package = pkgs.fluent-icon-theme;
    };
    theme = {
      name = "Fluent-Dark";
      package = pkgs.callPackage ./fluent.nix {
        tweaks = ["blur"];
      };
    };
  };

from fluent-gtk-theme.

vinceliuice avatar vinceliuice commented on July 1, 2024

Does it works just run: ./install.sh to install this theme on NixOS ?

from fluent-gtk-theme.

rikthomas avatar rikthomas commented on July 1, 2024

Update:
If I comment out the above (NixOS declarative way of installing the theme) and do the manual install with:

./install.sh --icon nixos --tweaks blur

it fixes the notifications but I lose the nixos panel icon. Where as the above method gets the panel icon but has the bug with the notifications still present.

image

from fluent-gtk-theme.

rikthomas avatar rikthomas commented on July 1, 2024

Thank you so much!

from fluent-gtk-theme.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.