diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue index 683d13531..6040c426a 100644 --- a/apps/desktop/src/components/grid/DataGrid.vue +++ b/apps/desktop/src/components/grid/DataGrid.vue @@ -5851,7 +5851,7 @@ const gridContextMenuItems = computed(() => { >
@@ -6486,7 +6486,7 @@ const gridContextMenuItems = computed(() => { :data-row-index="item.displayIndex" >
@@ -851,7 +851,7 @@ defineExpose({ focusSearch });
{{ entry.prompt }} - {{ entry.command }} + {{ entry.command }}
 
                 
{{ commandPrompt }} string, name: string, fallback: string): string { const value = getVar(name).trim(); @@ -63,11 +64,15 @@ export function resolveDataGridPaintTheme(options: { isDark: boolean; }): DataGridPaintTheme { const { getVar, isDark } = options; - const background = cssVarColor(getVar, "--background", isDark ? "oklch(0.145 0 0)" : "oklch(1 0 0)"); - const foreground = cssVarColor(getVar, "--foreground", isDark ? "oklch(0.985 0 0)" : "oklch(0.145 0 0)"); - const mutedForeground = cssVarColor(getVar, "--muted-foreground", isDark ? "oklch(0.708 0 0)" : "oklch(0.556 0 0)"); - const primary = cssVarColor(getVar, "--primary", isDark ? "oklch(0.922 0 0)" : "oklch(0.205 0 0)"); - const muted = cssVarColor(getVar, "--muted", isDark ? "oklch(0.269 0 0)" : "oklch(0.97 0 0)"); + const background = cssVarColor(getVar, "--background", isDark ? "oklch(0.19 0.004 285)" : "oklch(1 0 0)"); + const foreground = cssVarColor(getVar, "--foreground", isDark ? "oklch(0.88 0.006 285)" : "oklch(0.145 0 0)"); + const mutedForeground = cssVarColor( + getVar, + "--muted-foreground", + isDark ? "oklch(0.68 0.008 285)" : "oklch(0.556 0 0)", + ); + const primary = cssVarColor(getVar, "--primary", isDark ? "oklch(0.86 0.008 285)" : "oklch(0.205 0 0)"); + const muted = cssVarColor(getVar, "--muted", isDark ? "oklch(0.285 0.006 285)" : "oklch(0.97 0 0)"); const destructive = cssVarColor(getVar, "--destructive", "oklch(0.6 0.22 25)"); const accent = cssVarColor(getVar, "--accent", isDark ? "oklch(0.269 0 0)" : "oklch(0.97 0 0)"); const yellow500 = "oklch(0.795 0.184 86.047)"; @@ -84,7 +89,9 @@ export function resolveDataGridPaintTheme(options: { const cellSearch = isDark ? DATA_GRID_DARK_SEARCH_COLORS.match : "rgb(253 245 184)"; const cellCurrentSearch = isDark ? DATA_GRID_DARK_SEARCH_COLORS.current : "rgb(253 224 71 / 52%)"; const cellCurrentSearchBorder = isDark ? DATA_GRID_DARK_SEARCH_COLORS.currentBorder : "rgb(234 179 8 / 82%)"; - const rowNumberDefault = isDark ? "rgb(15 15 15)" : "rgb(255 255 255)"; + const rowNumberDefault = isDark + ? DATA_GRID_DARK_ROW_NUMBER_BG + : paintToken(getVar, "--data-grid-row-number-default-bg", "rgb(255 255 255)"); const rowNumberNew = `color-mix(in oklab, rgb(16 185 129) 15%, ${background})`; const rowNumberEdited = `color-mix(in oklab, rgb(245 158 11) 15%, ${background})`; const rowNumberDeleted = `color-mix(in oklab, ${destructive} 15%, ${background})`; diff --git a/apps/desktop/src/styles/globals.css b/apps/desktop/src/styles/globals.css index 8d12dc928..6a738a1ba 100644 --- a/apps/desktop/src/styles/globals.css +++ b/apps/desktop/src/styles/globals.css @@ -130,37 +130,37 @@ } .dark { - --background: oklch(0.145 0 0); - --foreground: oklch(0.985 0 0); - --card: oklch(0.205 0 0); - --card-foreground: oklch(0.985 0 0); - --popover: oklch(0.205 0 0); - --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.922 0 0); - --primary-foreground: oklch(0.205 0 0); - --secondary: oklch(0.269 0 0); - --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.269 0 0); - --muted-foreground: oklch(0.708 0 0); - --accent: oklch(0.269 0 0); - --accent-foreground: oklch(0.985 0 0); - --destructive: oklch(0.704 0.191 22.216); - --border: oklch(1 0 0 / 10%); - --input: oklch(1 0 0 / 15%); - --ring: oklch(0.556 0 0); + --background: oklch(0.19 0.004 285); + --foreground: oklch(0.88 0.006 285); + --card: oklch(0.225 0.005 285); + --card-foreground: oklch(0.88 0.006 285); + --popover: oklch(0.235 0.005 285); + --popover-foreground: oklch(0.89 0.006 285); + --primary: oklch(0.86 0.008 285); + --primary-foreground: oklch(0.19 0.004 285); + --secondary: oklch(0.285 0.006 285); + --secondary-foreground: oklch(0.88 0.006 285); + --muted: oklch(0.285 0.006 285); + --muted-foreground: oklch(0.68 0.008 285); + --accent: oklch(0.305 0.008 285); + --accent-foreground: oklch(0.9 0.006 285); + --destructive: oklch(0.68 0.18 24); + --border: oklch(0.54 0.006 285 / 28%); + --input: oklch(0.54 0.006 285 / 34%); + --ring: oklch(0.62 0.008 285); --chart-1: oklch(0.87 0 0); --chart-2: oklch(0.556 0 0); --chart-3: oklch(0.439 0 0); --chart-4: oklch(0.371 0 0); --chart-5: oklch(0.269 0 0); - --sidebar: oklch(0.205 0 0); - --sidebar-foreground: oklch(0.985 0 0); + --sidebar: oklch(0.215 0.005 285); + --sidebar-foreground: oklch(0.86 0.006 285); --sidebar-primary: oklch(0.488 0.243 264.376); - --sidebar-primary-foreground: oklch(0.985 0 0); - --sidebar-accent: oklch(0.269 0 0); - --sidebar-accent-foreground: oklch(0.985 0 0); - --sidebar-border: oklch(1 0 0 / 10%); - --sidebar-ring: oklch(0.556 0 0); + --sidebar-primary-foreground: oklch(0.94 0.006 285); + --sidebar-accent: oklch(0.295 0.006 285); + --sidebar-accent-foreground: oklch(0.9 0.006 285); + --sidebar-border: oklch(0.54 0.006 285 / 28%); + --sidebar-ring: oklch(0.62 0.008 285); } html.disable-transitions, @@ -239,7 +239,7 @@ body.dbx-table-reference-dragging * { background: oklch(0.965 0 0); } .dark .app-panel-gutter { - background: oklch(0.18 0 0); + background: oklch(0.205 0.004 285); } .app-layout-classic .panel-resize-handle { width: 3px;