You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/09/01 11:14:57 UTC

(maka) 04/06: refactor(desktop): drop the sidenav hairline the shell already cancels

This is an automated email from the ASF dual-hosted git repository.

Astro-Han pushed a commit to branch refactor/design-system-astryx-token-seams
in repository https://gitbox.apache.org/repos/asf/maka.git

commit 01bcc856567dc30035a1fd6b693cb40adb63c3f2
Author: AstroHan <le...@outlook.com>
AuthorDate: Tue Sep 1 18:41:11 2026 +0800

    refactor(desktop): drop the sidenav hairline the shell already cancels
    
    The theme drew a 1px inline-end border on `app-shell-sidenav` and
    `shell-layout.css` immediately set it to `border-inline-end-width: 0` with a
    transparent colour. The rule and its cancellation shipped together, so the edge
    has never rendered: the sidebar and the canvas share one floor colour and the
    content plate's edge is the only seam.
    
    Removing the mechanism and its cancellation is one change. This empties the
    theme's `components` section, so the Maka theme is now tokens and typography
    only.
    
    Generated-by: Claude Code (Opus 5)
---
 apps/desktop/src/renderer/astryx-theme/maka.css    |  6 ----
 apps/desktop/src/renderer/astryx-theme/maka.js     |  7 -----
 .../desktop/src/renderer/astryx-theme/makaTheme.ts | 33 +++-------------------
 apps/desktop/src/renderer/styles/shell-layout.css  |  5 +---
 4 files changed, 5 insertions(+), 46 deletions(-)

diff --git a/apps/desktop/src/renderer/astryx-theme/maka.css b/apps/desktop/src/renderer/astryx-theme/maka.css
index b1b99d38a6..bb6127b51d 100644
--- a/apps/desktop/src/renderer/astryx-theme/maka.css
+++ b/apps/desktop/src/renderer/astryx-theme/maka.css
@@ -450,12 +450,6 @@
     --astryx-section-padding: var(--spacing-3);
   }
 
-  .astryx-app-shell-sidenav.elevated {
-    border-inline-end-width: 1px;
-    border-inline-end-style: solid;
-    border-inline-end-color: var(--color-border);
-  }
-
   .astryx-text.primary { color: var(--color-text-primary); }
 
   .astryx-heading.primary { color: var(--color-text-primary); }
diff --git a/apps/desktop/src/renderer/astryx-theme/maka.js b/apps/desktop/src/renderer/astryx-theme/maka.js
index 7223f7df07..23e9d41363 100644
--- a/apps/desktop/src/renderer/astryx-theme/maka.js
+++ b/apps/desktop/src/renderer/astryx-theme/maka.js
@@ -421,13 +421,6 @@ export const makaTheme = {
       "base": {
         "padding": "var(--spacing-3)"
       }
-    },
-    "app-shell-sidenav": {
-      "variant:elevated": {
-        "borderInlineEndWidth": "1px",
-        "borderInlineEndStyle": "solid",
-        "borderInlineEndColor": "var(--color-border)"
-      }
     }
   },
   __onDark: {
diff --git a/apps/desktop/src/renderer/astryx-theme/makaTheme.ts b/apps/desktop/src/renderer/astryx-theme/makaTheme.ts
index c6f2a407cd..f8a51dabeb 100644
--- a/apps/desktop/src/renderer/astryx-theme/makaTheme.ts
+++ b/apps/desktop/src/renderer/astryx-theme/makaTheme.ts
@@ -158,34 +158,9 @@ export const makaTheme = defineTheme({
     '--color-background-popover': 'var(--background-elevated)',
     '--color-background-muted': 'var(--muted)',
     '--color-border': 'var(--border)',
-  },
-  // The column edge itself. Astryx draws a divider only on
-  // `AppShell variant="section"`, which is a hardcoded `variant === 'section'`
-  // in AppShell.tsx and pairs the line with no wash at all. Cursor and Codex
-  // both do the opposite of one-or-the-other: a 1px rule AND a wash, with the
-  // wash pulled far back (measured off their windows, sidebar→content ΔL 0.025
-  // and ~0.010 against Maka's 0.045). The line states the boundary; the wash
-  // only says the two columns are different material. Authored here rather than
-  // as a product override so the shell keeps one paint authority — this emits
-  // `.astryx-app-shell-sidenav { border-inline-end }` inside the theme's own
-  // @scope. It draws with --color-border, the same token Divider, Card and the
-  // generated `hr` rule use, so the column edge cannot drift away from every
-  // other hairline in the app; that token is remapped to the product's --border
-  // just above. Keyed on the variant, not `base`: the edge belongs to the
-  // elevated treatment, so a future variant change re-decides it instead of
-  // inheriting a line that no longer matches the columns.
-  components: {
-    'app-shell-sidenav': {
-      // No color ease on the column: neither half of the edge changes across the
-      // collapse any more. The wash is one material in both states (the rail
-      // wears --color-background-body throughout, see shell-layout.css) and the
-      // hairline is transparent in both, so a background-color/border-color
-      // transition here had nothing left to interpolate.
-      'variant:elevated': {
-        borderInlineEndWidth: '1px',
-        borderInlineEndStyle: 'solid',
-        borderInlineEndColor: 'var(--color-border)',
-      },
-    },
+    '--radius-inner': 'var(--radius-control)',
+    '--radius-element': 'var(--radius-surface)',
+    '--radius-container': 'var(--radius-modal)',
+    '--radius-full': 'var(--radius-pill)',
   },
 });
diff --git a/apps/desktop/src/renderer/styles/shell-layout.css b/apps/desktop/src/renderer/styles/shell-layout.css
index 9720272a21..ca810d0622 100644
--- a/apps/desktop/src/renderer/styles/shell-layout.css
+++ b/apps/desktop/src/renderer/styles/shell-layout.css
@@ -62,12 +62,9 @@
 }
 
 /* Sidebar and canvas share one floor colour; the content plate is the only
-   step. Drop the theme sidenav hairline (generated maka.css) so the plate edge
-   is the single seam. Width 0: a transparent 1px border still reserved layout. */
+   step, and the plate edge is the single seam. */
 .maka-shell-astryx .astryx-app-shell-sidenav {
   background: var(--agents-layout-bg);
-  border-inline-end-color: transparent;
-  border-inline-end-width: 0;
 }
 
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org