From cb3bd7c80f3ea007da0973f434f2bcb905a3e090 Mon Sep 17 00:00:00 2001 From: kaizoku Date: Fri, 4 Aug 2023 10:53:07 -0700 Subject: [PATCH] Add configuration to hide or show New Tab button --- chrome/includes/cascade-config.css | 6 ++++++ chrome/includes/cascade-tabs.css | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/chrome/includes/cascade-config.css b/chrome/includes/cascade-config.css index c918659..cea4c3c 100644 --- a/chrome/includes/cascade-config.css +++ b/chrome/includes/cascade-config.css @@ -143,6 +143,12 @@ * hide: none */ --uc-show-all-tabs-button: none; + /* Hide the new Tab button from the Tab Bar + * possible values: + * show: -moz-box + * hide: none + */ --uc-show-new-tab-button: -moz-box; + /* Left and Right "dip" of the container indicator * 0px equals tab width diff --git a/chrome/includes/cascade-tabs.css b/chrome/includes/cascade-tabs.css index a479810..d163fce 100644 --- a/chrome/includes/cascade-tabs.css +++ b/chrome/includes/cascade-tabs.css @@ -8,6 +8,10 @@ #alltabs-button { display: var(--uc-show-all-tabs-button) !important; } +/* Hides the new-tab button*/ +#tabs-newtab-button { display: var(--uc-show-new-tab-button) !important; } + + /* remove tab shadow */ .tabbrowser-tab >.tab-stack