Skip to content

Refactor font loading from per-document to the portfolio #659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 26, 2022

Conversation

0HyperCube
Copy link
Member

@0HyperCube 0HyperCube commented May 22, 2022

Closes #655

  • font_cache per document -> font_cache in portfolio (involved passing the font_cache to all tools)
  • TriggerFontLoad called from backend with default font
  • tool_data (primary/secondary colour) -> global_tool_data
  • data (for specific tool) -> tool_data
  • Reduce number of arguments to transition by using ToolActionHandlerData
  • Fix clippy lints (deriving Eq for many PartialEq structs / enums)
  • Merge conflict also resolved issue with clicking on menu lists.

@0HyperCube 0HyperCube requested a review from Keavon May 22, 2022 08:16
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 22, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 08a9847
Status: ✅  Deploy successful!
Preview URL: https://e66fcd7b.graphite-master.pages.dev

View logs

@0HyperCube 0HyperCube marked this pull request as draft May 23, 2022 19:43
@Keavon Keavon changed the title Cleanup default font loading Refactor default font loading May 23, 2022
@Keavon Keavon force-pushed the master branch 2 times, most recently from a86fd02 to fd95326 Compare May 26, 2022 07:28
@0HyperCube 0HyperCube marked this pull request as ready for review May 26, 2022 20:09
@0HyperCube 0HyperCube requested a review from Keavon May 26, 2022 20:50
Copy link
Member

@Keavon Keavon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent improvements!

@Keavon Keavon changed the title Refactor default font loading Refactor font loading from per-document to the portfolio May 26, 2022
@Keavon Keavon merged commit 4411599 into master May 26, 2022
@Keavon Keavon deleted the default-font-cleanup branch May 26, 2022 23:27
Keavon added a commit that referenced this pull request Jun 16, 2022
* Cleanup default font loading

* Refactor fonts

* Fix menulist mouse navigation

* Format

* Formatting

* Move default font into consts.rs

Co-authored-by: Keavon Chambers <[email protected]>
Keavon added a commit that referenced this pull request Jul 30, 2023
* Cleanup default font loading

* Refactor fonts

* Fix menulist mouse navigation

* Format

* Formatting

* Move default font into consts.rs

Co-authored-by: Keavon Chambers <[email protected]>
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.

Move font loading from per-document to global on the editor
2 participants