Repository navigation
Console fallback theme: room for the EditLine frame (#1136) - #1171
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1136
In the
consoleconfiguration, when no theme can be loaded, the fallback theme'sEDIT_LINEhas 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 theEDIT_LINEstyle and its frame drawable, as inconsole_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:
-c console, Linux, tmux) withuiThemeset 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. Withpadding: 0on one EditLine, the frame stays (without the drawable's padding, that line shows the bug again).dub test(36 modules) anddub test -c console(33), no leak lines; D-Scanner clean.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