colored URL bar for private windows, issues #19, #21

This commit is contained in:
Sai Kurogetsu 2018-02-07 20:45:12 +00:00
parent f87d773656
commit 8af9a1ee87
No known key found for this signature in database
GPG Key ID: 48E52EBE10D57BF6
6 changed files with 23 additions and 2 deletions

View File

@ -52,6 +52,8 @@
--gnome-inactive-urlbar-color: rgb(212, 212, 212);
--gnome-focused-urlbar-border-color: #0f2a46;
--gnome-focused-urlbar-outline: 1px solid #21578f;
/* for private-urlbar.css only */
--gnome-private-urlbar-bgimage: linear-gradient(#25003e, #25003e);
/* Tab bar */
--gnome-tabbar-bgcolor: #2f3434;

View File

@ -52,6 +52,8 @@
--gnome-inactive-urlbar-color: rgb(50, 50, 50);
--gnome-focused-urlbar-border-color: #0f2a46;
--gnome-focused-urlbar-outline: 1px solid #21578f;
/* for private-urlbar.css only */
--gnome-private-urlbar-bgimage: linear-gradient(#e6c2ff, #e6c2ff);
/* Tab bar */
--gnome-tabbar-bgcolor: #d6d6d6;

View File

@ -52,6 +52,8 @@
--gnome-inactive-urlbar-color: #d3d4d5;
--gnome-focused-urlbar-border-color: #0f2a46;
--gnome-focused-urlbar-outline: 1px solid #21578f;
/* for private-urlbar.css only */
--gnome-private-urlbar-bgimage: linear-gradient(#25003e, #25003e);
/* Tab bar */
--gnome-tabbar-bgcolor: #272c2d;

View File

@ -52,6 +52,8 @@
--gnome-inactive-urlbar-color: #323232;
--gnome-focused-urlbar-border-color: #4a90d9;
--gnome-focused-urlbar-outline: none;
/* for private-urlbar.css only */
--gnome-private-urlbar-bgimage: linear-gradient(#e6c2ff, #e6c2ff);
/* Tab bar */
--gnome-tabbar-bgcolor: #cfcfcd;

9
ui/private-urlbar.css Normal file
View File

@ -0,0 +1,9 @@
@namespace xul url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
:root[privatebrowsingmode="temporary"] .urlbar-textbox-container {
background-image: var(--gnome-private-urlbar-bgimage) !important;
}
#TabsToolbar .private-browsing-indicator {
display: none !important;
}

View File

@ -54,10 +54,14 @@
/* Hide the tab bar when only one tab is open
* Warning: This also hides the private browsing indicator in private windows.
* You should move the new tab button somewhere else for this to work, because
* by default it is on the tab bar too. */
* If you are using it, you might wanna enable the next feature too. Also you
* should move the new tab button somewhere else for this to work, because by
* default it is on the tab bar too. */
/*@import "ui/hide-single-tab.css"; /**/
/* Replace the private browsing indicator with a colored URL bar */
/*@import "ui/private-urlbar.css"; /**/
/* Make all tab icons look kinda like symbolic icons */
/*@import "ui/symbolic-tab-icons.css"; /**/