Skip to content

Commit

Permalink
Merge branch 'master' into photon-style
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Jan 23, 2024
2 parents 37c64cb + 4545b12 commit 902232c
Show file tree
Hide file tree
Showing 20 changed files with 291 additions and 89 deletions.
192 changes: 146 additions & 46 deletions css/leptonChrome.css

Large diffs are not rendered by default.

95 changes: 72 additions & 23 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.
5 changes: 5 additions & 0 deletions src/compatibility/_theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,8 @@ vbox[part="drop-indicator-bar"] > image[part="drop-indicator"] {
#main-menubar {
--panel-border-radius: var(--arrowpanel-border-radius);
}

/*= Infobar Align #858 =======================================================*/
.container.infobar {
align-items: center !important;
}
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
3 changes: 2 additions & 1 deletion src/icons/context_menu/_content_area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
#spell-no-suggestions {
--menuitem-image: url("../icons/text-proofing-tools.svg");
}
#spell-add-to-dictionary {
#spell-add-to-dictionary,
#spell-add-dictionaries {
--menuitem-image: url("../icons/book-add.svg");
}
#spell-undo-add-to-dictionary {
Expand Down
25 changes: 25 additions & 0 deletions src/icons/layout/_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,29 @@ $_layoutCommonMenus: (
list-style-image: var(--menuitem-image, url("../icons/blank.svg")) !important;
}
}

/* Exeptions */
// Mac unified extenstions #847
#unified-extensions-context-menu > menuitem::before {
padding-inline: 0 !important;
}

:not(menu, #ContentSelectDropdown, #context-navigation) > menupopup:not(.in-menulist) > menuitem {
&:not(.menuitem-iconic, .bookmark-item, .in-menulist, [checked="true"]) {
padding-inline-start: 0 !important;
}

&:not(.menuitem-iconic):has(.menu-iconic-left) {
&[checked] {
padding-left: 4px !important;
background-image: none !important;
}
&[checked="true"] {
padding-left: calc(var(--context-menu-mac-padding) - 8px) !important;
.menu-iconic-text {
padding-left: 8px !important;
}
}
}
}
}
Loading

0 comments on commit 902232c

Please sign in to comment.