Skip to content

Palette Editor example#6490

Merged
FeodorFitsner merged 54 commits into
mainfrom
inesa/palette-editor
May 11, 2026
Merged

Palette Editor example#6490
FeodorFitsner merged 54 commits into
mainfrom
inesa/palette-editor

Conversation

@InesaFitsner

@InesaFitsner InesaFitsner commented May 11, 2026

Copy link
Copy Markdown
Contributor

Description

Test Code

# Test code for the review of this PR

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I signed the CLA.
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • If this PR targets a release/* branch, I added a new record to the active root CHANGELOG.md section
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing tests pass locally with my changes
  • I have made corresponding changes to the documentation (if applicable)

Screenshots

Additional details

Summary by Sourcery

Add a new interactive Palette Editor example app for exploring and customizing Material theme colors, including import/export of palettes, and clarify the scaffold background theme property documentation.

New Features:

  • Introduce a Palette Editor example app that lets users edit Material color roles and preview changes in light and dark themes.
  • Add palette import and export capabilities using a simple ft.Theme/ft.ColorScheme code representation.
  • Provide a rich UI for inspecting and adjusting primary, secondary, tertiary, error, surface, and add-on color roles with live previews.

Documentation:

  • Clarify that the Theme.scaffold_bgcolor setting customizes the page background color.

Insert a no-op reset_from_seed handler and add an IconButton (Icons.PALETTE) with tooltip 'Reset from seed' to the palette editor UI. The handler is currently a placeholder (pass) and should be implemented to restore palettes from a seed. Change made in sdk/python/examples/apps/palette_editor/main.py.

@sourcery-ai sourcery-ai Bot 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.

We've reviewed this pull request using the Sourcery rules engine

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 11, 2026

Copy link
Copy Markdown

Deploying flet-website-v2 with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8ad0dba
Status:⚡️  Build in progress...

View logs

Update [tool.flet.gallery] categories in sdk/python/examples/apps/palette_editor/pyproject.toml: change category from "Apps/Basic" to "Tools" so the Palette Editor example is listed under the Tools section in the Flet gallery.
@FeodorFitsner FeodorFitsner merged commit 2f9527d into main May 11, 2026
11 of 38 checks passed
@FeodorFitsner FeodorFitsner deleted the inesa/palette-editor branch May 11, 2026 19:45
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