From 63426a59e714c4389c5a8e559dee05a0087a3043 Mon Sep 17 00:00:00 2001 From: bricked Date: Mon, 7 Oct 2024 14:49:24 +0000 Subject: [PATCH] forge: init (#573) Link: https://github.com/danth/stylix/pull/573 Approved-by: Daniel Thwaites Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> --- modules/forge/hm.nix | 13 +++ modules/forge/stylesheet.css.mustache | 140 ++++++++++++++++++++++++++ 2 files changed, 153 insertions(+) create mode 100644 modules/forge/hm.nix create mode 100644 modules/forge/stylesheet.css.mustache diff --git a/modules/forge/hm.nix b/modules/forge/hm.nix new file mode 100644 index 0000000..3c5cab5 --- /dev/null +++ b/modules/forge/hm.nix @@ -0,0 +1,13 @@ +{ config, lib, ... }: + +{ + options.stylix.targets.forge.enable = + config.lib.stylix.mkEnableTarget "Forge" true; + + config = lib.mkIf (config.stylix.enable && config.stylix.targets.forge.enable) { + xdg.configFile."forge/stylesheet/forge/stylesheet.css".source = config.lib.stylix.colors { + template = ./stylesheet.css.mustache; + extension = ".css"; + }; + }; +} diff --git a/modules/forge/stylesheet.css.mustache b/modules/forge/stylesheet.css.mustache new file mode 100644 index 0000000..25a9608 --- /dev/null +++ b/modules/forge/stylesheet.css.mustache @@ -0,0 +1,140 @@ +.tiled { + color: #{{base0D-hex}}; + opacity: 1; + border-width: 3px; +} + +.split { + color: #{{base0D-hex}}; + opacity: 1; + border-width: 3px; +} + +.stacked { + color: #{{base0D-hex}}; + opacity: 1; + border-width: 3px; +} + +.tabbed { + color: #{{base0D-hex}}; + opacity: 1; + border-width: 3px; +} + +.floated { + color: #{{base0D-hex}}; + border-width: 3px; + opacity: 1; +} + +.window-tiled-border { + border-width: 3px; + border-color: #{{base0D-hex}}; + border-style: solid; + border-radius: 14px; +} + +.window-split-border { + border-width: 3px; + border-color: #{{base0D-hex}}; + border-style: solid; + border-radius: 14px; +} + +.window-split-horizontal { + border-left-width: 0; + border-top-width: 0; + border-bottom-width: 0; +} + +.window-split-vertical { + border-left-width: 0; + border-top-width: 0; + border-right-width: 0; +} + +.window-stacked-border { + border-width: 3px; + border-color: #{{base0D-hex}}; + border-style: solid; + border-radius: 14px; +} + +.window-tabbed-border { + border-width: 3px; + border-color: #{{base0D-hex}}; + border-style: solid; + border-radius: 14px; +} + +.window-tabbed-bg { + border-radius: 8px; +} + +.window-tabbed-tab { + background-color: rgba(54, 47, 45, 1); + border-color: #{{base0D-hex}}9A; + border-width: 1px; + border-radius: 8px; + color: white; + margin: 1px; + box-shadow: 0 0 0 1px rgba(1px 0, 0, 0, 0.2); +} + +.window-tabbed-tab-active { + background-color: #{{base0D-hex}}; + color: black; + box-shadow: 0 0 0 1px rgba(1px 0, 0, 0, 0.2); +} + +.window-tabbed-tab-close { + padding: 3px; + margin: 4px; + border-radius: 16px; + width: 16px; + background-color: #{{base08-hex}}; +} + +.window-tabbed-tab-icon { + margin: 3px; +} + +.window-floated-border { + border-width: 3px; + border-color: #{{base0D-hex}}; + border-style: solid; + border-radius: 14px; +} + +.window-tilepreview-tiled { + border-width: 1px; + border-color: #{{base0D-hex}}4D; + border-style: solid; + border-radius: 14px; + background-color: #{{base0D-hex}}33; +} + +.window-tilepreview-stacked { + border-width: 1px; + border-color: #{{base0D-hex}}66; + border-style: solid; + border-radius: 14px; + background-color: #{{base0D-hex}}4D; +} + +.window-tilepreview-swap { + border-width: 1px; + border-color: #{{base0D-hex}}4D; + border-style: solid; + border-radius: 14px; + background-color: #{{base0D-hex}}4D; +} + +.window-tilepreview-tabbed { + border-width: 1px; + border-color: #{{base0D-hex}}4D; + border-style: solid; + border-radius: 14px; + background-color: #{{base0D-hex}}4D; +}