From adc4f74b7f1a16db7f178814de773d2ac21a64fd Mon Sep 17 00:00:00 2001 From: Blazer Date: Thu, 28 Nov 2024 19:40:57 -0600 Subject: [PATCH] Initial upload --- chrome/bkspl/colors_container.css | 70 +++++++++++++++++++++++++++++++ chrome/bkspl/colors_main.css | 37 ++++++++++++++++ chrome/bkspl/colors_private.css | 37 ++++++++++++++++ chrome/bkspl/linux.css | 14 +++++++ chrome/bkspl/windows.css | 26 ++++++++++++ chrome/userChrome.css | 2 + user.js | 14 +++++++ 7 files changed, 200 insertions(+) create mode 100644 chrome/bkspl/colors_container.css create mode 100644 chrome/bkspl/colors_main.css create mode 100644 chrome/bkspl/colors_private.css create mode 100644 chrome/bkspl/linux.css create mode 100644 chrome/bkspl/windows.css create mode 100644 chrome/userChrome.css create mode 100644 user.js diff --git a/chrome/bkspl/colors_container.css b/chrome/bkspl/colors_container.css new file mode 100644 index 0000000..d978dca --- /dev/null +++ b/chrome/bkspl/colors_container.css @@ -0,0 +1,70 @@ +/* container colors */ + +#main-window:has(.tabbrowser-tab[selected][class*="identity-color-"]) { + --cust-accent: color-mix(in srgb, var(--container-color) 60%, black); + --cust-accent-dark: color-mix(in srgb, var(--cust-accent) 50%, black); + --cust-accent-darker: color-mix(in srgb, var(--cust-accent) 30%, black); + --cust-accent-text: color-mix(in srgb, var(--cust-accent) 50%, white); + + #TabsToolbar, + .urlbarView-row:is([selected]), + ::-moz-selection { + background-color: var(--cust-accent) !important; + } + + #titlebar, + .browser-toolbar, + .tab-background:is([selected], [multiselected]) { + background-color: var(--cust-accent-dark) !important; + + &:-moz-window-inactive { + opacity: .85 !important; + } + } + + #urlbar-background, + #searchbar, + .panel-viewcontainer { + outline: none !important; + border: none !important; + background-color: var(--cust-accent-darker) !important; + } + + .urlbarView-url { + color: var(--cust-accent-text) !important; + } + +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-blue) { + --container-color: dodgerblue; +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-turquoise) { + --container-color: turquoise; +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-green) { + --container-color: green; +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-yellow) { + --container-color: gold; +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-orange) { + --container-color: orange; +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-red) { + --container-color: firebrick; +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-pink) { + --container-color: pink; +} + +#main-window:has(.tabbrowser-tab[selected].identity-color-purple) { + --container-color: purple; +} + diff --git a/chrome/bkspl/colors_main.css b/chrome/bkspl/colors_main.css new file mode 100644 index 0000000..4e0219b --- /dev/null +++ b/chrome/bkspl/colors_main.css @@ -0,0 +1,37 @@ +/* main colors */ + +#main-window { + --cust-accent: AccentColor; + --cust-accent-dark: color-mix(in srgb, var(--cust-accent) 50%, black); + --cust-accent-darker: color-mix(in srgb, var(--cust-accent) 30%, black); + --cust-accent-text: color-mix(in srgb, var(--cust-accent) 50%, white); + + #TabsToolbar, + .urlbarView-row:is([selected]), + ::-moz-selection { + background-color: var(--cust-accent) !important; + } + + #titlebar, + .browser-toolbar, + .tab-background:is([selected], [multiselected]) { + background-color: var(--cust-accent-dark) !important; + + &:-moz-window-inactive { + opacity: .85 !important; + } + } + + #urlbar-background, + #searchbar, + .panel-viewcontainer { + outline: none !important; + border: none !important; + background-color: var(--cust-accent-darker) !important; + } + + .urlbarView-url { + color: var(--cust-accent-text) !important; + } + +} \ No newline at end of file diff --git a/chrome/bkspl/colors_private.css b/chrome/bkspl/colors_private.css new file mode 100644 index 0000000..54478c7 --- /dev/null +++ b/chrome/bkspl/colors_private.css @@ -0,0 +1,37 @@ +/* private colors */ + +#main-window[privatebrowsingmode="temporary"] { + --cust-accent: color-mix(in srgb, purple 60%, black); + --cust-accent-dark: color-mix(in srgb, var(--cust-accent) 50%, black); + --cust-accent-darker: color-mix(in srgb, var(--cust-accent) 35%, black); + --cust-accent-text: color-mix(in srgb, var(--cust-accent) 50%, white); + + #TabsToolbar, + .urlbarView-row:is([selected]), + ::-moz-selection { + background-color: var(--cust-accent) !important; + } + + #titlebar, + .browser-toolbar, + .tab-background:is([selected], [multiselected]) { + background-color: var(--cust-accent-dark) !important; + + &:-moz-window-inactive { + opacity: .85 !important; + } + } + + #urlbar-background, + #searchbar, + .panel-viewcontainer { + outline: none !important; + border: none !important; + background-color: var(--cust-accent-darker) !important; + } + + .urlbarView-url { + color: var(--cust-accent-text) !important; + } + +} \ No newline at end of file diff --git a/chrome/bkspl/linux.css b/chrome/bkspl/linux.css new file mode 100644 index 0000000..57c8ce2 --- /dev/null +++ b/chrome/bkspl/linux.css @@ -0,0 +1,14 @@ +@import 'colors_main.css'; +@import 'colors_private.css'; +@import 'colors_container.css'; + +/* hide */ + +#alltabs-button, +.titlebar-spacer[type="pre-tabs"] { + display: none !important; +} + +#navigator-toolbox { + border-bottom: none !important; +} \ No newline at end of file diff --git a/chrome/bkspl/windows.css b/chrome/bkspl/windows.css new file mode 100644 index 0000000..2207d93 --- /dev/null +++ b/chrome/bkspl/windows.css @@ -0,0 +1,26 @@ +@import 'colors_private.css'; +@import 'colors_container.css'; + +/* Padding */ +#TabsToolbar { + min-height: 52px !important; +} + +/* Hide spacer */ +#alltabs-button, +.titlebar-spacer[type="pre-tabs"] { + display: none !important; +} + +/* Container Color overrides */ +:root:has(.tabbrowser-tab[selected][class*="identity-color-"]), .tabbrowser-tab:has(.tabbrowser-tab[selected][class*="identity-color-"]) { + menupopup, panel, .tabbrowser-tab, .browser-toolbar { + color: white !important; + color-scheme: dark !important; + } + + #navigator-toolbox { + border-bottom: none !important; + } +} + diff --git a/chrome/userChrome.css b/chrome/userChrome.css new file mode 100644 index 0000000..20214eb --- /dev/null +++ b/chrome/userChrome.css @@ -0,0 +1,2 @@ +/* @import 'bkspl/linux.css'; */ +/* @import 'bkspl/windows.css'; */ \ No newline at end of file diff --git a/user.js b/user.js new file mode 100644 index 0000000..be40afb --- /dev/null +++ b/user.js @@ -0,0 +1,14 @@ +user_pref("browser.aboutConfig.showWarning", false); +user_pref("browser.altClickSave", true); +user_pref("ui.key.menuAccessKeyFocuses", false); +user_pref("toolkit.legacyUserProfileCustomizations.stylesheets", true); +user_pref("devtools.chrome.enabled", true); +user_pref("devtools.debugger.remote-enabled", true); +user_pref("browser.newtabpage.activity-stream.feeds.section.topstories", false); +user_pref("browser.newtabpage.activity-stream.feeds.topsites", false); +user_pref("browser.newtabpage.activity-stream.showSponsoredTopSites", false); +user_pref("browser.urlbar.suggest.quicksuggest.sponsored", false); +user_pref("privacy.donottrackheader.enabled", true); +user_pref("browser.toolbars.bookmarks.visibility", "always"); +user_pref("browser.startup.couldRestoreSession.count", 2); +user_pref("browser.startup.page", 3); \ No newline at end of file