You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b00534a
Browse filesBrowse the repository at this point in the historyBrowse files
async function openSettings(target){selectedParagraph.value=null;settings.value=true;await nextTick();if(target==='language'){languageInput.value?.focus();languageMenuOpen.value=true;}else if(target==='kernel'){kernelFocusPending=engineBusy.value;kernelInput.value?.el?.querySelector('.macvue-segment[data-state="on"]')?.focus();}}
447
464
function chooseKernel(id){kernelFocusPending=!!kernelInput.value?.el?.contains(document.activeElement);engine.value=id;}
448
465
function kernelKeys(e){const current=kernelOptions.findIndex(k=>k.id===engine.value);const index=e.key==='ArrowRight'?Math.min(2,current+1):e.key==='ArrowLeft'?Math.max(0,current-1):e.key==='Home'?0:e.key==='End'?2:null;if(index===null)return;e.preventDefault();if(engineBusy.value)return;kernelFocusPending=true;engine.value=kernelOptions[index].id;nextTick(()=>kernelInput.value?.el?.querySelector('.macvue-segment[data-state="on"]')?.focus());}
<divclass="appearance-row"><span>{{t('appearance.appearance')}}</span><divclass="appearance-options"role="group":aria-label="t('appearance.appearance')"><buttonv-for="[value,label] in themes":key="value"class="appearance-choice":aria-pressed="appearance===value"@click="emit('update:appearance',value)"><spanclass="appearance-preview":data-preview="value"aria-hidden="true"><iclass="preview-window"><i></i><b></b><b></b></i><iclass="preview-panel"><b></b><b></b><b></b></i></span><span>{{t(label)}}</span></button></div></div>
16
-
<divclass="appearance-row color-row"><span>{{t('appearance.color')}}</span><divclass="color-options"role="group":aria-label="t('appearance.accentColor')"><buttonv-for="[value,label] in colors":key="value"class="color-choice":aria-label="t('appearance.accentColorOption',{name:t(label)})":aria-pressed="accentColor===value"@click="emit('update:accentColor',value)"><spanclass="color-swatch":class="{spectrum:value==='system'}":style="value!=='system'?{background:value}:{}"></span><span>{{t(label)}}</span></button><labelclass="color-choice custom-color":class="{selected:accentColor!=='system'&&!colors.some(c=>c[0]===accentColor)}"><spanclass="color-swatch spectrum":style="accentColor!=='system'?{background:accentColor}:{}"><inputtype="color":aria-label="t('appearance.customAccentColor')":value="accentColor==='system'?'#3d647a':accentColor"@input="emit('update:accentColor',$event.target.value)"/></span><span>{{t('appearance.custom')}}</span></label></div></div>
16
+
<divclass="appearance-row color-row"><span>{{t('appearance.color')}}</span><divclass="color-options"role="group":aria-label="t('appearance.accentColor')"><buttonv-for="[value,label] in colors":key="value"class="color-choice":aria-label="t('appearance.accentColorOption',{name:t(label)})":aria-pressed="accentColor===value"@click="emit('update:accentColor',value)"><spanclass="color-swatch":class="{spectrum:value==='system'}":style="value!=='system'?{background:value}:{}"></span><span>{{t(label)}}</span></button><labelv-if="false"class="color-choice custom-color":class="{selected:accentColor!=='system'&&!colors.some(c=>c[0]===accentColor)}"><spanclass="color-swatch spectrum":style="accentColor!=='system'?{background:accentColor}:{}"><inputtype="color":aria-label="t('appearance.customAccentColor')":value="accentColor==='system'?'#3d647a':accentColor"@input="emit('update:accentColor',$event.target.value)"/></span><span>{{t('appearance.custom')}}</span></label></div></div>
0 commit comments