Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Block editor: change block type #1047

Draft
wants to merge 47 commits into
base: main
Choose a base branch
from

Conversation

gordonbrander
Copy link
Collaborator

Fixes #1042

@@ -185,3 +185,16 @@ extension UIColor {
UIColor(Color.accentColor)
}
}

extension ShadowStyle {
static func brandShadowLg(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Introduce the concept of shadow presets. In future we will want to systematize our shadows so as to have a coherent sense of distance and lighting.

This allows us to anchor it at the bottom of the screen.
Still need to handle dark mode for destructive button
...and change heading icon.
These structs allow us to fully and completely describe the
colors for various states of a button.
Wraps representable and coordinates representable and supporting SwiftUI
views, like the select menu.
This will allow us to make the Update type generic if needed.
...use ControllerUpdateProtocol instead. The failure we were
experiencing in the previous commit was due to not implementing
ControllerModelProtocol (whoops), but really there is no need. We have
enough information to dispatch on constraints.
The property I was incidentally using in the test is now get-only.
We'll try to cut down on the amount of repetition by bundling together
common configurations into extensions.
Remove divider. Too visually noisy.
Was referencing wrong color constant.
We take it as a given that all blocks have a selection state, text, and
text selection. This is a good simplifying assumption because it means
most of our code paths no longer have to go through switch arms.

Blocks that don't need text can simply leave it empty.
...and pipe animation duration through to controller
...as well as block delete. We'll need a confirmation menu for this
eventually, but we can start here.
Remove outdated test, add new one
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block editor should allow you to change block types
1 participant