Shared QML controls in qml/controls/ for our tweaks of Controls 2 #91
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
schaefera/utStudyBIble#91
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This came out of the phone check on PR #90. A plain Controls 2
TextFieldhas no edit menu on UT: Suru only styles it, and the Lomiri bubble belongs to Lomiri.Components, which we don't load. The owner's call: keep our own tweaks, and make them shared components, because the case will come up again.PR #90 starts
qml/controls/(a qmldir, imported as"../controls") withTextEntry, a TextField with Cut/Copy/Paste/Select all on press and hold. It is used by Import's address field, the module search and the typed reference.To do here: move the tweaks that already exist, or are repeated across pages, into
qml/controls/, with no visible change. Candidates from a sweep ofqml/:ReadingPane.qmlMenu/MenuItem). Make itIconMenuItem(and aMenuif needed), so the Suru-versus-palette logic lives in one place.ModulesPage.qml(3 ProgressBars, now also the import rows) andStarterPage.qml(2).DisplaySettings.qml(3) andSettingsPage.qml(1).enabledplusopacity: 0.4plus the offline note, in ModulesPage's Install, Update and Import (#87).PageBar: already shared, but underqml/pages/. Move it.BibleChooser.qmlDrawer) and the small modal Dialog pattern (ModulesPage). Share them once a second user appears; don't add them before then.Rule to add to CLAUDE.md (Code layout): a Controls 2 control we tweak, or a combination used on two or more pages, goes in
qml/controls/as its own file. Pages compose them. Controls hold no app logic (that stays in core and the glue), and use only QtQuick.Controls 2 (a Lomiri variant goes underqml/platform/ut/).Check: the e2e cases and shots are unchanged (objectNames are kept), and mem-check is no worse.
🤖 Generated with Claude Code