Skip to content

Simplify and standardize size and spacing properties - #547

Merged
SavenkovIgor merged 11 commits into
mainfrom
sizes-cleanup
Jul 9, 2026
Merged

Simplify and standardize size and spacing properties#547
SavenkovIgor merged 11 commits into
mainfrom
sizes-cleanup

Conversation

@SavenkovIgor

Copy link
Copy Markdown
Owner

Refactor size and spacing properties across components to use a consistent theme. Remove the Sizes.qml file and simplify calculations for better maintainability and clarity.

Copilot AI review requested due to automatic review settings July 9, 2026 12:58
@SavenkovIgor
SavenkovIgor enabled auto-merge (squash) July 9, 2026 12:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors QML sizing/spacing to come from a single Theme.spacing object and removes the standalone Sizes.qml singleton, aiming to standardize layout constants across UI components.

Changes:

  • Added Theme.spacing and updated font sizing in Theme.qml to reference it.
  • Removed source/Theme/Sizes.qml and dropped it from the Theme QML module sources.
  • Replaced Sizes.* usages with Theme.spacing.* across Pages/Molecules/Atoms.

Testing:

  • Not provided.

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
source/Theme/Theme.qml Introduces Theme.spacing and switches font sizing to use it.
source/Theme/Sizes.qml Removes the legacy singleton sizing definitions.
source/Theme/CMakeLists.txt Stops exporting Sizes.qml in the Theme QML module.
source/Pages/Settings/NetworkSettings.qml Migrates layout spacing/padding to Theme.spacing.*.
source/Pages/Settings/Database.qml Migrates page column spacing to Theme.spacing.*.
source/Pages/GroupsList.qml Migrates page padding to Theme.spacing.*.
source/Molecules/TermInfoDrawer.qml Migrates drawer paddings to Theme.spacing.*.
source/Molecules/SideMenuHeader.qml Migrates icon/button sizing to Theme.spacing.*.
source/Molecules/SearchDrawer.qml Migrates left padding to Theme.spacing.*.
source/Molecules/NotificationDrawer.qml Migrates text paddings to Theme.spacing.*.
source/Molecules/HelpView.qml Migrates indicator diameter to Theme.spacing.*.
source/Molecules/EdgeHardeningDrawer.qml Migrates text padding/top/bottom padding to Theme.spacing.*.
source/Atoms/ToolButton.qml Migrates default toolbutton size to Theme.spacing.*.
source/Atoms/SquareButton.qml Migrates implicit height to Theme.spacing.*.
source/Atoms/SideMenuButton.qml Migrates paddings/spacing/sizing to Theme.spacing.*.
source/Atoms/ScrollIndicator.qml Migrates thickness sizing to Theme.spacing.*.
source/Atoms/RoundButton.qml Migrates default round button size to Theme.spacing.*.
source/Atoms/PageHeader.qml Migrates toolbar height to Theme.spacing.*.
source/Atoms/FlickableColumn.qml Migrates column spacing to Theme.spacing.*.
source/Atoms/DrawerPage.qml Migrates drawer paddings to Theme.spacing.*.

Comment thread source/Theme/Theme.qml
@SavenkovIgor
SavenkovIgor merged commit 07fa99a into main Jul 9, 2026
6 checks passed
@SavenkovIgor
SavenkovIgor deleted the sizes-cleanup branch July 9, 2026 13:14
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.

2 participants