Fixes transparency on custom emacs dashboard logo

This commit is contained in:
Emmet 2024-06-22 22:00:36 -05:00
parent 656608c84a
commit a27ddf7d71
5 changed files with 8 additions and 6 deletions

View file

@ -84,10 +84,11 @@
(require 'dashboard)
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
doom-fallback-buffer-name "*dashboard*")
(setq image-scaling-factor 1)
;; emacs-dashboard variables
(setq dashboard-banner-logo-title "Welcome to Nix Doom Emacs")
(setq dashboard-startup-banner 2)
(setq dashboard-startup-banner "~/.emacs.d/dashboard-logo.webp")
(setq dashboard-icon-type 'all-the-icons) ;; use `all-the-icons' package
(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs-emacs, pkgs-stable, inputs, userSettings, systemSettings, ... }:
let
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
dashboardLogo = ./. + "/nix-" + themePolarity + ".webp";
in
{
imports = [
@ -109,7 +109,7 @@ in
source = "${inputs.org-sliced-images}";
};
home.file.".emacs.d/dashboard-logo.png".source = dashboardLogo;
home.file.".emacs.d/dashboard-logo.webp".source = dashboardLogo;
home.file.".emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh" = {
source = ./scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh;
executable = true;

View file

@ -147,10 +147,11 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu
(require 'dashboard)
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
doom-fallback-buffer-name "*dashboard*")
(setq image-scaling-factor 1)
;; emacs-dashboard variables
(setq dashboard-banner-logo-title "Welcome to Nix Doom Emacs")
(setq dashboard-startup-banner 2)
(setq dashboard-startup-banner "~/.emacs.d/dashboard-logo.webp")
(setq dashboard-icon-type 'all-the-icons) ;; use `all-the-icons' package
(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)
@ -2082,7 +2083,7 @@ In order to have Nix load my Doom Emacs configuration [[./doom.nix][doom.nix]],
{ config, lib, pkgs-emacs, pkgs-stable, inputs, userSettings, systemSettings, ... }:
let
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
dashboardLogo = ./. + "/nix-" + themePolarity + ".webp";
in
{
imports = [
@ -2190,7 +2191,7 @@ in
source = "${inputs.org-sliced-images}";
};
home.file.".emacs.d/dashboard-logo.png".source = dashboardLogo;
home.file.".emacs.d/dashboard-logo.webp".source = dashboardLogo;
home.file.".emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh" = {
source = ./scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh;
executable = true;

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB