Skip to content

Commit

Permalink
change reload icons along with animation
Browse files Browse the repository at this point in the history
  • Loading branch information
TanvirOnGH committed Jul 16, 2024
1 parent 3f8e631 commit 25aa3e1
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 3 deletions.
20 changes: 19 additions & 1 deletion chrome/browser/icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
}

/* Based on: <https://gist.githubusercontent.com/qaz69wsx/83a90423163b65a8344b2e60fc356a58/raw/d9fbd601430b834e9a658fd8bebbfee2cb914300/menu_icons.css> */
/* And: <https://github.com/bmFtZQ/edge-frfox/raw/main/chrome/icons/icons.css> */
/* Icons in menus */
.subviewbutton:not(.subviewbutton-iconic, [image], .all-tabs-close-button)
> image {
Expand All @@ -97,6 +98,23 @@
fill: currentColor;
}

/* Stop-Reload Animation */
#stop-reload-button[animate]
> #reload-button[displaystop]
+ #stop-button
> .toolbarbutton-animatable-box
> .toolbarbutton-animatable-image {
background-image: url("../icons/reload-to-stop.svg") !important;
}

/* Stop-Reload Animation */
#stop-reload-button[animate]
> #reload-button
> .toolbarbutton-animatable-box
> .toolbarbutton-animatable-image {
background-image: url("../icons/stop-to-reload.svg") !important;
}

#overflowMenu-customize-button > .toolbarbutton-icon {
margin-inline-end: 0.5em !important;
}
Expand Down Expand Up @@ -304,7 +322,7 @@ menupopup.toolbar-menupopup menuitem:not(.menuitem-iconic) {
#context_reloadSelectedTabs,
#toolbar-context-reloadSelectedTab,
#context-reloadframe {
background-image: url("chrome://global/skin/icons/reload.svg");
background-image: url("../icons/reload.svg");
}

#context_toggleMuteTab,
Expand Down
28 changes: 28 additions & 0 deletions chrome/icons/reload-to-stop.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: 3 additions & 1 deletion chrome/icons/reload.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 chrome/icons/reload2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions chrome/icons/stop-to-reload.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion chrome/menu/contextmenu.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ menupopup menuseparator {
}

#context-reload {
list-style-image: url("../icons/reload.svg") !important;
list-style-image: url("../icons/reload2.svg") !important;
}

#context-stop {
Expand Down

0 comments on commit 25aa3e1

Please sign in to comment.