Skip to content

Latest commit

 

History

History
117 lines (87 loc) · 4.72 KB

ROADMAP.md

File metadata and controls

117 lines (87 loc) · 4.72 KB

D707 — what is left to do

Where the project stands today, and the work that would take it further. Ordered roughly by how much each item is worth against how much it costs.

Done

  • Faceplate rebuilt from the reference artwork, zero image assets.
  • 45 standalone controls under controls/.
  • All 53 stylable Qt Quick Controls types restyled under style/D707/, selected through qtquickcontrols2.conf.
  • Documented, responsive gallery app (press G).
  • Stock-controls demo window (press N).
  • verify.py — static checks over all 125 QML files.

1. Close the style coverage gap — DONE

All 53 stylable types in Qt 6.8 are now covered. Written against Qt's own Basic style sources rather than guessed, so the template contracts match.

Two things worth remembering from that work:

  • HorizontalHeaderViewDelegate and VerticalHeaderViewDelegate do not exist in Qt 6.8. The header delegate is declared inline inside the two header view files. Do not add them.
  • Qt's TreeViewDelegate loads arrow-indicator.png for the expand arrow. Ours draws it with Glyph, which is what keeps the library at zero image assets.

Still not exercised by the demo window: TreeViewDelegate, HorizontalHeaderView, VerticalHeaderView and SelectionRectangle, because each needs a real table or tree model to show anything. They compile and resolve, but they have not been seen on screen yet — treat them as unproven until the test work in section 5 covers them.

2. Honour palette

No style file reads palette today; every colour is hard-coded in primitives/Style.qml. That is the single biggest blocker to "drop this in and it just works":

  • An app that sets palette.accent or palette.highlight gets ignored.
  • Disabled colours come from a hard-coded opacity: 0.42 rather than palette.disabled.
  • There is no light variant at all.

Reading control.palette with the D707 tokens as the default keeps the look while letting an app override it.

3. A settings singleton

Qt styles are configured by an attached type — Material.accent, Universal.theme. D707 has a per-file accent property, so changing the accent means touching every control.

  • Add a singleton to style/D707/qmldir (singleton D707Style 1.0 …).
  • Expose accent, face, theme (dark / light), and cornerRadius.
  • Let qtquickcontrols2.conf set them under a [D707] section, the way [Material] works.

4. Accessibility

No file sets an Accessible property. Screen readers see nothing.

  • Accessible.role, .name and .description on every control in controls/.
  • The types under style/D707/ inherit accessibility from their T. base, so those are already mostly covered — worth verifying rather than assuming.
  • Visible focus rings. Right now focus is shown only by a soft glow on some inputs, which is not enough for keyboard-only use.

5. Tests

verify.py is static only — it reads the files, it never runs them. It has caught real bugs (a missing import, a bad template property), but it cannot catch a binding loop, a wrong colour, or a control that does not respond.

  • A QtQuickTest suite: press a button, check checked; drag a slider, check value.
  • A screenshot regression harness. render.sh already grabs one window; extend it to walk the gallery pages and compare each against a stored image, so a change that silently breaks a page fails loudly.
  • Wire both into a continuous integration job.

6. Ship it as a real module

Right now the style only works from inside this repository, through qml.qrc and engine.addImportPath("qrc:/").

  • CMake install rules so another project can find_package it.
  • Proper module URIs for controls and primitives, not directory imports.
  • A minimal example app outside this tree that proves a third party can actually adopt it.
  • Root README.md and a licence. Neither exists yet.

7. Performance

Every shadow is 22 stacked rounded rectangles. The faceplate holds dozens.

  • Measure first — on a normal desktop this is very likely fine, and the 22-rectangle approach is what makes it work on any Qt build with no effect module.
  • If it does show up: Qt 6.5's MultiEffect can do the same job on the graphics card, with the current path kept as the fallback.

8. Smaller things

  • Right-to-left: 11 files handle mirrored, mostly inherited from IconLabel. The rest are untested under LayoutMirroring.
  • Translation: qsTr is only on window titles.
  • Remember the skin: the faceplate colour resets on every launch.
  • Gallery: add a search box, a copy-the-code button, and a live property playground per control.
  • Native demo: it currently shows a subset. Extend it to every styled type, so it doubles as the visual test page.