Skip to content

Commit

Permalink
Feat: Icons - Apply new icons by @zapSNH
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Oct 29, 2023
1 parent 8482b77 commit a25dca3
Show file tree
Hide file tree
Showing 19 changed files with 624 additions and 281 deletions.
412 changes: 292 additions & 120 deletions css/leptonChrome.css

Large diffs are not rendered by default.

193 changes: 133 additions & 60 deletions css/leptonChromeESR.css

Large diffs are not rendered by default.

60 changes: 38 additions & 22 deletions css/leptonContent.css

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

30 changes: 19 additions & 11 deletions css/leptonContentESR.css

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

1 change: 0 additions & 1 deletion icons/command-reponsivemode.svg

This file was deleted.

8 changes: 1 addition & 7 deletions icons/command-responsivemode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 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/tab-unload-photon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
16 changes: 8 additions & 8 deletions src/icons/_global_menu.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** Global Menu ***************************************************************/
/*= menu_FilePopup ===========================================================*/
#menu_newNavigatorTab {
--menuitem-image: url("chrome://browser/skin/new-tab.svg");
--menuitem-image: var(--uc-new-tab-icon);
}
#menu_newUserContext {
--menuitem-image: url("../icons/container-openin-16.svg");
Expand Down Expand Up @@ -30,7 +30,7 @@
--menuitem-image: url("../icons/toolbarButton-download.svg");
}
#menu_sendLink {
--menuitem-image: url("chrome://browser/skin/mail.svg");
--menuitem-image: url("../icons/mail.svg");
}
menu.share-tab-url-item {
--menuitem-image: url("chrome://browser/skin/share.svg");
Expand Down Expand Up @@ -70,13 +70,13 @@ menu.share-tab-url-item {
}

#menu_cut {
--menuitem-image: url("chrome://browser/skin/edit-cut.svg");
--menuitem-image: url("../icons/edit-cut.svg");
}
#menu_copy {
--menuitem-image: url("../icons/edit-copy.svg");
}
#menu_paste {
--menuitem-image: url("chrome://browser/skin/edit-paste.svg");
--menuitem-image: url("../icons/edit-paste.svg");
}
#menu_delete {
--menuitem-image: url("chrome://global/skin/icons/delete.svg");
Expand Down Expand Up @@ -115,7 +115,7 @@ menu.share-tab-url-item {
--menuitem-image: url("../icons/document-css.svg");
}
#repair-text-encoding {
--menuitem-image: url("chrome://browser/skin/characterEncoding.svg");
--menuitem-image: url("../icons/characterEncoding.svg");
}

#enterFullScreenItem {
Expand All @@ -132,7 +132,7 @@ menu.share-tab-url-item {
--menuitem-image: url("chrome://browser/skin/reader-mode.svg");
}
#menu_showAllTabs {
--menuitem-image: url("../icons/tab.svg");
--menuitem-image: var(--uc-tab-icon);
}

#documentDirection-swap {
Expand Down Expand Up @@ -177,7 +177,7 @@ menu.share-tab-url-item {
--menuitem-image: url("chrome://browser/skin/history.svg");
}
#sanitizeItem {
--menuitem-image: url("chrome://browser/skin/forget.svg");
--menuitem-image: url("../icons/forget.svg");
}

#sync-tabs-menuitem {
Expand All @@ -193,7 +193,7 @@ menu.share-tab-url-item {
--menuitem-image: url("chrome://global/skin/icons/search-glass.svg");
}
#historyUndoMenu {
--menuitem-image: url("chrome://browser/skin/tab.svg");
--menuitem-image: var(--uc-tab-icon);
}
#historyUndoWindowMenu {
--menuitem-image: url("chrome://browser/skin/window.svg");
Expand Down
25 changes: 25 additions & 0 deletions src/icons/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@
:root {
@include initIcons;

--uc-tab-icon: url("../icons/tab.svg");
--uc-tab-copy-icon: url("../icons/tab-copy.svg");
--uc-tab-unload-icon: url("../icons/tab-unload.svg");
--uc-tab-multiple-icon: url("../icons/tab-desktop-multiple.svg");
--uc-new-tab-icon: url("../icons/new-tab.svg");
--uc-new-tab-forward-icon: url("../icons/new-tab-forward.svg");
--uc-new-tab-multiple-icon: url("../icons/new-tab-multiple.svg");
--uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward.svg");
@include Option("userChrome.tab.connect_to_window") {
--uc-tab-icon: url("../icons/tab-photon.svg");
--uc-tab-copy-icon: url("../icons/tab-copy-photon.svg");
--uc-tab-unload-icon: url("../icons/tab-unload-photon.svg");
--uc-tab-multiple-icon: url("../icons/tab-multiple.svg");
--uc-new-tab-icon: url("../icons/new-tab-photon.svg");
--uc-new-tab-forward-icon: url("../icons/new-tab-forward-photon.svg");
--uc-new-tab-multiple-icon: url("../icons/new-tab-multiple-photon.svg");
--uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward-photon.svg");
}

--uc-sidebar-icon: url("chrome://browser/skin/sidebars.svg");
--uc-sidebar-icon-reverse: url("chrome://browser/skin/sidebars-right.svg");
@include Has {
Expand All @@ -13,6 +32,12 @@
}
}


.urlbarView-row[source="tabs"] > .urlbarView-row-inner > .urlbarView-no-wrap > .urlbarView-favicon,
#urlbar-engine-one-off-item-tabs {
list-style-image: var(--uc-tab-icon) !important;
}

/** Library - Icons Replace ***************************************************/
@include Option("userChrome.icon.library") {
@import "../library/chrome";
Expand Down
Loading

0 comments on commit a25dca3

Please sign in to comment.