Skip to content

UI: Add appearance styles aligned with PhotoCraft - #400

Open
cdinhoo wants to merge 1 commit into
storytold:mainfrom
cdinhoo:codex/appearance-styles
Open

cdinhoo wants to merge 1 commit into
storytold:mainfrom
cdinhoo:codex/appearance-styles

Conversation

@cdinhoo

@cdinhoo cdinhoo commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

This proposes appearance choices aligned with PhotoCraft’s approach: distinct styles that change surfaces, corners, tabs, and control treatment while preserving familiar layouts.

EffectCraft's themes currently share the same visual style, and several custom effect/timeline surfaces keep dark colors even in Light. This adds Studio Dark, Studio Light, and Classic alongside the existing themes, with a checked Appearance submenu in the macOS application menu and View on other platforms. The new menu entries are covered by the existing Japanese and Simplified/Traditional Chinese catalogs.

Studio uses rounded panels, selected tab backgrounds, and violet accents. Classic uses neutral gray panels, lighter gray fields, square controls, subtle beveled edges, and restrained blue editing accents. Effect headers and timeline surfaces now use theme colors. The existing default, control geometry, workspaces, semantic label/cache colors, and composition data are preserved.

Choices apply immediately and persist through the existing preferences, CLI/control channel, and UI commands. Settings retains live preview/Cancel and adds Reset Appearance. No new dependencies or project-format changes.

Validation: CARGO_PROFILE_RELEASE_LTO=false RUST_TEST_THREADS=1 TMPDIR=/private/tmp cargo xtask ci passes (formatting, release clippy with warnings denied, all workspace tests, dependency layers, asset attribution, and WebAssembly checks). Four new appearance tests cover menu switching/checkmarks, saved preference IDs, backwards compatibility, contrast, and unchanged document/layout geometry. Inspected actual headless renders of Dark, Studio Dark, Studio Light, Classic, and the settings dialog.

Validation environment: macOS Apple Silicon. Release optimization remains enabled; link-time optimization is disabled for the validation builds to shorten repeated test linking. Tests run with RUST_TEST_THREADS=1 because the existing CJK fallback test depends on process-wide font-loading order, and TMPDIR=/private/tmp to use macOS’s canonical temporary path. No tests are filtered or newly ignored.

The before/after screenshots are embedded below for review and are not part of the proposed commit. They were captured from the actual UI at 1500×950 using a procedural gradient and built-in effects; the local preview build uses a neutral EC mark. The repository documents the styles in text and adds no screenshot binaries or image attribution rows.

Default Dark — existing baseline

Default Dark — existing baseline

Studio Dark

Studio Dark

Studio Light

Studio Light

Classic — neutral gray

Classic — neutral gray

Appearance settings

Appearance settings

@cdinhoo cdinhoo changed the title Add appearance styles and an Appearance menu Suggestion: Add appearance styles aligned with PhotoCraft Oct 9, 2026
@cdinhoo cdinhoo changed the title Suggestion: Add appearance styles aligned with PhotoCraft UI: Add appearance styles aligned with PhotoCraft Oct 9, 2026
@cdinhoo
cdinhoo force-pushed the codex/appearance-styles branch from e00a638 to d6c1771 Compare October 9, 2026 13:02
@echelon

echelon commented Oct 9, 2026

Copy link
Copy Markdown
Member

Thank you! Moving the hard-coded colours in the timeline, Effect Controls and viewer to theme tokens is exactly right, and the Classic look is coherent. If you're not on our Discord yet, please join us: https://discord.gg/artcraft

One request before we merge. The PR adds about 1.6 MB of PNGs under docs/images/. We avoid committing binary images, because they stay in git history for good. Please:

  • Drop the five screenshots from the PR and put the before/after images in the PR description instead.
  • Update the references. Remove the doc links to them, or describe the styles in text.
  • Fix ATTRIBUTION.md. Remove the blank line before the new rows (the rows will mostly go away with the images anyway). As it stands, they render outside the table.

@cdinhoo
cdinhoo force-pushed the codex/appearance-styles branch from d6c1771 to 8851b6f Compare October 9, 2026 14:30
@cdinhoo

cdinhoo commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

@echelon Updated as requested: removed the five screenshots and their attribution files from the commit, kept the images in the PR description, and removed the obsolete documentation links and associated ATTRIBUTION.md rows and blank line.

The PR still contains one commit, and the full cargo xtask ci passes. Ready for another review. Thanks!

@FredApps FredApps 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.

Requesting changes on 8851b6f. This is a source-reading review; no hosted checks are reported on this sha and no local tests were run (builds are paused). The description says cargo xtask ci passed on the author's machine, which I could not verify.

  1. The branch conflicts with main (CONFLICTING/DIRTY). Please rebase.
  2. Translations: the new menu rows (Appearance, Studio Dark, Studio Light, Classic, Darker, Appearance Settings...) are added only to the Japanese and Simplified/Traditional Chinese tables in i18n.rs. EffectCraft also ships Ukrainian, Portuguese, Czech and Spanish tables (i18n/ui.rs), and the new settings strings (Theme choices, the Reset Appearance button) have no row in any of them. Every new user-visible string needs a translation in each shipped language.
  3. The rows are keyed on the English labels (prefs.set, Dark, ...). Please confirm the Appearance choices are matched through the preference ids (studioDark, classic, ...) and not through the shown names, so a translated label cannot change behaviour.
  4. After the rebase, hosted CI needs to run and pass on the new head.

The move of hard-coded timeline, Effect Controls and viewer colours to theme tokens, and the removal of the committed screenshots the maintainer asked for, look as intended.

@bflatastic

Copy link
Copy Markdown
Member

Hi @cdinhoo, thanks for this PR! main has changed a lot since it was opened, and it now conflicts with main, so it needs a rebase before we can review it for merging.

Most of the conflict comes from the shared module layout (#2491), which moved or split files this PR touches:

  • crates/engine/src/prefs.rs: its folder moved to crates/engine/src/tests/
  • crates/ui-egui/src/lib.rs was split: most of its code is now in app/*.rs and state.rs
  • crates/ui-egui/src/menus.rs was split: most of its code is now in menus/*.rs
  • crates/ui-egui/src/panels/effect_controls.rs was split: most of its code is now in panels/effect_controls/*.rs
  • crates/ui-egui/src/panels/viewer.rs was split: most of its code is now in panels/viewer/*.rs

When you rebase, please also make sure it fits the other recent changes:

CI (cargo xtask ci) now runs on PRs. Once it's green on the rebased branch, we'll take a look. Thank you!

This branch has not been deployed

No deployments
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.

4 participants