fix(desktop): unify UI colors onto theme tokens
This commit is contained in:
1 parent
af479c7770
commit
1cdbf4fa3d
31 files changed
+558
-582
No files matched your search
@@ -394,24 +394,24 @@ async function initJsonEditor() {
|
||||
minHeight: "260px",
|
||||
maxHeight: "360px",
|
||||
fontSize: "12px",
|
||||
border: "1px solid hsl(var(--border))",
|
||||
border: "1px solid var(--border)",
|
||||
borderRadius: "var(--radius-md)",
|
||||
backgroundColor: "hsl(var(--background))",
|
||||
color: "hsl(var(--foreground))",
|
||||
backgroundColor: "var(--background)",
|
||||
color: "var(--foreground)",
|
||||
},
|
||||
".cm-scroller": {
|
||||
fontFamily: "var(--font-mono), ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",
|
||||
},
|
||||
".cm-gutters": {
|
||||
backgroundColor: "hsl(var(--muted) / 0.35)",
|
||||
color: "hsl(var(--muted-foreground))",
|
||||
borderRight: "1px solid hsl(var(--border))",
|
||||
backgroundColor: "color-mix(in srgb, var(--muted) 35%, transparent)",
|
||||
color: "var(--muted-foreground)",
|
||||
borderRight: "1px solid var(--border)",
|
||||
},
|
||||
".cm-activeLine, .cm-activeLineGutter": {
|
||||
backgroundColor: "hsl(var(--muted) / 0.45)",
|
||||
backgroundColor: "color-mix(in srgb, var(--muted) 45%, transparent)",
|
||||
},
|
||||
".cm-focused": {
|
||||
outline: "2px solid hsl(var(--ring) / 0.35)",
|
||||
outline: "2px solid color-mix(in srgb, var(--ring) 35%, transparent)",
|
||||
outlineOffset: "1px",
|
||||
},
|
||||
}),
|
||||
@@ -564,10 +564,10 @@ onBeforeUnmount(() => {
|
||||
<div class="space-y-2">
|
||||
<Label>{{ t("settings.sqlFormatterIndent") }}</Label>
|
||||
<div class="grid grid-cols-2 gap-2">
|
||||
<Button type="button" variant="outline" class="justify-center" :class="!settings.useTabs ? 'border-blue-300 ring-2 ring-blue-300/50' : ''" @click="updateOption('useTabs', false)">
|
||||
<Button type="button" variant="outline" class="justify-center" :class="!settings.useTabs ? 'dbx-choice-selected' : ''" @click="updateOption('useTabs', false)">
|
||||
{{ t("settings.sqlFormatterIndentSpaces") }}
|
||||
</Button>
|
||||
<Button type="button" variant="outline" class="justify-center" :class="settings.useTabs ? 'border-blue-300 ring-2 ring-blue-300/50' : ''" @click="updateOption('useTabs', true)">
|
||||
<Button type="button" variant="outline" class="justify-center" :class="settings.useTabs ? 'dbx-choice-selected' : ''" @click="updateOption('useTabs', true)">
|
||||
{{ t("settings.sqlFormatterIndentTabs") }}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user