mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-22 01:42:47 +00:00
layout prototype
This commit is contained in:
@@ -12,13 +12,13 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<div class="col" style="gap: 0">
|
<div class="col layout" style="gap: 0">
|
||||||
<div class="row" style="gap: 156px">
|
<div class="row" style="gap: 156px">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<RingInput {activeLayer} />
|
<RingInput {activeLayer} />
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<RingInput {activeLayer} />
|
<RingInput {activeLayer} />
|
||||||
<RingInput {activeLayer} />
|
<RingInput {activeLayer} type="secondary" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<RingInput {activeLayer} />
|
<RingInput {activeLayer} />
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
margin: 16px;
|
margin-block-end: -36px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
|
|||||||
@@ -8,7 +8,10 @@
|
|||||||
["j", "k", "l"],
|
["j", "k", "l"],
|
||||||
]
|
]
|
||||||
|
|
||||||
export let layerNames = ["Primary Layer", "Number Layer", "Function Layer"]
|
/** @type {'primary' | 'secondary' | 'tertiary'} */
|
||||||
|
export let type = "primary"
|
||||||
|
|
||||||
|
const layerNames = ["Primary Layer", "Number Layer", "Function Layer"]
|
||||||
|
|
||||||
const virtualLayerMap = [1, 0, 2]
|
const virtualLayerMap = [1, 0, 2]
|
||||||
const characterOffset = 8
|
const characterOffset = 8
|
||||||
@@ -24,7 +27,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="radial">
|
<div class="radial {type}">
|
||||||
{#each layout as keys, quadrant}
|
{#each layout as keys, quadrant}
|
||||||
<button title={getKeyDescriptions(keys)}>
|
<button title={getKeyDescriptions(keys)}>
|
||||||
{#each keys as value, layer}
|
{#each keys as value, layer}
|
||||||
|
|||||||
Reference in New Issue
Block a user