2022-12-07 21:26:37 -06:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>openOutpaint 🐠</title>
|
|
|
|
<!-- CSS Variables -->
|
2022-12-19 06:30:39 -06:00
|
|
|
<link href="../css/colors.css" rel="stylesheet" />
|
|
|
|
<link href="../css/icons.css" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
2022-12-19 06:30:39 -06:00
|
|
|
<link href="../css/index.css" rel="stylesheet" />
|
|
|
|
<link href="../css/layers.css" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
2022-12-19 06:30:39 -06:00
|
|
|
<link href="../css/ui/generic.css" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
2022-12-19 06:30:39 -06:00
|
|
|
<link href="../css/ui/history.css" rel="stylesheet" />
|
|
|
|
<link href="../css/ui/layers.css" rel="stylesheet" />
|
|
|
|
<link href="../css/ui/toolbar.css" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
<!-- Tool Specific CSS -->
|
2022-12-19 06:30:39 -06:00
|
|
|
<link href="../css/ui/tool/dream.css" rel="stylesheet" />
|
|
|
|
<link href="../css/ui/tool/stamp.css" rel="stylesheet" />
|
|
|
|
<link href="../css/ui/tool/colorbrush.css" rel="stylesheet" />
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
<link rel="icon" type="image/x-icon" href="favicon.ico" />
|
|
|
|
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
color: var(--c-text);
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
label {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
input.canvas-size-input {
|
|
|
|
-webkit-appearance: textfield;
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
|
|
|
|
width: 50px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<label style="display: flex">
|
|
|
|
Canvas Size:
|
|
|
|
<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" />
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
const canvasWidth = document.getElementById("canvas-width");
|
|
|
|
const canvasHeight = document.getElementById("canvas-height");
|
|
|
|
|
|
|
|
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
|
|
|
|
);
|
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;
|
2022-12-07 21:26:37 -06:00
|
|
|
|
|
|
|
writeToLocalStorage();
|
|
|
|
|
|
|
|
canvasWidth.onchange = writeToLocalStorage;
|
|
|
|
canvasHeight.onchange = writeToLocalStorage;
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|