Fixed gtk2 issues
This commit is contained in:
1 parent
9bd6b9dffe
commit
d1345b03ed
289 files changed
+1904
-12838
No files matched your search
@@ -40,7 +40,7 @@
|
||||
box-shadow: var(--gnome-button-box-shadow) !important;
|
||||
border: 1px solid var(--gnome-button-border-color) !important;
|
||||
border-bottom-color: var(--gnome-button-border-accent-color) !important;
|
||||
border-radius: 5px !important;
|
||||
border-radius: 8px !important;
|
||||
padding: 0 4px !important;
|
||||
height: 28px !important;
|
||||
max-height: 28px !important;
|
||||
@@ -184,7 +184,7 @@ menulist[open] .menulist-label-box,
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
border-color: transparent !important;
|
||||
border-radius: 5px !important;
|
||||
border-radius: 8px !important;
|
||||
}
|
||||
|
||||
.subviewbutton-back:not(#hack):not(:active):hover,
|
||||
@@ -198,7 +198,7 @@ menulist[open] .menulist-label-box,
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
border: 1px solid transparent !important;
|
||||
border-radius: 5px !important;
|
||||
border-radius: 8px !important;
|
||||
padding: 0 0 !important;
|
||||
height: 28px !important;
|
||||
width: 28px !important;
|
||||
@@ -291,7 +291,7 @@ button.popup-notification-primary-button,
|
||||
border-color: var(--gnome-button-suggested-action-border-color) !important;
|
||||
border-bottom-color: var(--gnome-button-suggested-action-border-accent-color) !important;
|
||||
box-shadow: var(--gnome-button-suggested-action-box-shadow) !important;
|
||||
text-shadow: 0 -1px rgba(0, 0, 0, 0.559216) !important;
|
||||
text-shadow: 0 -1px rgba(0, 0, 0, 0.5) !important;
|
||||
}
|
||||
|
||||
#appMenu-popup .panel-banner-item[notificationid="update-restart"]:hover,
|
||||
|
||||
@@ -70,8 +70,8 @@ toolbarspring {
|
||||
align-items: center !important;
|
||||
}
|
||||
.urlbarView-row-inner {
|
||||
padding-block: 5px !important;
|
||||
border-radius: 5px !important;
|
||||
padding-block: 8px !important;
|
||||
border-radius: 8px !important;
|
||||
}
|
||||
|
||||
/* Search engines buttons */
|
||||
@@ -81,7 +81,7 @@ toolbarspring {
|
||||
padding: 8px !important;
|
||||
background: none !important;
|
||||
border-top: 1px solid var(--gnome-entry-border-color) !important;
|
||||
border-radius: 0 0 5px 5px !important;
|
||||
border-radius: 0 0 8px 8px !important;
|
||||
}
|
||||
|
||||
.searchbar-engine-one-off-item {
|
||||
@@ -103,17 +103,17 @@ toolbarspring {
|
||||
color: unset !important;
|
||||
}
|
||||
.searchbar-engine-one-off-item:first-child {
|
||||
border-radius: 5px 0 0 5px;
|
||||
border-radius: 8px 0 0 8px;
|
||||
border-left-width: 1px !important;
|
||||
}
|
||||
.searchbar-engine-one-off-item.last-engine, .searchbar-engine-one-off-item:last-child {
|
||||
border-radius: 0 5px 5px 0;
|
||||
border-radius: 0 8px 8px 0;
|
||||
}
|
||||
|
||||
#urlbar-anon-search-settings-compact {
|
||||
border-left-width: 1px !important;
|
||||
border-bottom: 1px solid var(--gnome-button-border-accent-color) !important;
|
||||
border-radius: 5px;
|
||||
border-radius: 8px;
|
||||
margin-left: 6px !important;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
#downloadsPanel-mainView .download-state {
|
||||
padding: 8px !important;
|
||||
border: 0 !important;
|
||||
border-radius: 5px !important;
|
||||
border-radius: 8px !important;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
@@ -202,12 +202,12 @@
|
||||
#protections-popup-mainView-panel-header {
|
||||
background: var(--gnome-button-suggested-action-background) !important;
|
||||
border: 1px solid var(--gnome-button-suggested-action-border-color) !important;
|
||||
border-radius: 5px 5px 0 0;
|
||||
border-radius: 8px 8px 0 0;
|
||||
min-height: 34px !important;
|
||||
}
|
||||
|
||||
#protections-popup[toast] #protections-popup-mainView-panel-header {
|
||||
border-radius: 5px 5px 5px 5px !important;
|
||||
border-radius: 8px 8px 8px 8px !important;
|
||||
}
|
||||
|
||||
#protections-popup-message {
|
||||
@@ -220,7 +220,7 @@
|
||||
background: var(--gnome-button-background) !important;
|
||||
border: 1px solid var(--gnome-button-border-color) !important;
|
||||
border-top: 0 !important;
|
||||
border-radius: 0 0 5px 5px;
|
||||
border-radius: 0 0 8px 8px;
|
||||
}
|
||||
#protections-popup[hasException] #protections-popup-tp-switch-section {
|
||||
margin-bottom: 10px !important;
|
||||
|
||||
@@ -8,7 +8,7 @@ menupopup {
|
||||
-moz-appearance: none !important;
|
||||
background: var(--gnome-menu-background) !important;
|
||||
border: 1px solid var(--gnome-menu-border-color) !important;
|
||||
border-radius: 5px;
|
||||
border-radius: 8px;
|
||||
padding: 4px 0 !important;
|
||||
color: var(--gnome-toolbar-color) !important;
|
||||
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
|
||||
@@ -92,7 +92,7 @@ panelview {
|
||||
.subviewbutton:not(.subviewbutton-back),
|
||||
.toolbarbutton-1, .protections-popup-category,
|
||||
.identity-popup-content-blocking-category {
|
||||
border-radius: 5px !important;
|
||||
border-radius: 8px !important;
|
||||
color: var(--gnome-toolbar-color) !important;
|
||||
font: menu !important;
|
||||
}
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
|
||||
@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
|
||||
toolbarbutton#alltabs-button {
|
||||
-moz-binding: url("scrollbars.xml#js");
|
||||
}
|
||||
|
||||
#alltabs-button:not(#hack) {
|
||||
list-style-image: none !important;
|
||||
position: relative;
|
||||
@@ -20,7 +16,7 @@ toolbarbutton#alltabs-button {
|
||||
|
||||
#alltabs-button::before {
|
||||
position: relative;
|
||||
top: 2px;
|
||||
top: 2px;
|
||||
content: url("../icons/pan-down-symbolic.svg");
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
@@ -28,6 +24,7 @@ toolbarbutton#alltabs-button {
|
||||
filter: invert(100%) brightness(200%);
|
||||
}
|
||||
}
|
||||
|
||||
#alltabs-button:-moz-window-inactive::before {
|
||||
opacity: 0.7 !important;
|
||||
}
|
||||
@@ -1,125 +0,0 @@
|
||||
(function () {
|
||||
var css = `
|
||||
@namespace url(http: //www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
|
||||
@namespace html url("http://www.w3.org/1999/xhtml");
|
||||
|
||||
/* Colours - can't be read from chrome CSS. Setting on :root doesn't work. */
|
||||
:not(select):not(hbox) > scrollbar {
|
||||
--gnome-scrollbars-hover-bgcolor: rgba(192, 192, 192, 0.75);
|
||||
--gnome-scrollbars-hover-border-color: rgba(192, 192, 192, 0.75);
|
||||
--gnome-scrollbars-thumb-bgcolor: rgba(0, 0, 0, 0.32);
|
||||
--gnome-scrollbars-thumb-blend-mode: multiply;
|
||||
--gnome-scrollbars-thumb-outline: 1px solid rgba(255, 255, 255, 0.4);
|
||||
--gnome-scrollbars-thumb-hover-bgcolor: #75797a;
|
||||
--gnome-scrollbars-thumb-active-bgcolor: #4a90d9;
|
||||
}
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:not(select):not(hbox) > scrollbar {
|
||||
--gnome-scrollbars-hover-bgcolor: rgba(29, 30, 31, 0.75);
|
||||
--gnome-scrollbars-hover-border-color: rgba(13, 17, 18, 0.75);
|
||||
--gnome-scrollbars-thumb-bgcolor: rgba(252, 254, 251, 0.58);
|
||||
--gnome-scrollbars-thumb-blend-mode: screen;
|
||||
--gnome-scrollbars-thumb-outline: 1px solid rgba(0, 0, 0, 0.4);
|
||||
--gnome-scrollbars-thumb-hover-bgcolor: #d4d5d4;
|
||||
--gnome-scrollbars-thumb-active-bgcolor: #15539e;
|
||||
}
|
||||
}
|
||||
|
||||
/* All states */
|
||||
:not(select):not(hbox) > scrollbar {
|
||||
-moz-appearance: none !important;
|
||||
position: relative;
|
||||
box-sizing: border-box !important;
|
||||
background-color: transparent;
|
||||
background-image: none;
|
||||
z-index: 1;
|
||||
pointer-events: auto;
|
||||
width: auto !important;
|
||||
border-style: solid !important;
|
||||
display: flex !important;
|
||||
justify-content: flex-end;
|
||||
transition: all 0.1s linear;
|
||||
}
|
||||
scrollbar[root="true"] {
|
||||
z-index: 2147483647 !important;
|
||||
}
|
||||
.panel-subview-body > scrollbar[orient="vertical"] {
|
||||
width: 16px !important;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="vertical"] {
|
||||
border-width: 0 0 0 1px;
|
||||
-moz-margin-start: -13px;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="horizontal"] {
|
||||
border-width: 1px 0 0 0;
|
||||
margin-top: -13px;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar thumb {
|
||||
-moz-appearance: none !important;
|
||||
mix-blend-mode: var(--gnome-scrollbars-thumb-blend-mode);
|
||||
/* Make handle edge-grabbable */
|
||||
border: 3px solid transparent;
|
||||
background-clip: padding-box;
|
||||
border-radius: 6px;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="vertical"] thumb {
|
||||
min-height: 44px !important;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="horizontal"] thumb {
|
||||
min-width: 44px !important;
|
||||
}
|
||||
/* Unhovered */
|
||||
:not(select):not(hbox) > scrollbar {
|
||||
background-color: transparent;
|
||||
border-color: transparent;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="vertical"] {
|
||||
padding: 0 1px 0 5px;
|
||||
margin-right: -3px;
|
||||
width: 0px !important;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="horizontal"] {
|
||||
padding: 5px 0 1px 0;
|
||||
margin-bottom: -3px;
|
||||
height: 16px !important;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar thumb {
|
||||
background-color: var(--gnome-scrollbars-thumb-bgcolor);
|
||||
outline: var(--gnome-scrollbars-thumb-outline);
|
||||
outline-offset: -3px;
|
||||
-moz-outline-radius: 3px;
|
||||
}
|
||||
/* Hovered scrollbar */
|
||||
:not(select):not(hbox) > scrollbar:hover {
|
||||
background-color: var(--gnome-scrollbars-hover-bgcolor);
|
||||
border-color: var(--gnome-scrollbars-hover-border-color);
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar:hover thumb {
|
||||
outline-width: 0;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="vertical"]:hover {
|
||||
padding: 0 1px 0 0;
|
||||
margin-right: -1px;
|
||||
width: 14px !important;
|
||||
}
|
||||
:not(select):not(hbox) > scrollbar[orient="horizontal"]:hover {
|
||||
padding: 0 0 1px 0;
|
||||
margin-bottom: -1px;
|
||||
height: 14px !important;
|
||||
}
|
||||
/* Hovered thumb */
|
||||
:not(select):not(hbox) > scrollbar:hover thumb:hover {
|
||||
background-color: var(--gnome-scrollbars-thumb-hover-bgcolor);
|
||||
}
|
||||
/* Grabbed thumb */
|
||||
:not(select):not(hbox) > scrollbar:hover thumb:active {
|
||||
background-color: var(--gnome-scrollbars-thumb-active-bgcolor);
|
||||
mix-blend-mode: normal;
|
||||
}
|
||||
`;
|
||||
|
||||
var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
|
||||
var uri = makeURI('data:text/css;charset=UTF=8,' + encodeURIComponent(css));
|
||||
sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET)
|
||||
})();
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<bindings id="generalBindings"
|
||||
xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl">
|
||||
|
||||
<binding id="js">
|
||||
<implementation>
|
||||
<constructor><![CDATA[
|
||||
function makeRelativePathURI(name) {
|
||||
let absolutePath = Components.stack.filename;
|
||||
return absolutePath.substring(0, absolutePath.lastIndexOf("/") + 1) + name;
|
||||
}
|
||||
|
||||
// The following code executes in the browser context,
|
||||
// i.e. chrome://browser/content/browser.xul
|
||||
Services.scriptloader.loadSubScript(makeRelativePathURI("scrollbars.js"), window);
|
||||
]]></constructor>
|
||||
</implementation>
|
||||
</binding>
|
||||
</bindings>
|
||||
@@ -212,8 +212,8 @@ tab[selected]:-moz-window-inactive {
|
||||
border-image: none !important;
|
||||
margin-left: -1px !important;
|
||||
margin-right: -1px !important;
|
||||
box-shadow: 1px 0 var(--gnome-toolbar-border-color),
|
||||
-1px 0 var(--gnome-toolbar-border-color),
|
||||
box-shadow: 1px 0 var(--gnome-toolbar-border-color), 1px 0 3px rgba(0, 0, 0, 0.08),
|
||||
-1px 0 var(--gnome-toolbar-border-color), -1px 0 3px rgba(0, 0, 0, 0.08),
|
||||
inset 0 -1px var(--gnome-toolbar-border-color) !important;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user