From d54faa14fc70d0b1dace3b9835825c6405ee199e Mon Sep 17 00:00:00 2001 From: Ian Hon Date: Sat, 28 Nov 2026 23:39:16 +0800 Subject: [PATCH 1/2] Cast the popups' shadows in the theme's shadow --- hamlet/workbench/hamlet.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hamlet/workbench/hamlet.css b/hamlet/workbench/hamlet.css index 7ebdb9b..4ec598a 100644 --- a/hamlet/workbench/hamlet.css +++ b/hamlet/workbench/hamlet.css @@ -18,6 +18,7 @@ --hamlet-dim: var(--vscode-sideBarSectionHeader-foreground); --hamlet-quiet: var(--vscode-descriptionForeground); --hamlet-line: var(--vscode-tree-indentGuidesStroke); + --hamlet-shade: var(--vscode-widget-shadow); --hamlet-fillet: 16px; } @@ -413,7 +414,7 @@ background: color-mix(in srgb, var(--hamlet-lamp) 16%, var(--hamlet-sheet)); border: 1px solid color-mix(in srgb, var(--hamlet-lamp) 55%, transparent); border-radius: 5px; - box-shadow: 0 8px 18px rgba(0, 0, 0, .45); + box-shadow: 0 8px 18px var(--hamlet-shade); cursor: pointer; } .hamlet-add[hidden] { @@ -466,7 +467,7 @@ background: color-mix(in srgb, var(--hamlet-lamp) 10%, var(--hamlet-sheet)); border: 1px solid color-mix(in srgb, var(--hamlet-lamp) 60%, transparent); border-radius: 6px; - box-shadow: 0 10px 24px rgba(0, 0, 0, .5); + box-shadow: 0 10px 24px var(--hamlet-shade); } .hamlet-note[hidden] { display: none; From 2ab64948dcdaf9ddbf00b5dfbc7922881ff9ffc8 Mon Sep 17 00:00:00 2001 From: Ian Hon Date: Sun, 29 Nov 2026 21:44:55 +0800 Subject: [PATCH 2/2] Cover the seam between the tree and the editor at a fractional scale --- hamlet/workbench/hamlet.css | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hamlet/workbench/hamlet.css b/hamlet/workbench/hamlet.css index 4ec598a..8c589bf 100644 --- a/hamlet/workbench/hamlet.css +++ b/hamlet/workbench/hamlet.css @@ -257,7 +257,8 @@ .explorer-folders-view .monaco-list-row.selected:not([aria-expanded])::after { content: ""; position: absolute; - inset: 0 0 0 8px; + /* a pixel over the fillets above and below, so no seam shows */ + inset: -1px 0 -1px 8px; border-radius: 10px 0 0 10px; background: var(--hamlet-sheet); z-index: -1; @@ -397,8 +398,12 @@ .monaco-workbench .part.editor > .content .editor-group-container > .title { display: none !important; } +/* At a fractional scale the side bar and the editor share a pixel, where + the panels under both show through as a dark seam across the open + file's row. The sash over that edge is the sheet from below the sheet's + rounded corner, so the pixel is the sheet's alone. */ .monaco-workbench .monaco-sash.vertical:not(.disabled) { - background: transparent; + background: linear-gradient(var(--hamlet-sheet), var(--hamlet-sheet)) 1px 12px / calc(100% - 1px) 100% no-repeat; } /* ---------- "Add to chat": beside a selection, and over a viewer ---------- */