Skip to content

Commit

Permalink
Prettified Code!
Browse files Browse the repository at this point in the history
  • Loading branch information
zero01101 authored and actions-user committed Dec 16, 2023
1 parent b8f64d4 commit 7de3a26
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
Expand Down
24 changes: 12 additions & 12 deletions js/ui/tool/dream.js
Original file line number Diff line number Diff line change
Expand Up @@ -1841,8 +1841,8 @@ const dreamTool = () =>
state.cursorSize > stableDiffusionData.width
? "#FBB5"
: state.cursorSize < stableDiffusionData.width
? "#BFB5"
: "#FFF5";
? "#BFB5"
: "#FFF5";

state.erasePrevReticle = _tool._reticle_draw(
bb,
Expand All @@ -1869,8 +1869,8 @@ const dreamTool = () =>
state.cursorSize > stableDiffusionData.width
? "#FBB5"
: state.cursorSize < stableDiffusionData.width
? "#BFB5"
: "#FFF5";
? "#BFB5"
: "#FFF5";
state.erasePrevReticle = _tool._reticle_draw(
getBoundingBox(
evn.x,
Expand Down Expand Up @@ -2184,7 +2184,7 @@ const dreamTool = () =>
menu.appendChild(state.ctxmenu.outpaintTypeSelect);
menu.appendChild(state.ctxmenu.overMaskPxLabel);
menu.appendChild(state.ctxmenu.eagerGenerateCountLabel);

if (localStorage.getItem("openoutpaint/dream-keepunmasked") == "true") {
state.ctxmenu.keepUnmaskedBlurSlider.classList.remove("invisible");
} else {
Expand All @@ -2198,7 +2198,6 @@ const dreamTool = () =>
state.ctxmenu.carveBlurSlider.classList.add("invisible");
state.ctxmenu.carveThresholdSlider.classList.add("invisible");
}

},
shortcut: "D",
}
Expand Down Expand Up @@ -2386,8 +2385,8 @@ const img2imgTool = () =>
state.cursorSize > stableDiffusionData.width
? "#FBB5"
: state.cursorSize < stableDiffusionData.width
? "#BFB5"
: "#FFF5";
? "#BFB5"
: "#FFF5";
state.erasePrevReticle = _tool._reticle_draw(
bb,
"Img2Img",
Expand Down Expand Up @@ -2424,8 +2423,8 @@ const img2imgTool = () =>
state.cursorSize > stableDiffusionData.width
? "#FBB5"
: state.cursorSize < stableDiffusionData.width
? "#BFB5"
: "#FFF5";
? "#BFB5"
: "#FFF5";
state.erasePrevReticle = _tool._reticle_draw(
bb,
"Img2Img",
Expand Down Expand Up @@ -2864,7 +2863,9 @@ const img2imgTool = () =>
menu.appendChild(state.ctxmenu.borderMaskSlider);
menu.appendChild(state.ctxmenu.eagerGenerateCountLabel);

if (localStorage.getItem("openoutpaint/img2img-keepunmasked") == "true") {
if (
localStorage.getItem("openoutpaint/img2img-keepunmasked") == "true"
) {
state.ctxmenu.keepUnmaskedBlurSlider.classList.remove("invisible");
} else {
state.ctxmenu.keepUnmaskedBlurSlider.classList.add("invisible");
Expand All @@ -2877,7 +2878,6 @@ const img2imgTool = () =>
state.ctxmenu.carveBlurSlider.classList.add("invisible");
state.ctxmenu.carveThresholdSlider.classList.add("invisible");
}

},
shortcut: "I",
}
Expand Down
4 changes: 2 additions & 2 deletions pages/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
? true
: localStorage.getItem(
"openoutpaint/settings.update-prompt-on-more-button"
) === "true";
) === "true";
updatePromptOnMoreButton.checked = _enable_update_prompt_on_more_button;

let _enable_jump_to_1st_new_on_more_button =
Expand All @@ -268,7 +268,7 @@
? true
: localStorage.getItem(
"openoutpaint/settings.jump-to-1st-new-on-more-button"
) === "true";
) === "true";
jumpTo1stNewOnMoreButton.checked = _enable_jump_to_1st_new_on_more_button;

writeToLocalStorage();
Expand Down

0 comments on commit 7de3a26

Please sign in to comment.