linebender / linebender/druid

Mutating setters on druid_shell::Window should have `set_` names.

Open
#777 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

At least including `set_resizeable`, and `set_show_titlebar`, although the latter name isn't great. I might change it to something like `titlebar_is_visible` and `set_titlebar_is_visible` or something?

> Hmm must not have noticed this, but these should be called `set_`.

_Originally posted by @cmyr in https://github.com/xi-editor/druid/pull/773_

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 locating druid_shell::Window and its resizeable and show_titlebar mutating methods, then search for their call sites. Decide the consistent setter names, including whether show_titlebar needs a clearer visibility-based name, and update affected references so the Window API and its users use the chosen names.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.