Changeset 0.17.2 (#77)
This commit is contained in:
@@ -172,7 +172,9 @@
|
||||
<div class="popup-menu kb-popup" id="kbPopup"></div>
|
||||
</div>
|
||||
</div>
|
||||
<textarea id="messageInput" placeholder="Send a message..." rows="1"></textarea>
|
||||
<div id="messageInputWrap">
|
||||
<textarea id="messageInput" placeholder="Send a message..." rows="1"></textarea>
|
||||
</div>
|
||||
<div class="input-actions">
|
||||
<button class="action-btn stop-btn" id="stopBtn" title="Stop">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor"><rect x="6" y="6" width="12" height="12" rx="2"/></svg>
|
||||
@@ -409,6 +411,26 @@
|
||||
</div>
|
||||
<!-- Appearance Tab -->
|
||||
<div class="settings-tab-content" id="settingsAppearanceTab" style="display:none">
|
||||
<section class="settings-section">
|
||||
<h3>Theme</h3>
|
||||
<div class="form-group">
|
||||
<label>Mode</label>
|
||||
<div class="theme-toggle" id="themeToggle">
|
||||
<button class="theme-btn" data-theme="light" title="Light">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
|
||||
Light
|
||||
</button>
|
||||
<button class="theme-btn" data-theme="dark" title="Dark">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
|
||||
Dark
|
||||
</button>
|
||||
<button class="theme-btn" data-theme="system" title="System">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
|
||||
System
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="settings-section">
|
||||
<h3>Display</h3>
|
||||
<div class="form-group">
|
||||
@@ -422,6 +444,18 @@
|
||||
<div class="range-labels"><span>12px</span><span>20px</span></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="settings-section">
|
||||
<h3>Editor</h3>
|
||||
<div class="form-group">
|
||||
<label>Keybindings</label>
|
||||
<div class="theme-toggle" id="keymapToggle">
|
||||
<button class="theme-btn" data-keymap="standard" title="Standard keybindings">Standard</button>
|
||||
<button class="theme-btn" data-keymap="vim" title="Vim keybindings">Vim</button>
|
||||
<button class="theme-btn" data-keymap="emacs" title="Emacs keybindings">Emacs</button>
|
||||
</div>
|
||||
<span class="form-hint">Applies to code editors only — chat input always uses standard.</span>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<!-- Providers Tab -->
|
||||
<div class="settings-tab-content" id="settingsProvidersTab" style="display:none">
|
||||
@@ -984,6 +1018,7 @@
|
||||
<!-- Vendor libs -->
|
||||
<script src="vendor/marked.min.js" onerror="this.onerror=null;this.src='https://cdnjs.cloudflare.com/ajax/libs/marked/16.3.0/lib/marked.umd.min.js'"></script>
|
||||
<script src="vendor/purify.min.js" onerror="this.onerror=null;this.src='https://cdnjs.cloudflare.com/ajax/libs/dompurify/3.2.4/purify.min.js'"></script>
|
||||
<script src="vendor/codemirror/codemirror.bundle.js?v=%%APP_VERSION%%" onerror="console.warn('[CM6] Bundle not available — falling back to textarea')"></script>
|
||||
|
||||
<script src="js/debug.js?v=%%APP_VERSION%%"></script>
|
||||
<script src="js/events.js?v=%%APP_VERSION%%"></script>
|
||||
|
||||
Reference in New Issue
Block a user