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

Update SettingToggle to support custom icon #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EssamSoft
Copy link

No description provided.

@duraki
Copy link

duraki commented Jan 25, 2025

Thanks @EssamSoft for your contribution. This functionality is really needed. @aheze could you merge this? LGTM 👍 Eh.. my bad (see #38 (comment)). Alas, current ways to do this outside of pkg deps are too junky imo.

duraki added a commit to When-original-devs-wont-merge-good-PRs/Setting that referenced this pull request Jan 26, 2025
…sue via nillable horizontalPadding _ref aheze#42

This update fixes SettingToggle implementing Icons among other functionality (ref. aheze#42)

- impl: edgePadding setter (optional) via env_var, otherwise uses horizontalPadding (default)
- fixes: Icon padding issue (ref  via nillable horizontalPadding (ref. [aheze/Setting/#2614139662](aheze#38 (comment))), covering aheze#38, aheze#37
- impl: SettingToggle extension supporting `.icon(...)` methods
duraki added a commit to When-original-devs-wont-merge-good-PRs/Setting that referenced this pull request Jan 26, 2025
…sue via nillable horizontalPadding _ref aheze#42

This update fixes SettingToggle implementing Icons among other functionality

- impl: edgePadding setter (optional) via env_var, otherwise uses horizontalPadding (default)
- fixes: Icon padding issue (ref  via nillable horizontalPadding (ref. aheze#38 (comment), covers aheze#38, aheze#37
- impl: SettingToggle extension supporting `.icon(...)` methods
- impl: SettingToggle `onChange(...)` event handler, triggering when toggle is switched on/off
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