Skip to content

Rename compose tab to "KEYS (COMPOSE)"; size tabs to labels; v3.5.2 - #18

Merged
CryptoJones merged 1 commit into
mainfrom
rename-keys-compose-tab
Jul 5, 2026
Merged

Rename compose tab to "KEYS (COMPOSE)"; size tabs to labels; v3.5.2#18
CryptoJones merged 1 commit into
mainfrom
rename-keys-compose-tab

Conversation

@CryptoJones

Copy link
Copy Markdown
Owner

Renames the keys/compose view tab from KEYS to KEYS (COMPOSE) for clarity.

Since that label is wider than the others, the tab bar switches from fixed-width to size-to-fit tabs:

  • dix_text_w2() measures a label in pixels matching draw_text()'s advance (12px/glyph, 8px/space),
  • dix_tab_w() = label width + padding, dix_tab_rect() lays tabs out left to right,
  • the renderer and the mouse-clicked hit-test both call dix_tab_rect(), so drawing and hit-testing can't drift.

Bumps DIX_VERSION to 3.5.2; README updated. Unit tests pass; v3.5.2 builds, deploys, and loads clean-env.

🤖 Generated with Claude Code

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

CJ asked for the keys/compose tab to read "KEYS (COMPOSE)" (clearer than the
bare "KEYS"). That label is wider than the others, so switch the tab bar from
fixed-width to size-to-fit tabs: dix_tab_w() measures each label at the text
scale (matching draw_text's 12px/glyph, 8px/space advance) and dix_tab_rect()
lays them out left to right. The renderer and the click hit-test both call
dix_tab_rect(), so drawing and hit-testing stay in lockstep.

Bumps DIX_VERSION to 3.5.2; updates the README tab references.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JpVzsy8Wrc9DYEXns2Njzb
@CryptoJones
CryptoJones merged commit 72ffa5e into main Jul 5, 2026
@CryptoJones
CryptoJones deleted the rename-keys-compose-tab branch July 5, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant