Prettified Code!
This commit is contained in:
parent
b8f64d43ec
commit
7de3a268e9
3 changed files with 15 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en-US">
|
<html lang="en-US">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
|
|
|
@ -1841,8 +1841,8 @@ const dreamTool = () =>
|
||||||
state.cursorSize > stableDiffusionData.width
|
state.cursorSize > stableDiffusionData.width
|
||||||
? "#FBB5"
|
? "#FBB5"
|
||||||
: state.cursorSize < stableDiffusionData.width
|
: state.cursorSize < stableDiffusionData.width
|
||||||
? "#BFB5"
|
? "#BFB5"
|
||||||
: "#FFF5";
|
: "#FFF5";
|
||||||
|
|
||||||
state.erasePrevReticle = _tool._reticle_draw(
|
state.erasePrevReticle = _tool._reticle_draw(
|
||||||
bb,
|
bb,
|
||||||
|
@ -1869,8 +1869,8 @@ const dreamTool = () =>
|
||||||
state.cursorSize > stableDiffusionData.width
|
state.cursorSize > stableDiffusionData.width
|
||||||
? "#FBB5"
|
? "#FBB5"
|
||||||
: state.cursorSize < stableDiffusionData.width
|
: state.cursorSize < stableDiffusionData.width
|
||||||
? "#BFB5"
|
? "#BFB5"
|
||||||
: "#FFF5";
|
: "#FFF5";
|
||||||
state.erasePrevReticle = _tool._reticle_draw(
|
state.erasePrevReticle = _tool._reticle_draw(
|
||||||
getBoundingBox(
|
getBoundingBox(
|
||||||
evn.x,
|
evn.x,
|
||||||
|
@ -2198,7 +2198,6 @@ const dreamTool = () =>
|
||||||
state.ctxmenu.carveBlurSlider.classList.add("invisible");
|
state.ctxmenu.carveBlurSlider.classList.add("invisible");
|
||||||
state.ctxmenu.carveThresholdSlider.classList.add("invisible");
|
state.ctxmenu.carveThresholdSlider.classList.add("invisible");
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
shortcut: "D",
|
shortcut: "D",
|
||||||
}
|
}
|
||||||
|
@ -2386,8 +2385,8 @@ const img2imgTool = () =>
|
||||||
state.cursorSize > stableDiffusionData.width
|
state.cursorSize > stableDiffusionData.width
|
||||||
? "#FBB5"
|
? "#FBB5"
|
||||||
: state.cursorSize < stableDiffusionData.width
|
: state.cursorSize < stableDiffusionData.width
|
||||||
? "#BFB5"
|
? "#BFB5"
|
||||||
: "#FFF5";
|
: "#FFF5";
|
||||||
state.erasePrevReticle = _tool._reticle_draw(
|
state.erasePrevReticle = _tool._reticle_draw(
|
||||||
bb,
|
bb,
|
||||||
"Img2Img",
|
"Img2Img",
|
||||||
|
@ -2424,8 +2423,8 @@ const img2imgTool = () =>
|
||||||
state.cursorSize > stableDiffusionData.width
|
state.cursorSize > stableDiffusionData.width
|
||||||
? "#FBB5"
|
? "#FBB5"
|
||||||
: state.cursorSize < stableDiffusionData.width
|
: state.cursorSize < stableDiffusionData.width
|
||||||
? "#BFB5"
|
? "#BFB5"
|
||||||
: "#FFF5";
|
: "#FFF5";
|
||||||
state.erasePrevReticle = _tool._reticle_draw(
|
state.erasePrevReticle = _tool._reticle_draw(
|
||||||
bb,
|
bb,
|
||||||
"Img2Img",
|
"Img2Img",
|
||||||
|
@ -2864,7 +2863,9 @@ const img2imgTool = () =>
|
||||||
menu.appendChild(state.ctxmenu.borderMaskSlider);
|
menu.appendChild(state.ctxmenu.borderMaskSlider);
|
||||||
menu.appendChild(state.ctxmenu.eagerGenerateCountLabel);
|
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");
|
state.ctxmenu.keepUnmaskedBlurSlider.classList.remove("invisible");
|
||||||
} else {
|
} else {
|
||||||
state.ctxmenu.keepUnmaskedBlurSlider.classList.add("invisible");
|
state.ctxmenu.keepUnmaskedBlurSlider.classList.add("invisible");
|
||||||
|
@ -2877,7 +2878,6 @@ const img2imgTool = () =>
|
||||||
state.ctxmenu.carveBlurSlider.classList.add("invisible");
|
state.ctxmenu.carveBlurSlider.classList.add("invisible");
|
||||||
state.ctxmenu.carveThresholdSlider.classList.add("invisible");
|
state.ctxmenu.carveThresholdSlider.classList.add("invisible");
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
shortcut: "I",
|
shortcut: "I",
|
||||||
}
|
}
|
||||||
|
|
|
@ -258,7 +258,7 @@
|
||||||
? true
|
? true
|
||||||
: localStorage.getItem(
|
: localStorage.getItem(
|
||||||
"openoutpaint/settings.update-prompt-on-more-button"
|
"openoutpaint/settings.update-prompt-on-more-button"
|
||||||
) === "true";
|
) === "true";
|
||||||
updatePromptOnMoreButton.checked = _enable_update_prompt_on_more_button;
|
updatePromptOnMoreButton.checked = _enable_update_prompt_on_more_button;
|
||||||
|
|
||||||
let _enable_jump_to_1st_new_on_more_button =
|
let _enable_jump_to_1st_new_on_more_button =
|
||||||
|
@ -268,7 +268,7 @@
|
||||||
? true
|
? true
|
||||||
: localStorage.getItem(
|
: localStorage.getItem(
|
||||||
"openoutpaint/settings.jump-to-1st-new-on-more-button"
|
"openoutpaint/settings.jump-to-1st-new-on-more-button"
|
||||||
) === "true";
|
) === "true";
|
||||||
jumpTo1stNewOnMoreButton.checked = _enable_jump_to_1st_new_on_more_button;
|
jumpTo1stNewOnMoreButton.checked = _enable_jump_to_1st_new_on_more_button;
|
||||||
|
|
||||||
writeToLocalStorage();
|
writeToLocalStorage();
|
||||||
|
|
Loading…
Reference in a new issue