Skip to content

fix focus border not appearing on workspace and output panels#9

Merged
DokaDev merged 2 commits intomainfrom
fix/focus-border-regression
Mar 8, 2026
Merged

fix focus border not appearing on workspace and output panels#9
DokaDev merged 2 commits intomainfrom
fix/focus-border-regression

Conversation

@DokaDev
Copy link
Owner

@DokaDev DokaDev commented Mar 8, 2026

spotted a regression from the OnFocus and OnBlur centralisation work. workspace and output panels weren't showign green borders when focused, while migrations and details worked fine

turned out to be a reference issue. ApplyFocusStyle() was accessing the view through self.view(the BaseContext field), but gocui's SetView() can return a different reference each frame. migrations and details never had this problem because they set colours directly on the local v variable in Draw(), never going through self.view

fix is simple. replaced the ApplyFocusStyle() call with inline colour setting in Draw(), same pattern migrations and details already use. all four panels are consistent now

also I bumped versino to v0.3.2

@DokaDev DokaDev merged commit 2d61984 into main Mar 8, 2026
1 check passed
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