Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update icons to match Firefox Proton (1.25px) #852

Merged
merged 4 commits into from
Dec 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 38 additions & 14 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 19 additions & 7 deletions css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions icons/command-console.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/command-eyedropper.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/firefox-view.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/flame.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions icons/tab-photon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions icons/translations.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/icons/_1.25px_stroke.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#firefox-view-button {
list-style-image: url("../icons/firefox-view.svg") !important;
}
#reset-pbm-toolbar-button {
list-style-image: url("../icons/flame.svg") !important;
}
#translations-button-icon {
list-style-image: url("../icons/translations.svg") !important;
}
6 changes: 3 additions & 3 deletions src/icons/_global_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -282,21 +282,21 @@ menu.share-tab-url-item {
--menuitem-image: url("../icons/command-frames.svg");
}
#menu_browserConsole {
--menuitem-image: url("chrome://devtools/skin/images/command-console.svg");
--menuitem-image: url("../icons/command-console.svg");
}
#menu_responsiveUI {
/* checkbox */
--menuitem-image: url("../icons/command-responsivemode.svg");
}
#menu_eyedropper {
/* checkbox */
--menuitem-image: url("chrome://devtools/skin/images/command-eyedropper.svg");
--menuitem-image: url("../icons/command-eyedropper.svg");
}
#menu_pageSource {
--menuitem-image: url("../icons/document-search.svg");
}
#extensionsForDevelopers {
--menuitem-image: url("chrome://devtools/skin/images/debugging-addons.svg");
--menuitem-image: url("chrome://mozapps/skin/extensions/extension.svg");
}

/*= windowPopup ==============================================================*/
Expand Down
5 changes: 5 additions & 0 deletions src/icons/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,10 @@
}
}

/** Icons - 1.25px Stroke Width ***********************************************/
@include Option("userChrome.icon.1-25px_stroke") {
@import "1.25px_stroke";
}

/** Icons for fork browsers ***************************************************/
@import "fork_browsers/index";
8 changes: 4 additions & 4 deletions src/icons/_panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
list-style-image: url("chrome://global/skin/icons/search-glass.svg");
}
#appMenu-translate-button {
list-style-image: url(chrome://browser/skin/translations.svg);
list-style-image: url("../icons/translations.svg");
}
#appMenu-zoom-controls2::before, /* Legacy v104 */
#appMenu-zoom-controls::before {
Expand Down Expand Up @@ -340,7 +340,7 @@ panelMenuBookmarkThisPage[starred] {
/* Browser Console */
#appmenu-developer-tools-view .subviewbutton:nth-last-child(5),
#PanelUI-developer-tools-view .subviewbutton:nth-last-child(5) {
list-style-image: url("chrome://devtools/skin/images/command-console.svg");
list-style-image: url("../icons/command-console.svg");
}
/* Responsive Design Mode */
#appmenu-developer-tools-view .subviewbutton:nth-last-child(4),
Expand All @@ -350,7 +350,7 @@ panelMenuBookmarkThisPage[starred] {
/* Eyedropper */
#appmenu-developer-tools-view .subviewbutton:nth-last-child(3),
#PanelUI-developer-tools-view .subviewbutton:nth-last-child(3) {
list-style-image: url("chrome://devtools/skin/images/command-eyedropper.svg");
list-style-image: url("../icons/command-eyedropper.svg");
}
/* Page Source - Edge file-search.svg */
#appmenu-developer-tools-view .subviewbutton:nth-last-child(2),
Expand All @@ -360,7 +360,7 @@ panelMenuBookmarkThisPage[starred] {
/* Extensions for Devel */
#appmenu-developer-tools-view .subviewbutton:nth-last-child(1),
#PanelUI-developer-tools-view .subviewbutton:nth-last-child(1) {
list-style-image: url("chrome://devtools/skin/images/debugging-addons.svg");
list-style-image: url("chrome://mozapps/skin/extensions/extension.svg");
}
#appmenu-developer-tools-view .subviewbutton:last-child {
margin-bottom: 6px !important;
Expand Down
Loading