From 17d0f26385c5a06f4abca98e0d04344b0d4ec86a Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Fri, 26 May 2023 14:47:26 +0800 Subject: [PATCH] Fixed #879 --- .../icons/audio-muted-symbolic-light.svg | 88 +---- .../common/icons/audio-muted-symbolic.svg | 81 +---- .../icons/audio-playing-symbolic-light.svg | 71 +--- .../firefox/common/icons/bullet-symbolic.svg | 35 +- .../firefox/common/icons/key-symbolic.svg | 303 +----------------- .../common/icons/pan-down-symbolic-light.svg | 2 +- .../common/icons/pan-end-symbolic-light.svg | 2 +- .../common/icons/save-to-pocket-light.svg | 55 +--- .../firefox/common/icons/select-symbolic.svg | 49 +-- .../common/icons/tab-audio-blocked-small.svg | 4 + .../common/icons/tab-sync-symbolic-light.svg | 53 +-- .../common/icons/tab-sync-symbolic.svg | 11 +- .../common/icons/user-not-tracked-dark.svg | 6 +- .../icons/window-close-symbolic-light.svg | 3 +- .../common/icons/window-new-symbolic.svg | 11 +- src/other/firefox/common/pages/newtab.css | 46 ++- src/other/firefox/common/parts/icons.css | 8 + src/other/firefox/common/parts/popups.css | 22 +- 18 files changed, 113 insertions(+), 737 deletions(-) create mode 100644 src/other/firefox/common/icons/tab-audio-blocked-small.svg diff --git a/src/other/firefox/common/icons/audio-muted-symbolic-light.svg b/src/other/firefox/common/icons/audio-muted-symbolic-light.svg index cd6c9f9..12fd4be 100644 --- a/src/other/firefox/common/icons/audio-muted-symbolic-light.svg +++ b/src/other/firefox/common/icons/audio-muted-symbolic-light.svg @@ -1,86 +1,4 @@ - - - - - - - - - - - - - - + + + diff --git a/src/other/firefox/common/icons/audio-muted-symbolic.svg b/src/other/firefox/common/icons/audio-muted-symbolic.svg index 905e856..7e8210a 100644 --- a/src/other/firefox/common/icons/audio-muted-symbolic.svg +++ b/src/other/firefox/common/icons/audio-muted-symbolic.svg @@ -1,79 +1,4 @@ - - - - - - - - - - - - - - + + + diff --git a/src/other/firefox/common/icons/audio-playing-symbolic-light.svg b/src/other/firefox/common/icons/audio-playing-symbolic-light.svg index 57a68dc..64a8afd 100644 --- a/src/other/firefox/common/icons/audio-playing-symbolic-light.svg +++ b/src/other/firefox/common/icons/audio-playing-symbolic-light.svg @@ -1,70 +1,3 @@ - - - - - - - - - - - - - + + diff --git a/src/other/firefox/common/icons/bullet-symbolic.svg b/src/other/firefox/common/icons/bullet-symbolic.svg index 2c1dfc5..b387316 100644 --- a/src/other/firefox/common/icons/bullet-symbolic.svg +++ b/src/other/firefox/common/icons/bullet-symbolic.svg @@ -5,7 +5,7 @@ version="1.1" id="svg442" sodipodi:docname="bullet-symbolic.svg" - inkscape:version="1.2 (dc2aedaf03, 2022-05-15)" + inkscape:version="1.2.2 (b0a8486541, 2022-12-01)" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" @@ -22,26 +22,17 @@ inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" showgrid="false" - inkscape:zoom="16.857143" - inkscape:cx="6.9703389" - inkscape:cy="6.9999999" - inkscape:window-width="960" - inkscape:window-height="600" - inkscape:window-x="25" - inkscape:window-y="59" - inkscape:window-maximized="0" + inkscape:zoom="33.714286" + inkscape:cx="-7.0444915" + inkscape:cy="8.0677965" + inkscape:window-width="3840" + inkscape:window-height="2034" + inkscape:window-x="0" + inkscape:window-y="58" + inkscape:window-maximized="1" inkscape:current-layer="svg442" /> - - - + diff --git a/src/other/firefox/common/icons/key-symbolic.svg b/src/other/firefox/common/icons/key-symbolic.svg index a0cfcf1..651a9d0 100644 --- a/src/other/firefox/common/icons/key-symbolic.svg +++ b/src/other/firefox/common/icons/key-symbolic.svg @@ -1,302 +1,3 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/src/other/firefox/common/icons/pan-down-symbolic-light.svg b/src/other/firefox/common/icons/pan-down-symbolic-light.svg index 861f022..84fcd70 100644 --- a/src/other/firefox/common/icons/pan-down-symbolic-light.svg +++ b/src/other/firefox/common/icons/pan-down-symbolic-light.svg @@ -1,3 +1,3 @@ - + diff --git a/src/other/firefox/common/icons/pan-end-symbolic-light.svg b/src/other/firefox/common/icons/pan-end-symbolic-light.svg index 425d85b..72a9a55 100644 --- a/src/other/firefox/common/icons/pan-end-symbolic-light.svg +++ b/src/other/firefox/common/icons/pan-end-symbolic-light.svg @@ -1,3 +1,3 @@ - + diff --git a/src/other/firefox/common/icons/save-to-pocket-light.svg b/src/other/firefox/common/icons/save-to-pocket-light.svg index 2fe1226..ed4b015 100644 --- a/src/other/firefox/common/icons/save-to-pocket-light.svg +++ b/src/other/firefox/common/icons/save-to-pocket-light.svg @@ -1,51 +1,6 @@ - - - - - - - - - + + + + + diff --git a/src/other/firefox/common/icons/select-symbolic.svg b/src/other/firefox/common/icons/select-symbolic.svg index 050fe29..48d9afb 100644 --- a/src/other/firefox/common/icons/select-symbolic.svg +++ b/src/other/firefox/common/icons/select-symbolic.svg @@ -1,48 +1,3 @@ - - - - - - - + + diff --git a/src/other/firefox/common/icons/tab-audio-blocked-small.svg b/src/other/firefox/common/icons/tab-audio-blocked-small.svg new file mode 100644 index 0000000..7233fbf --- /dev/null +++ b/src/other/firefox/common/icons/tab-audio-blocked-small.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/other/firefox/common/icons/tab-sync-symbolic-light.svg b/src/other/firefox/common/icons/tab-sync-symbolic-light.svg index 9d702df..a22b39c 100644 --- a/src/other/firefox/common/icons/tab-sync-symbolic-light.svg +++ b/src/other/firefox/common/icons/tab-sync-symbolic-light.svg @@ -1,51 +1,4 @@ - - - - - - - - + + + diff --git a/src/other/firefox/common/icons/tab-sync-symbolic.svg b/src/other/firefox/common/icons/tab-sync-symbolic.svg index 4129e6f..50ab799 100644 --- a/src/other/firefox/common/icons/tab-sync-symbolic.svg +++ b/src/other/firefox/common/icons/tab-sync-symbolic.svg @@ -1,9 +1,4 @@ - - - - - - + + + diff --git a/src/other/firefox/common/icons/user-not-tracked-dark.svg b/src/other/firefox/common/icons/user-not-tracked-dark.svg index 063cfcd..8d0b3dd 100644 --- a/src/other/firefox/common/icons/user-not-tracked-dark.svg +++ b/src/other/firefox/common/icons/user-not-tracked-dark.svg @@ -1,6 +1,4 @@ - - - - + + diff --git a/src/other/firefox/common/icons/window-close-symbolic-light.svg b/src/other/firefox/common/icons/window-close-symbolic-light.svg index fe15e26..34e63cc 100644 --- a/src/other/firefox/common/icons/window-close-symbolic-light.svg +++ b/src/other/firefox/common/icons/window-close-symbolic-light.svg @@ -1,4 +1,3 @@ - Gnome Symbolic Icons - + diff --git a/src/other/firefox/common/icons/window-new-symbolic.svg b/src/other/firefox/common/icons/window-new-symbolic.svg index 4e50a7c..ac5d4f4 100644 --- a/src/other/firefox/common/icons/window-new-symbolic.svg +++ b/src/other/firefox/common/icons/window-new-symbolic.svg @@ -1,9 +1,4 @@ - - - - - - + + + diff --git a/src/other/firefox/common/pages/newtab.css b/src/other/firefox/common/pages/newtab.css index 1c94e84..6a5daad 100644 --- a/src/other/firefox/common/pages/newtab.css +++ b/src/other/firefox/common/pages/newtab.css @@ -1,9 +1,45 @@ /* about:newtab */ @-moz-document url("about:newtab"), url("about:home") { - body { - --newtab-background-color: var(--gnome-browser-before-load-background) !important; - --newtab-background-color-secondary: var(--gnome-menu-background) !important; - --newtab-primary-action-background: var(--gnome-accent) !important; - } +body { + --newtab-background-color: var(--gnome-browser-before-load-background) !important; + --newtab-background-color-secondary: var(--gnome-menu-background) !important; + --newtab-primary-action-background: var(--theme-primary-color) !important; + --newtab-primary-element-text-color: #ffffff !important; +} + +.context-menu { + background: var(--gnome-menu-background) !important; + border-radius: 12px !important; + box-shadow: var(--gnome-popover-shadow) !important; + padding: 6px !important; +} + +@media (prefers-color-scheme: dark) { +.context-menu { + border: 1px solid rgba(255, 255, 255, 0.06) !important; +} +} + +.context-menu > ul { + padding: 0 !important; +} + +.context-menu > ul > li > a, +.context-menu > ul > li > button { + border-radius: 6px !important; + padding: 6px 12px !important; +} + +.home-section .section .switch { + width: 30px !important; + height: 20px !important; +} + +.home-section .section .slider::before { + height: 12px !important; + width: 12px !important; + inset-inline-start: 3px; + bottom: 3px; +} } diff --git a/src/other/firefox/common/parts/icons.css b/src/other/firefox/common/parts/icons.css index 09f7077..54bf9e4 100644 --- a/src/other/firefox/common/parts/icons.css +++ b/src/other/firefox/common/parts/icons.css @@ -194,6 +194,14 @@ menu[disabled] > .menu-right { list-style-image: url("../icons/audio-muted-symbolic.svg") !important; } +.tab-icon-overlay[activemedia-blocked] { + list-style-image: url("../icons/tab-audio-blocked-small.svg") !important; +} + +.tab-icon-stack[activemedia-blocked="true"] .tab-icon-image { + display: none; +} + /* Private browsing button */ #privatebrowsing-button { list-style-image: url("../icons/user-not-tracked.svg") !important; diff --git a/src/other/firefox/common/parts/popups.css b/src/other/firefox/common/parts/popups.css index 11166b5..1baf2ce 100644 --- a/src/other/firefox/common/parts/popups.css +++ b/src/other/firefox/common/parts/popups.css @@ -96,10 +96,6 @@ panel[type="arrow"] { margin: 10px -18px 0 !important; } -panel[type="autocomplete-richlistbox"] { - margin: 0 !important; -} - /* Style popovers */ .panel-arrowcontent .panel-arrowcontent, .panel-header, .PanelUI-subView, @@ -262,15 +258,29 @@ panelview > toolbarseparator:not([orient="vertical"]), /* Auto complete popups */ panel[type="autocomplete-richlistbox"] { - background: var(--gnome-menu-background) !important; + background: none !important; border: 0 !important; - padding: 4px 0 !important; + padding: 0 !important; color: var(--gnome-toolbar-color) !important; + margin: 0 !important; } + .autocomplete-richlistbox { margin: 0 !important; } +#PopupAutoComplete > richlistbox > richlistitem { + min-height: 20px; + border: 0; + border-radius: 3px !important; + padding: 0 6px !important; +} + +#PopupAutoComplete > richlistbox > richlistitem:hover { + background: var(--theme-primary-color) !important; + color: #ffffff !important; +} + .autocomplete-richlistitem:not([type="loginsFooter"]) { color: var(--gnome-toolbar-color) !important; font: menu !important;