linebender / linebender/druid

Automatic seperator for `Flex`

Open
#1,344 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Currently there are ways to add separators to `Flex::row/column` but you have to put these in manually and they are just normal widgets with events etc.
On zulip the following ideas ware brought up
* painter with some kind of layout, this can access state etc. layout options include "I prefer size x" or "I prefer anything bigger than size x", the later doesn't fit well within druid.
* painter, the caller has to specify the size of the separator and the painter just has to follow

basically rules out ideas:
* a generic type implementing widget, this was scrapped because it creates more problems than it solves (new type parameter vs less boxing)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing Flex::row and Flex::column implementations and how current separators are added as widgets. Review the issue's proposed painter and layout alternatives before deciding on an approach. Done means an agreed separator design is implemented without requiring callers to insert ordinary event-bearing widgets manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.