diff --git a/v2/src/lib/components/Workspace/SettingsTab.svelte b/v2/src/lib/components/Workspace/SettingsTab.svelte index 819a26b..b68ac85 100644 --- a/v2/src/lib/components/Workspace/SettingsTab.svelte +++ b/v2/src/lib/components/Workspace/SettingsTab.svelte @@ -1,4 +1,5 @@
+
+

Global

+
+
+ + +
+
+ + { defaultShell = (e.target as HTMLInputElement).value; saveGlobalSetting('default_shell', defaultShell); }} + /> +
+
+ + { defaultCwd = (e.target as HTMLInputElement).value; saveGlobalSetting('default_cwd', defaultCwd); }} + /> +
+
+
+

Groups

@@ -85,36 +154,36 @@ {#each activeGroup.projects as project}
-
- +
-
- + +
-
- + +
-
- + +
+ @@ -155,6 +224,43 @@ margin-bottom: 24px; } + .global-settings { + display: flex; + flex-direction: column; + gap: 8px; + } + + .setting-row { + display: flex; + align-items: center; + gap: 12px; + padding: 6px 10px; + background: var(--ctp-surface0); + border-radius: 4px; + } + + .setting-row label { + font-size: 0.8rem; + color: var(--ctp-subtext0); + min-width: 100px; + flex-shrink: 0; + } + + .setting-row input, + .setting-row select { + padding: 4px 8px; + background: var(--ctp-base); + border: 1px solid var(--ctp-surface1); + border-radius: 3px; + color: var(--ctp-text); + font-size: 0.8rem; + flex: 1; + } + + .setting-row select { + cursor: pointer; + } + .group-list { display: flex; flex-direction: column; @@ -208,14 +314,13 @@ gap: 2px; } - .project-field label { + .field-label { font-size: 0.7rem; color: var(--ctp-overlay0); text-transform: uppercase; } - .project-field input[type="text"], - .project-field input:not([type]) { + .project-field input:not([type="checkbox"]) { padding: 4px 8px; background: var(--ctp-base); border: 1px solid var(--ctp-surface1);