Skip to content

Splitter: draw the handle as nodes, so the sheet can style it #480

Open

Description

@samitbasu

Found in Phase 2 (#446). The splitter handle's look (the user's C2 design from #53: a 1 px line, plus a hot line and a primary/15 band while hovered, dragged or focused, and a focus ring) is painted by SplitterHandle::paint from SplitterStyle. Its node is only the hit area, so the sheet has nothing to style, and an app can restyle the handle only through SplitterStyle.

Phase 2's decision: the splitter is recorded as a widget off the sheet, with resizable.tsx as its declared source.

Proposal:

  • draw the line and the band as nodes, hot via hover/focus variants plus a dragged key;
  • generate the handle part from resizable.tsx;
  • write C2's band and hot line as Preset-layer exceptions.

Note: this touches the drag/transition code #53 tested. The rest-to-hot transition is a feel the user approved, so it needs a user trial again.

Backlog, after Phase 2.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions