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

View file

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