Skip to content

Console fallback theme: room for the EditLine frame (#1136) - #1171

Merged
buggins merged 1 commit into
masterfrom
console-fallback-editline-1136
Nov 23, 2026
Merged

buggins merged 1 commit into
masterfrom
console-fallback-editline-1136

Conversation

@buggins

@buggins buggins commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Fixes #1136

In the console configuration, when no theme can be loaded, the fallback theme's EDIT_LINE has a three-row frame (╔═╗ / ║ ║ / ╚═╝) but no padding. In a one-row EditLine the frame's top row was drawn under the text: spaces showed as ═ and the line ended with ╗; the same in ComboEdit.

Change (styles.d, createDefaultTheme()): padding 1,1,1,1 for the EDIT_LINE style and its frame drawable, as in console_theme_default.xml. The drawable's padding keeps the room for the frame when a widget sets a smaller padding of its own (widgets use the larger of the two).

Testing:

  • helloworld (-c console, Linux, tmux) with uiTheme set to a missing theme: on master the EditLines and the ComboEdit show the frame line in place of spaces; with this change they get a full frame with the text inside. With padding: 0 on one EditLine, the frame stays (without the drawable's padding, that line shows the bug again).
  • dub test (36 modules) and dub test -c console (33), no leak lines; D-Scanner clean.
  • No unittest: it could only repeat the padding values.

Found by the review, filed separately: #1170 (no focus frame for EditLine, no frame for EditBox in the console fallback theme).

🤖 Generated with Claude Code

The console fallback theme's EDIT_LINE has a three-row frame but had no
padding, so in a one-row EditLine the frame's top row was drawn under
the text: spaces showed as the frame line. The style and the frame
drawable now have padding 1,1,1,1, as in console_theme_default.xml (the
drawable's padding keeps the room when a widget sets a smaller padding).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@buggins buggins self-assigned this Nov 23, 2026
@buggins
buggins marked this pull request as ready for review November 23, 2026 22:42
@buggins
buggins merged commit c851303 into master Nov 23, 2026
13 checks passed
@buggins
buggins deleted the console-fallback-editline-1136 branch November 23, 2026 22:44
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.

Console fallback theme: EditLine frame drawn under the text (spaces show as ═)

1 participant