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

SettingsPage: add with_avatar option #291

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

danirabbit
Copy link
Member

The only custom header widget we ever use is an Avatar, so add an option for that instead of the display_widget option which doesn't really work and isn't used

Can test with elementary/switchboard-plug-parental-controls#187

Screenshot from 2024-02-01 14 26 34

Theoretically SettingsSidebarRow is also set up in this branch, but it'll take more work to make a branch to test that with so I'm assuming I'll need to follow up there to make it work properly

@danirabbit danirabbit requested a review from a team February 1, 2024 22:26
Copy link
Contributor

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

SettingsPage works with the linked plug PR and with the bluetooth plug (changing icon). SettingsSidebarRow needs testing with avatar but code looks good.

I was surprised the property bindings worked despite no explicit casting of display_widget to different types (Image, Avatar) but there did not seem to be any compilation or terminal warnings so I guess it is OK.

@jeremypw
Copy link
Contributor

jeremypw commented Feb 2, 2024

@danirabbit Needs conflict resolved.

@danirabbit
Copy link
Member Author

@jeremypw yeah I wondered if it might need to be casted as well, but seems to work!

@danirabbit danirabbit merged commit 5a832ef into main Feb 2, 2024
4 checks passed
@danirabbit danirabbit deleted the danirabbit/settingspage-withavatar branch February 2, 2024 17:19
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