From 96174d3b8e54926ad3c3a521fb216e21f9b93467 Mon Sep 17 00:00:00 2001 From: Rafael Mardojai CM Date: Tue, 28 Jan 2020 18:03:47 -0500 Subject: [PATCH] Add square-title-buttons.css optional feature, related to #77 --- README.md | 2 ++ theme/square-title-buttons.css | 14 ++++++++++++++ userChrome.css | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 theme/square-title-buttons.css diff --git a/README.md b/README.md index 44953c2..4db9f68 100644 --- a/README.md +++ b/README.md @@ -124,7 +124,9 @@ Alternatively you can run installation script with `-g` flag to auto install GNO *This feature is included by default for Firefox 70+* +- **square-title-buttons.css** + Use square title buttons old style. - **active-tab-contrast.css** diff --git a/theme/square-title-buttons.css b/theme/square-title-buttons.css new file mode 100644 index 0000000..b692eca --- /dev/null +++ b/theme/square-title-buttons.css @@ -0,0 +1,14 @@ +/* Square title buttons old style */ + +@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +:root[tabsintitlebar] #titlebar .titlebar-button { + border-radius: 5px !important; + height: 34px !important; + margin: 0 3px !important; + width: 34px !important; +} + +:root[tabsintitlebar] #titlebar:-moz-window-inactive .titlebar-button { + border-color: transparent !important; +} diff --git a/userChrome.css b/userChrome.css index bbb33fb..807866f 100644 --- a/userChrome.css +++ b/userChrome.css @@ -17,6 +17,8 @@ * This feature is included by default for Firefox 70+ */ /*@import "theme/matching-autocomplete-width.css"; /**/ +/* Use square title buttons old style. */ +/*@import "theme/square-title-buttons.css"; /**/ /* Active tab high contrast */ /*@import "theme/active-tab-contrast.css"; /**/