mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 03:52:10 +02:00
Init text color on wallpaper
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Hyprlock is a lockscreen for Hyprland
|
# Hyprlock is a lockscreen for Hyprland
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
let
|
||||||
foreground = "rgba(26, 22, 23, 0.70)";
|
foreground = "rgba(${config.theme.textColorOnWallpaper}ee)";
|
||||||
font = config.stylix.fonts.serif.name;
|
font = config.stylix.fonts.serif.name;
|
||||||
in {
|
in {
|
||||||
programs.hyprlock = {
|
programs.hyprlock = {
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ let
|
|||||||
background = "#${config.lib.stylix.colors.base00}";
|
background = "#${config.lib.stylix.colors.base00}";
|
||||||
background-alt = "#${config.lib.stylix.colors.base01}";
|
background-alt = "#${config.lib.stylix.colors.base01}";
|
||||||
foreground = "#${config.lib.stylix.colors.base05}";
|
foreground = "#${config.lib.stylix.colors.base05}";
|
||||||
|
foregroundOnWallpaper = "#${config.theme.textColorOnWallpaper}";
|
||||||
font = "${config.stylix.fonts.serif.name}";
|
font = "${config.stylix.fonts.serif.name}";
|
||||||
fontSize = "${toString config.stylix.fonts.sizes.desktop}";
|
fontSize = "${toString config.stylix.fonts.sizes.desktop}";
|
||||||
|
|
||||||
@@ -146,7 +147,10 @@ in {
|
|||||||
+ (if transparentButtons && transparent then "00" else "")}";
|
+ (if transparentButtons && transparent then "00" else "")}";
|
||||||
"theme.bar.buttons.style" = "default";
|
"theme.bar.buttons.style" = "default";
|
||||||
"theme.bar.buttons.monochrome" = true;
|
"theme.bar.buttons.monochrome" = true;
|
||||||
"theme.bar.buttons.text" = "${foreground}";
|
"theme.bar.buttons.text" = if transparent && transparentButtons then
|
||||||
|
"${foregroundOnWallpaper}"
|
||||||
|
else
|
||||||
|
"${foreground}";
|
||||||
"theme.bar.buttons.background" =
|
"theme.bar.buttons.background" =
|
||||||
"${(if transparent then background else background-alt)
|
"${(if transparent then background else background-alt)
|
||||||
+ (if transparentButtons then "00" else "")}";
|
+ (if transparentButtons then "00" else "")}";
|
||||||
|
|||||||
@@ -1,11 +1,26 @@
|
|||||||
{ pkgs, inputs, config, lib, ... }:
|
{ pkgs, inputs, config, lib, ... }:
|
||||||
let
|
let
|
||||||
|
foreground = config.theme.textColorOnWallpaper;
|
||||||
sddm-astronaut = pkgs.sddm-astronaut.override {
|
sddm-astronaut = pkgs.sddm-astronaut.override {
|
||||||
embeddedTheme = "pixel_sakura";
|
embeddedTheme = "pixel_sakura";
|
||||||
themeConfig = if lib.hasSuffix "sakura_static.png" config.stylix.image then
|
themeConfig = if lib.hasSuffix "sakura_static.png" config.stylix.image then
|
||||||
{ }
|
{ }
|
||||||
else {
|
else {
|
||||||
Background = "${toString config.stylix.image}";
|
Background = "${toString config.stylix.image}";
|
||||||
|
HeaderTextColor = "#${foreground}";
|
||||||
|
DateTextColor = "#${foreground}";
|
||||||
|
TimeTextColor = "#${foreground}";
|
||||||
|
LoginFieldTextColor = "#${foreground}";
|
||||||
|
PasswordFieldTextColor = "#${foreground}";
|
||||||
|
UserIconColor = "#${foreground}";
|
||||||
|
PasswordIconColor = "#${foreground}";
|
||||||
|
WarningColor = "#${foreground}";
|
||||||
|
LoginButtonBackgroundColor = "#${foreground}";
|
||||||
|
SystemButtonsIconsColor = "#${foreground}";
|
||||||
|
SessionButtonTextColor = "#${foreground}";
|
||||||
|
VirtualKeyboardButtonTextColor = "#${foreground}";
|
||||||
|
DropdownBackgroundColor = "#${foreground}";
|
||||||
|
HighlightBackgroundColor = "#${foreground}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
|||||||
@@ -12,6 +12,8 @@
|
|||||||
border-size = 3;
|
border-size = 3;
|
||||||
animation-speed = "medium"; # "fast" | "medium" | "slow"
|
animation-speed = "medium"; # "fast" | "medium" | "slow"
|
||||||
fetch = "none"; # "nerdfetch" | "neofetch" | "pfetch" | "none"
|
fetch = "none"; # "nerdfetch" | "neofetch" | "pfetch" | "none"
|
||||||
|
textColorOnWallpaper =
|
||||||
|
config.lib.stylix.colors.base06; # Color of the text displayed on the wallpaper (Lockscreen, display manager, ...)
|
||||||
|
|
||||||
bar = { # Hyprpanel
|
bar = { # Hyprpanel
|
||||||
position = "top"; # "top" | "bottom"
|
position = "top"; # "top" | "bottom"
|
||||||
@@ -23,8 +25,7 @@
|
|||||||
description = "Theme configuration options";
|
description = "Theme configuration options";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config.stylix = {
|
||||||
stylix = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# See https://tinted-theming.github.io/tinted-gallery/ for more schemes
|
# See https://tinted-theming.github.io/tinted-gallery/ for more schemes
|
||||||
@@ -43,8 +44,7 @@
|
|||||||
base09 =
|
base09 =
|
||||||
"fab387"; # Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
"fab387"; # Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
||||||
base0A = "f9e2af"; # Classes, Markup Bold, Search Text Background
|
base0A = "f9e2af"; # Classes, Markup Bold, Search Text Background
|
||||||
base0B =
|
base0B = "a6e3a1"; # Strings, Inherited Class, Markup Code, Diff Inserted
|
||||||
"a6e3a1"; # Strings, Inherited Class, Markup Code, Diff Inserted
|
|
||||||
base0C =
|
base0C =
|
||||||
"94e2d5"; # Support, Regular Expressions, Escape Characters, Markup Quotes
|
"94e2d5"; # Support, Regular Expressions, Escape Characters, Markup Quotes
|
||||||
base0D =
|
base0D =
|
||||||
@@ -90,6 +90,4 @@
|
|||||||
sha256 = "sha256-KMYVs4hSs+e66q4o15aVJ4mbTMDqIKEH4tBv9zZ7J2o=";
|
sha256 = "sha256-KMYVs4hSs+e66q4o15aVJ4mbTMDqIKEH4tBv9zZ7J2o=";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user