Skip to content

Merge desktop UI updates and CUDA model compatibility - #30

Merged
Aaaaamadeus merged 14 commits into
mainfrom
feat/ui-2.0
Nov 10, 2026
Merged

Aaaaamadeus merged 14 commits into
mainfrom
feat/ui-2.0

Conversation

@Aaaaamadeus

Copy link
Copy Markdown
Owner

Expose CUDA acceleration on the translation page and save changes for the next batch. Detailed settings now preserve automatic detector selection, report unreadable model paths, and keep the browse controls reachable at narrow widths.

The model changes from #29 are included by ancestry. Auto detection uses the legacy Comic Text Detector when CUDA initializes and prefers the lightweight dual-graph detector on CPU. White-balloon repair preserves isolated artwork, and the model archive includes both detectors. The UI changes also fix the editor timer callback that failed a test on the model-only merge candidate.

Add one-click retouch for the last batch and skip unreadable results while importing the rest. The editor gains undoable white and black region fill, and the translation preferences panel expands without shifting the log abruptly. Refresh the theme and first-launch smoke checks for the current widgets.

All 440 unit tests passed for the combined changes. Light and dark Qt captures passed at 1440, 1024, and 820 px. The Windows program and model archives were extracted into a fresh directory and verified with both CPU and CUDA.

Editor before Editor with region fill
Editor before the fill controls Editor with white and black fill controls

Detailed settings in the dark theme

Surface every option that previously required editing config.yaml: max parallel pages, PDF render DPI, default font size, font probe samples and the five model paths. Values are clamped on load, the CharSpot path now invalidates the model pipeline, and the page offers a model check plus restore-defaults. English and Japanese catalogs are updated.
The translate page now sends every result from the last finished batch into the typesetting list, reusing the editor's batch import and persisting the list across restarts. The preferences foldout animates its height instead of fading a fixed-size scroll area; at normal heights the log panel stays in place so the layout no longer jumps. Editor-owned timers and event filters are torn down on close, which also removes the deleted-widget event storm seen in batch test runs.
The repair toolbar now offers one-click white and black fills for simple backgrounds. They paint the cleaned base image, share the existing undo history and save path with LaMa repairs, and refuse selections that overlap a restored bubble.
feat(ui): add a detailed settings page for runtime and model tuning
@Aaaaamadeus
Aaaaamadeus merged commit 5ae15b4 into main Nov 10, 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