Skip to content

Fix the popup shadows and the tree's seam for Hamlet's themes - #6

Open
ian-hon wants to merge 2 commits into
mainfrom
ian/ide-theme
Open

ian-hon wants to merge 2 commits into
mainfrom
ian/ide-theme

Conversation

@ian-hon

@ian-hon ian-hon commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Two fixes to hamlet/workbench/hamlet.css, for voxell-tech/hamlet#227, which draws the IDE in the Hamlet window's theme.

  • Popup shadows use the theme's widget.shadow (--hamlet-shade) instead of a fixed black, so they suit light themes.
  • Seam fix: at a fractional scale, a line no longer shows between the file tree and the editor. At 1.6×, the sidebar is 228.25 px wide, so its edge pixel is shared and the dark panel showed through as a line across the open file's row. The vertical sash, the one layer above both parts that isn't clipped, now paints the sheet's colour over that pixel, skipping the rounded corner. The selected row's tongue reaches 1px further up and down. Checked at 1.25×, 1.5×, 1.6× and 1.75×.

Before and after, at 1.6×:

The seam across the open file's row
No seam

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

voxell-tech is on CodeRabbit Free, which includes PR summaries. Ask your admin to upgrade for code reviews.

  • Ask an admin to upgrade

Open in CodeRabbit

Summary

Summary by CodeRabbit

  • Style
    • Shadows on add and note elements now adapt to the editor’s theme.
    • The selected-file highlight extends slightly beyond its previous bounds.
    • The active divider now has a sheet-colored gradient.

The stylesheet adds a theme-derived shadow color for .hamlet-add and .hamlet-note. It also extends the selected-file row background and changes the active vertical sash background and position.

Changes: Workbench Styling

Layer / File(s) Summary
Theme and layout styling
hamlet/workbench/hamlet.css
Adds --hamlet-shade from VS Code’s widget-shadow color and uses it for two shadows. Extends the selected-file row background by one pixel above and below. Changes the active vertical sash to a sheet-colored gradient with a one-pixel horizontal offset, starting 12 pixels down.

Estimated code review effort: 2 (Simple) | ~7 minutes

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit hops past the stylesheet page
Theme-tinted shadows soften the stage
One pixel above, one pixel below
The sash wears a gradient glow
The rabbit thumps: the changes are in place

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Free
  • Run ID: 42cc4be3-4d49-469d-b50d-7faac28a0c2e
Commits

Reviewing files that changed from the base of the PR and between 9439523 and 2ab6494.

Files selected for processing: 1

  • hamlet/workbench/hamlet.css

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant