racket / racket/gui

[Feature Request] please reduce button% min-width ...

Open
#290 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
68
Forks
82
PR merge metrics
No merged PRs in 30d

Description

As the current button min-width is a bit wider than arguably necessary, and could always be made wider programmatically, please consider reducing it from 84 to the min-height of a single line button, and thereby the smallest button will be square by default, which can be convenient if wanting a square grid of buttons. (on MacOS).

This min-width may have something to do with reserved space around a text-field, as when a bit-map is displayed within a button, there does not seem to be as much space reserved between it and the outer margin of the button.

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

Locate the button implementation and its MacOS-specific min-width setting, then inspect how the current value of 84 relates to the min-height of a single-line button. The change is complete when the default smallest button is square without preventing programmatically wider buttons, including buttons displaying bitmaps.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.