Fuzzel : Style with Stylix.

This commit is contained in:
Dmitry Voronin 2024-06-23 01:02:11 +03:00
parent ad58a9e915
commit d7b209fb76
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 22 additions and 13 deletions

View file

@ -41,8 +41,8 @@ in {
name = "Noto Color Emoji";
};
};
override = if wallpaper.forceWhiteText then {
base04 = "ffffff";
override = if wallpaper.forceContrastText then {
base04 = "000000";
base05 = "ffffff";
base06 = "ffffff";
} else {};

View file

@ -75,7 +75,7 @@
};
window = {
gap = 8;
gap = 12;
border = 4;
};
}

View file

@ -1,12 +1,12 @@
{ pkgs, ... }: let
url = "https://i.imgur.com/uxNas3C.jpeg";
sha256 = "sha256-OxixfSixKYDhNx2vxGV5fLeGrHHV1uXS4MJHLnCIFZs=";
url = "https://i.imgur.com/CrX0Grv.png";
sha256 = "sha256-b9kHrg+EtLCQvIgpvv4hFp79jswAurntty3YnFKr5j0=";
# Sometimes stylix does not generate enough contrast for text.
# This setting forces white text to ensure contrast on dark backgrounds.
forceWhiteText = false;
forceContrastText = true;
in {
inherit forceWhiteText;
inherit forceContrastText;
path = pkgs.fetchurl {
url = url;

View file

@ -3,18 +3,27 @@
in {
file = (pkgs.formats.ini {}).generate "FuzzelConfig" {
main = {
font = "${style.font.serif.name}:size=${toString style.font.size.popup}";
dpi-aware = dpiAware;
font = "${style.font.serif.name}:size=${toString style.font.size.popup}";
lines = 20;
prompt = "\"$ \"";
show-actions = "yes";
terminal = setting.terminal;
list-executables-in-path = "no";
lines = 20;
width = 40;
# prompt = "\"$ \""
width = 40;
# list-executables-in-path = "no";
};
border = {
radius = 0;
width = 1;
};
colors = {
background = style.color.bg.dark + style.opacity.hex;
border = style.color.border + style.opacity.hex;
match = style.color.fg.light + style.opacity.hex;
selection = style.color.bg.light + style.opacity.hex;
selection-match = style.color.fg.dark + style.opacity.hex;
selection-text = style.color.fg.dark + style.opacity.hex;
text = style.color.fg.light + style.opacity.hex;
};
};
}

View file

@ -5,7 +5,7 @@ in {
globalSection = {
anchor = "top-center";
background-color = "#${style.color.bg.dark}${alpha}";
border-color = "#${style.color.bg.regular}${alpha}";
border-color = "#${style.color.border}${alpha}";
default-timeout = setting.popup.timeout.ms;
font = "${style.font.serif.name} ${toString style.font.size.popup}";
height = 120;