From b5607b9ec779a4142a7cedbf1c0ee3f11d6f172a Mon Sep 17 00:00:00 2001 From: Rafael Mardojai CM Date: Mon, 9 Sep 2019 18:25:07 -0500 Subject: [PATCH] Initial rounded titlebuttons support (GTK-3.24.11), #77 implemented as extra feature --- README.md | 4 ++++ scripts/install.sh | 1 + theme/rounded-title-buttons.css | 7 +++++++ userChrome.css | 3 +++ 4 files changed, 15 insertions(+) create mode 100644 theme/rounded-title-buttons.css diff --git a/README.md b/README.md index cfa5713..8c1fced 100644 --- a/README.md +++ b/README.md @@ -128,6 +128,10 @@ Alternatively you can run installation script with `-g` flag to auto install GNO - **matching-autocomplete-width.css** *GNOMISH* Limit the URL bar's autocompletion popup's width to the URL bar's width. + +- **rounded-title-buttons.css** *GNOMISH* + + Rounded title buttons (headerbar window controls). - **active-tab-contrast.css** diff --git a/scripts/install.sh b/scripts/install.sh index 69077f6..4f72b16 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -50,6 +50,7 @@ if [ "$GNOMISHEXTRAS" = true ] ; then [[ -s customChrome.css ]] || echo >> firefox-gnome-theme/customChrome.css sed -i '1s/^/@import "theme\/hide-single-tab.css";\n/' firefox-gnome-theme/customChrome.css sed -i '2s/^/@import "theme\/matching-autocomplete-width.css";\n/' firefox-gnome-theme/customChrome.css + sed -i '3s/^/@import "theme\/rounded-title-buttons.css";\n/' firefox-gnome-theme/customChrome.css fi # Symlink user.js to firefox-gnome-theme one. diff --git a/theme/rounded-title-buttons.css b/theme/rounded-title-buttons.css new file mode 100644 index 0000000..a0b104f --- /dev/null +++ b/theme/rounded-title-buttons.css @@ -0,0 +1,7 @@ +/* Rounded title buttons (headerbar window controls) */ + +@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +:root[tabsintitlebar] #titlebar .titlebar-button { + border-radius: 100% !important; +} diff --git a/userChrome.css b/userChrome.css index f814cc1..e2b2d6c 100644 --- a/userChrome.css +++ b/userChrome.css @@ -16,6 +16,9 @@ /* Limit the URL bar's autocompletion popup's width to the URL bar's width (GNOMISH) */ /*@import "theme/matching-autocomplete-width.css"; /**/ +/* Rounded title buttons (headerbar window controls) (GNOMISH) */ +/*@import "theme/rounded-title-buttons.css"; /**/ + /* Active tab high contrast */ /*@import "theme/active-tab-contrast.css"; /**/