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

TwoStateToolbarAction #93

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

TwoStateToolbarAction #93

wants to merge 8 commits into from

Conversation

jimorc
Copy link

@jimorc jimorc commented Sep 11, 2024

TwoStateToolbarAction is a toolbar action that maintains state and displays one of two icons based on the current state. Tapping the toolbar action changes the state and displays the other icon. The state is also passed to the onActivate function.
This PR implements issue #92.

Displayed icon in widget alternates between 2 different icons.
Simple demo app provided.
More functionality will be added.
Give names that better describe what they are.
SetState0Icon sets or changes the icon that is displayed when state is TwoState0.
SetState1Icon sets the icon to display when the state is TwoState1.
toolbarAction description to README.md
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.

1 participant