Skip to content

🔨 Extract ScreenLayout into ScreenProvider interface with configurable padding#3967

Merged
guiyanakuang merged 2 commits intomainfrom
refactor/issue-3966-screen-layout-interface
Mar 1, 2026
Merged

🔨 Extract ScreenLayout into ScreenProvider interface with configurable padding#3967
guiyanakuang merged 2 commits intomainfrom
refactor/issue-3966-screen-layout-interface

Conversation

@guiyanakuang
Copy link
Copy Markdown
Member

Closes #3966

Summary

  • Promote ScreenLayout from a private method in DesktopScreenProvider to the ScreenProvider interface with configurable horizontal, top, and bottom padding parameters
  • Rename the original private method to DesktopScreenLayout as a convenience wrapper with desktop defaults
  • Apply custom padding to ShareScreen via the new interface method
  • Remove hardcoded padding from ShareContentView to let the caller control layout

Test plan

  • Verify all screens render with correct padding (Settings, About, Devices, etc.)
  • Verify ShareScreen displays with proper xxLarge padding on all sides

@guiyanakuang guiyanakuang merged commit fc7b0a4 into main Mar 1, 2026
2 checks passed
@guiyanakuang guiyanakuang deleted the refactor/issue-3966-screen-layout-interface branch March 1, 2026 10:43
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.

Extract ScreenLayout into ScreenProvider interface with configurable padding

1 participant