Skip to content

Commit

Permalink
Use dark theme SVG
Browse files Browse the repository at this point in the history
  • Loading branch information
1j01 committed May 29, 2020
1 parent 5f70d64 commit e6d9704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/$ToolBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ function $ToolBox(tools, is_extras){
const update_css = ()=> {
const theme_folder = `images/${get_theme().replace(/\.css/, "")}`;
const use_svg = !theme_dev_blob_url && (
(get_theme() === "classic.css" &&
(get_theme().match(/classic.css|dark.css/) &&
(window.devicePixelRatio >= 3 || (window.devicePixelRatio % 1) !== 0)
) ||
$("body").hasClass("eye-gaze-mode")
);
const background_image = theme_dev_blob_url ? (
`url(${theme_dev_blob_url})`
) : (
use_svg ? `url(images/classic/tools.svg)` : `url(${theme_folder}/tools.png)`
use_svg ? `url(images/${get_theme() === "dark.css" ? "dark" : "classic"}/tools.svg)` : `url(${theme_folder}/tools.png)`
);
$icon.css({
display: "block",
Expand Down

0 comments on commit e6d9704

Please sign in to comment.