feat(firefox): make corner border depend on hyprland rounding
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-20 09:52:45 -05:00
parent 44b73e7cae
commit 34e6606791
2 changed files with 6 additions and 10 deletions

View file

@ -1,4 +1,4 @@
hostName: rounding:
# css # css
'' ''
/* Hide unused menu rows */ /* Hide unused menu rows */
@ -101,11 +101,7 @@ hostName:
:root:not([chromehidden~="toolbar"]) #PanelUI-menu-button[open]>.toolbarbutton-badge-stack { :root:not([chromehidden~="toolbar"]) #PanelUI-menu-button[open]>.toolbarbutton-badge-stack {
width: unset !important; width: unset !important;
border-top-left-radius: ${ border-top-left-radius: ${toString rounding}px !important;
if hostName == "wim"
then "18"
else "0"
}px !important;
} }
:root:not([chromehidden~="toolbar"]) #PanelUI-menu-button>stack { :root:not([chromehidden~="toolbar"]) #PanelUI-menu-button>stack {

View file

@ -1,12 +1,12 @@
self: { self: {
osConfig, config,
pkgs, pkgs,
... ...
}: let }: let
inherit (osConfig.networking) hostName;
inherit (self.legacyPackages.${pkgs.system}) firefoxAddons; inherit (self.legacyPackages.${pkgs.system}) firefoxAddons;
rounding = (config.wayland.windowManager.hyprland.settings.decoration.rounding or 2) - 2;
firefox-gx = pkgs.callPackage ./gx-theme.nix { firefox-gx = pkgs.callPackage ./gx-theme.nix {
inherit (self.inputs) firefox-gx-src; inherit (self.inputs) firefox-gx-src;
inherit (import "${self}/lib" {}) mkVersion; inherit (import "${self}/lib" {}) mkVersion;
@ -28,7 +28,7 @@ in {
userChrome = '' userChrome = ''
@import url("file://${firefox-gx}/chrome/userChrome.css"); @import url("file://${firefox-gx}/chrome/userChrome.css");
${import ./custom-css.nix hostName} ${import ./custom-css.nix rounding}
''; '';
settings = { settings = {