Skip to content
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

New Toolbar API & New Styling #196

Merged
merged 8 commits into from
Oct 10, 2024
Merged

Conversation

roibenshoham
Copy link

in this PR a new toolbar API modified.

  • Users can now add custom contexts, sections, and items to the toolbar.
  • New styles have been applied to the toolbar icons.
  • A new stickyKeyboard option allows the stickyKeyboard to stick to either the right or left side of the toolbar.
  • The toolbar is now divided into sections, with each section visually separated.

New icons with separators:

new.icons.mov

Dark mode with custom context and sticky keyboard:

Screen.Recording.2024-09-09.at.18.16.03.mov

Comment on lines +94 to +96
flatList: {
flex: 1,
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

The styling here is abit off

Screenshot 2024-09-10 at 16 21 56

Screenshot 2024-09-10 at 16 23 21

import { ToolbarItemComp } from './ToolbarItemComp';

interface WebToolbarProps {
editor: EditorBridge;
args: Parameters<ToolbarItem['onPress']>[0];
items: ToolbarItem[];
hidden?: boolean;
sections?: Record<string, ToolbarSection>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Support context here?

Comment on lines +38 to +39
contexts?: Record<ToolbarContext, ToolbarContextConfig>;
sections?: Record<string, ToolbarSection>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

why do we need both contexts and sections? What happens if we have both?

@17Amir17
Copy link
Collaborator

Same with the active

![Screenshot 2024-09-10 at 17 25 02](https://github.com/user-attachments/assets/6d5ea402-294c-438c-8c54-
28891aba8576)

@17Amir17 17Amir17 changed the base branch from main to alpha September 16, 2024 09:46
@17Amir17 17Amir17 merged commit 80ba207 into 10play:alpha Oct 10, 2024
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