From ffc4a6b285d2b76c7d0b72faf145032862d08774 Mon Sep 17 00:00:00 2001 From: token <61819790+239573049@users.noreply.github.com> Date: Tue, 1 Dec 2026 05:17:36 -0500 Subject: [PATCH] fix(editor): stop clipping the hover card's shadow to its rectangle The hover, parameter hints and problem cards cut their floating shadow off at the card's bounds, leaving gray patches in the four rounded corners and no soft shadow around the card. Set ClipToBounds to False on CodeEditorHoverSurface. Co-Authored-By: Claude Sonnet 5.5 --- CHANGELOG.md | 4 ++++ .../Contrib/Hover/Themes/CodeEditorHoverSurfaceTheme.axaml | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc086fcf..0f32221b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,10 @@ Also, as previews that follow the main version: `TKCode.Arc.Graphics3D`, `TKCode - `SegmentedItem` (`TKCode.Arc`) is now public (it was internal), so that XAML styles and Rider's checks can address `arc|SegmentedItem` (#231). It has a token of its own, `SegmentedItemToken` (identity `SegmentedControlItem`, because `TKCode.Arc.Mobile` already has a `SegmentedItem` token). `TKCode.Arc.Mobile` also has a `SegmentedItem` in its own namespace; a C# file that imports both namespaces aliases one side. - `ArcWindow` / `TitleBar` / `WindowCaptionButtons` (`TKCode.Arc`): `CaptionButtonVariant` (`Round` | `Rectangle`, #230) picks the shape of the drawn caption buttons. `Round` is the default and the look is unchanged; `Rectangle` draws Windows-style flat buttons that are as tall as the title bar, 46 wide (`WindowCaptionButtonsToken.RectangleButtonWidth`), touch each other and the window's right edge (`TitleBarToken.RectangleButtonsPadding`), with square corners, and the close button turns solid danger under the pointer. Inherited, so setting it on the `ArcWindow` is enough; it applies only while the bar draws the buttons (`CaptionButtons` `Drawn`, or `Auto` outside macOS). New token entries: `WindowCaptionButtonsTokenKind.RectangleButtonWidth` and `RectangleCloseHoverForeground`, `TitleBarTokenKind.RectangleButtonsPadding`. +### Fixed + +- `CodeEditor` (`TKCode.Arc.Editor.Controls`): the hover, parameter hints and problem cards cut their shadow off at the card's rectangle, which left gray patches in the four rounded corners and no soft shadow around the card. The card no longer clips its shadow. + ## 1.3.3-preview.2 - 2026-12-01 A patch preview fixing spurious `HoverCard` openings, with no public API changes. Install it with `--version 1.3.3-preview.2` (or `--prerelease`). diff --git a/src/TKCode.Arc.Editor.Controls/Contrib/Hover/Themes/CodeEditorHoverSurfaceTheme.axaml b/src/TKCode.Arc.Editor.Controls/Contrib/Hover/Themes/CodeEditorHoverSurfaceTheme.axaml index 4db93342..ce49ca83 100644 --- a/src/TKCode.Arc.Editor.Controls/Contrib/Hover/Themes/CodeEditorHoverSurfaceTheme.axaml +++ b/src/TKCode.Arc.Editor.Controls/Contrib/Hover/Themes/CodeEditorHoverSurfaceTheme.axaml @@ -29,6 +29,7 @@ +