2023-08-12 13:42:34 -05:00
|
|
|
<!DOCTYPE html>
|
2022-12-07 21:26:37 -06:00
|
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>openOutpaint 🐠</title>
|
|
|
|
<!-- CSS Variables -->
|
2023-01-26 22:43:07 -06:00
|
|
|
<link href="../css/colors.css?v=f732f19" rel="stylesheet" />
|
2023-07-08 10:51:26 -05:00
|
|
|
<link href="../css/icons.css?v=e6f94af" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
2023-08-12 13:42:34 -05:00
|
|
|
<link href="../css/index.css?v=a1f5bff" rel="stylesheet" />
|
2023-01-09 22:08:48 -06:00
|
|
|
<link href="../css/layers.css?v=92c0352" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
2023-01-15 10:31:49 -06:00
|
|
|
<link href="../css/ui/generic.css?v=30837f8" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
2022-12-28 19:52:14 -06:00
|
|
|
<link href="../css/ui/history.css?v=0b03861" rel="stylesheet" />
|
2023-01-18 17:55:04 -06:00
|
|
|
<link href="../css/ui/layers.css?v=1d66c2b" rel="stylesheet" />
|
2022-12-28 19:52:14 -06:00
|
|
|
<link href="../css/ui/toolbar.css?v=109c78f" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
<!-- Tool Specific CSS -->
|
2022-12-28 19:52:14 -06:00
|
|
|
<link href="../css/ui/tool/dream.css?v=2d8a8ac" rel="stylesheet" />
|
|
|
|
<link href="../css/ui/tool/stamp.css?v=6f5ce15" rel="stylesheet" />
|
|
|
|
<link href="../css/ui/tool/colorbrush.css?v=57c8be5" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
|
|
|
|
|
|
|
<style>
|
2023-01-29 11:43:18 -06:00
|
|
|
* {
|
|
|
|
font-size: 100%;
|
|
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
2022-12-07 21:26:37 -06:00
|
|
|
body {
|
|
|
|
color: var(--c-text);
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
display: flex;
|
|
|
|
}
|
2023-01-29 11:43:18 -06:00
|
|
|
label > input {
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
|
|
|
table {
|
|
|
|
width: 100%;
|
|
|
|
border-collapse: collapse;
|
|
|
|
}
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
input.canvas-size-input {
|
|
|
|
-webkit-appearance: textfield;
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2023-01-29 11:43:18 -06:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td class="title">Canvas Size</td>
|
|
|
|
<td class="input">
|
|
|
|
<input
|
|
|
|
id="canvas-width"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="number"
|
|
|
|
step="1" />
|
|
|
|
x
|
|
|
|
<input
|
|
|
|
id="canvas-height"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="number"
|
|
|
|
step="1" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="title">Max Steps</td>
|
|
|
|
<td class="input">
|
|
|
|
<input
|
|
|
|
id="max-steps"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="number"
|
|
|
|
step="1"
|
|
|
|
value="70" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="title">CFG minmax</td>
|
|
|
|
<td class="input">
|
|
|
|
<input
|
|
|
|
id="min-cfg"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="number"
|
|
|
|
step="0.1"
|
2023-02-10 20:35:53 -06:00
|
|
|
value="1.0" />
|
2023-01-29 11:43:18 -06:00
|
|
|
::
|
|
|
|
<input
|
|
|
|
id="max-cfg"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="number"
|
|
|
|
step="0.1"
|
|
|
|
value="30.0" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<div
|
|
|
|
class="ui separator"
|
|
|
|
style="
|
|
|
|
width: 100% !important;
|
|
|
|
margin-top: 3px;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
"></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td class="title">Lie to HRfix</td>
|
|
|
|
<td class="input">
|
|
|
|
<input id="hrfix-liar" class="canvas-size-input" type="checkbox" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-02-10 20:35:53 -06:00
|
|
|
<tr>
|
|
|
|
<td class="title">New Layer per Dream</td>
|
|
|
|
<td class="input">
|
|
|
|
<input id="autolayer" class="canvas-size-input" type="checkbox" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-03-30 17:49:59 -05:00
|
|
|
<tr>
|
|
|
|
<td class="title">Smooth Rendering</td>
|
|
|
|
<td class="input">
|
|
|
|
<input
|
|
|
|
id="cbxSmooth"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="checkbox"
|
|
|
|
onchange="changeSmoothRendering()" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-08-12 13:42:34 -05:00
|
|
|
<tr>
|
|
|
|
<td class="title">+ Button Updates Prompt</td>
|
|
|
|
<td class="input">
|
|
|
|
<input
|
|
|
|
id="cbxUpdatePromptOnMoreButton"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="checkbox" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="title">Jump to 1st New on +</td>
|
|
|
|
<td class="input">
|
|
|
|
<input
|
|
|
|
id="cbxJumpTo1stNewOnMoreButton"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="checkbox" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-04-05 17:02:28 -05:00
|
|
|
<!-- //TODO implement this
|
|
|
|
<tr>
|
|
|
|
<td class="title">Marching Ants Update MS</td>
|
|
|
|
<td class="input">
|
|
|
|
<input
|
|
|
|
id="marching-ants-update-ms"
|
|
|
|
class="canvas-size-input"
|
|
|
|
type="number"
|
|
|
|
step="1"
|
|
|
|
value="20" />
|
|
|
|
</td>
|
|
|
|
</tr> -->
|
2023-01-29 11:43:18 -06:00
|
|
|
</table>
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
<script>
|
|
|
|
const canvasWidth = document.getElementById("canvas-width");
|
|
|
|
const canvasHeight = document.getElementById("canvas-height");
|
2023-01-02 00:45:03 -06:00
|
|
|
const maxSteps = document.getElementById("max-steps");
|
|
|
|
const minCfg = document.getElementById("min-cfg");
|
|
|
|
const maxCfg = document.getElementById("max-cfg");
|
2023-01-02 14:49:47 -06:00
|
|
|
const hrfixLiar = document.getElementById("hrfix-liar");
|
2023-01-27 20:00:48 -06:00
|
|
|
const autolayer = document.getElementById("autolayer");
|
2023-03-30 17:49:59 -05:00
|
|
|
const smoothRendering = document.getElementById("cbxSmooth");
|
2023-08-12 13:42:34 -05:00
|
|
|
const updatePromptOnMoreButton = document.getElementById(
|
|
|
|
"cbxUpdatePromptOnMoreButton"
|
|
|
|
);
|
|
|
|
const jumpTo1stNewOnMoreButton = document.getElementById(
|
|
|
|
"cbxJumpTo1stNewOnMoreButton"
|
|
|
|
);
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
function writeToLocalStorage() {
|
2022-12-19 12:45:09 -06:00
|
|
|
localStorage.setItem(
|
|
|
|
"openoutpaint/settings.canvas-width",
|
|
|
|
canvasWidth.value
|
|
|
|
);
|
|
|
|
localStorage.setItem(
|
|
|
|
"openoutpaint/settings.canvas-height",
|
|
|
|
canvasHeight.value
|
|
|
|
);
|
2023-01-02 00:45:03 -06:00
|
|
|
localStorage.setItem("openoutpaint/settings.max-steps", maxSteps.value);
|
|
|
|
localStorage.setItem("openoutpaint/settings.min-cfg", minCfg.value);
|
|
|
|
localStorage.setItem("openoutpaint/settings.max-cfg", maxCfg.value);
|
2023-01-02 14:49:47 -06:00
|
|
|
localStorage.setItem(
|
|
|
|
"openoutpaint/settings.hrfix-liar",
|
|
|
|
hrfixLiar.checked
|
|
|
|
);
|
2023-01-27 20:00:48 -06:00
|
|
|
localStorage.setItem(
|
|
|
|
"openoutpaint/settings.autolayer",
|
|
|
|
autolayer.checked
|
|
|
|
);
|
2023-03-30 17:49:59 -05:00
|
|
|
localStorage.setItem(
|
|
|
|
"openoutpaint/settings.smooth",
|
|
|
|
smoothRendering.checked
|
|
|
|
);
|
2023-08-12 13:42:34 -05:00
|
|
|
localStorage.setItem(
|
|
|
|
"openoutpaint/settings.update-prompt-on-more-button",
|
|
|
|
updatePromptOnMoreButton.checked
|
|
|
|
);
|
|
|
|
localStorage.setItem(
|
|
|
|
"openoutpaint/settings.jump-to-1st-new-on-more-button",
|
|
|
|
jumpTo1stNewOnMoreButton.checked
|
|
|
|
);
|
2022-12-07 21:26:37 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
// Loads values from local storage
|
2022-12-19 12:45:09 -06:00
|
|
|
canvasWidth.value =
|
|
|
|
localStorage.getItem("openoutpaint/settings.canvas-width") || 2048;
|
2022-12-07 21:26:37 -06:00
|
|
|
canvasHeight.value =
|
2022-12-19 12:45:09 -06:00
|
|
|
localStorage.getItem("openoutpaint/settings.canvas-height") || 2048;
|
2023-01-02 00:45:03 -06:00
|
|
|
maxSteps.value =
|
|
|
|
localStorage.getItem("openoutpaint/settings.max-steps") || 70;
|
2023-01-29 00:28:33 -06:00
|
|
|
minCfg.value = localStorage.getItem("openoutpaint/settings.min-cfg") || 1;
|
2023-01-02 00:45:03 -06:00
|
|
|
maxCfg.value =
|
|
|
|
localStorage.getItem("openoutpaint/settings.max-cfg") || 30;
|
2023-01-05 17:42:50 -06:00
|
|
|
let _enable_dishonesty =
|
|
|
|
localStorage.getItem("openoutpaint/settings.hrfix-liar") === null
|
|
|
|
? true
|
|
|
|
: localStorage.getItem("openoutpaint/settings.hrfix-liar") === "true";
|
|
|
|
hrfixLiar.checked = _enable_dishonesty;
|
2023-01-27 20:00:48 -06:00
|
|
|
let _enable_autolayers =
|
|
|
|
localStorage.getItem("openoutpaint/settings.autolayer") === null
|
|
|
|
? false
|
|
|
|
: localStorage.getItem("openoutpaint/settings.autolayer") === "true";
|
|
|
|
autolayer.checked = _enable_autolayers;
|
2022-12-07 21:26:37 -06:00
|
|
|
|
2023-03-30 17:49:59 -05:00
|
|
|
let _enable_smooth =
|
|
|
|
localStorage.getItem("openoutpaint/settings.smooth") === null
|
|
|
|
? true
|
|
|
|
: localStorage.getItem("openoutpaint/settings.smooth") === "true";
|
2023-07-08 21:01:26 -05:00
|
|
|
smoothRendering.checked = _enable_smooth;
|
2023-03-30 17:49:59 -05:00
|
|
|
|
2023-08-12 13:42:34 -05:00
|
|
|
let _enable_update_prompt_on_more_button =
|
|
|
|
localStorage.getItem(
|
|
|
|
"openoutpaint/settings.update-prompt-on-more-button"
|
|
|
|
) === null
|
|
|
|
? true
|
|
|
|
: localStorage.getItem(
|
|
|
|
"openoutpaint/settings.update-prompt-on-more-button"
|
|
|
|
) === "true";
|
|
|
|
|
|
|
|
let _enable_jump_to_1st_new_on_more_button =
|
|
|
|
localStorage.getItem(
|
|
|
|
"openoutpaint/settings.jump-to-1st-new-on-more-button"
|
|
|
|
) === null
|
|
|
|
? true
|
|
|
|
: localStorage.getItem(
|
|
|
|
"openoutpaint/settings.jump-to-1st-new-on-more-button"
|
|
|
|
) === "true";
|
|
|
|
|
2022-12-07 21:26:37 -06:00
|
|
|
writeToLocalStorage();
|
|
|
|
|
|
|
|
canvasWidth.onchange = writeToLocalStorage;
|
|
|
|
canvasHeight.onchange = writeToLocalStorage;
|
2023-01-02 00:45:03 -06:00
|
|
|
maxSteps.onchange = writeToLocalStorage;
|
|
|
|
minCfg.onchange = writeToLocalStorage;
|
|
|
|
maxCfg.onchange = writeToLocalStorage;
|
2023-01-02 14:49:47 -06:00
|
|
|
hrfixLiar.onchange = writeToLocalStorage;
|
2023-01-27 20:00:48 -06:00
|
|
|
autolayer.onchange = writeToLocalStorage;
|
2023-03-30 17:49:59 -05:00
|
|
|
smoothRendering.onchange = writeToLocalStorage;
|
2023-08-12 13:42:34 -05:00
|
|
|
updatePromptOnMoreButton.onchange = writeToLocalStorage;
|
|
|
|
jumpTo1stNewOnMoreButton.onchange = writeToLocalStorage;
|
2022-12-07 21:26:37 -06:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|