Add background grid settings
Appearance now has a toggle for the background grid and a choice of subdivisions (none, 2×2 up to 16×16) that split each page-sized cell into fainter lines. Subdivisions are left out when zoomed so far out that they would be under 8 px apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GaoZtJQZwLXkEgWs8twCia
This commit is contained in:
parent
f018012cdd
commit
3d29255d0c
4 changed files with 46 additions and 7 deletions
|
|
@ -83,6 +83,20 @@
|
|||
<option value="paper">Paper</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="name">Background grid</div><div class="desc">Faint lines behind the pages, one cell per active page.</div></div>
|
||||
<input type="checkbox" class="toggle" bind:checked={s.grid.show} onchange={save} />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div><div class="name">Grid subdivisions</div><div class="desc">Split each page-sized cell into a finer grid for sketching and lining things up.</div></div>
|
||||
<select bind:value={s.grid.divisions} onchange={save} disabled={!s.grid.show}>
|
||||
<option value={1}>None</option>
|
||||
<option value={2}>2 × 2</option>
|
||||
<option value={4}>4 × 4</option>
|
||||
<option value={8}>8 × 8</option>
|
||||
<option value={16}>16 × 16</option>
|
||||
</select>
|
||||
</div>
|
||||
{:else if tab === 'input'}
|
||||
<h2>Pen & touch</h2>
|
||||
<div class="row">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue