Skip to content

Add revamped Blazor sample pages from PR #3528 (sample changes only)#3541

Closed
Copilot wants to merge 3 commits intomainfrom
copilot/add-sample-changes-from-3528
Closed

Add revamped Blazor sample pages from PR #3528 (sample changes only)#3541
Copilot wants to merge 3 commits intomainfrom
copilot/add-sample-changes-from-3528

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

Brings in the sample app changes from #3528 without the touch event infrastructure (TypeScript interop, EnableTouchEvents/Touch view parameters, SKTouchEventArgs relocation).

What changed

  • Home.razor — replaced plain text demo with radial gradient background, semi-transparent colored circles, and centered text via SKShader.CreateRadialGradient
  • GPU.razor — replaced clock demo with a real-time SkSL metaball lava-lamp shader using SKRuntimeEffect.BuildShader; drag interaction adapted to Blazor native @onpointerdown/@onpointermove/@onpointerup (filtered to primary pointer)
  • GPU.razor.css — new; floating FPS overlay panel
  • Drawing.razor — new page; multi-stroke drawing canvas with color picker toolbar and scroll-wheel brush sizing, using Blazor native pointer/wheel events instead of the new touch API
  • Drawing.razor.css — new; floating info and toolbar overlays
  • NavMenu.razor — "Raster Canvas" → "Drawing"; labels updated to Home / GPU / Drawing with matching icons
  • NavMenu.razor.css — GPU card and pencil icons replace old ones
  • MainLayout.razor.cssheight: 100vh + overflow: hidden for full-height layout

Touch interaction in GPU and Drawing uses @onpointerdown/@onpointermove/@onpointerup/@onwheel — the same pattern as the existing Raster.razor — since EnableTouchEvents/Touch are not yet in the codebase.

API Changes

None.

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation
Original prompt

Please look at #3528 and bring in the sample changes only. We want the new sample but none of the other things.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: mattleibow <1096616+mattleibow@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new sample from mono/SkiaSharp#3528 Add revamped Blazor sample pages from PR #3528 (sample changes only) Feb 28, 2026
- Move @onwheel/@onwheel:preventDefault from SKCanvasView to wrapping
  div in Drawing.razor to fix RZ10010 duplicate parameter error
- Switch base href from /app/ to / in index.html
- Add full-viewport flex layout CSS for html/body/#app/.content/canvas

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mattleibow mattleibow closed this Mar 6, 2026
mattleibow added a commit that referenced this pull request Mar 6, 2026
- Home: radial gradient bg + colored circles + centered text
- GPU: SkSL metaball lava-lamp shader with touch interaction + FPS overlay
- Drawing: multi-stroke canvas with color picker + brush sizing
- NavMenu: updated links and icons (Home / GPU / Drawing)
- Layout: full-height viewport with overflow hidden

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
mattleibow added a commit that referenced this pull request Mar 10, 2026
- Home: radial gradient bg + colored circles + centered text
- GPU: SkSL metaball lava-lamp shader with touch interaction + FPS overlay
- Drawing: multi-stroke canvas with color picker + brush sizing
- NavMenu: updated links and icons (Home / GPU / Drawing)
- Layout: full-height viewport with overflow hidden

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants