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

Add a link to Add-ons in the Settings #1656

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Conversation

felipeerias
Copy link
Collaborator

Add a button to open the Add-ons page from the Settings, since that is a pretty obvious place to find this functionality.

To avoid messing up the layout of the honeycomb buttons, I've moved the "What's New" button closer to the version details. After some experimentation, I've placed two small buttons on the right side of the Settings window, linking to the Feedback and News pages.

The background of the What's New button becomes highlighted when the details of the new version are available (this replaces the little blue dot that we had before).

I have also simplified the implementation of the hidden shortcut to show the version details. Now it is just a matter of clicking on the app logo or the app name.

Finally, I have also simplified the layout in the Settings window by removing an unneeded LinearLayout and using the parent ConstraintLayout instead.

@felipeerias
Copy link
Collaborator Author

felipeerias commented Dec 6, 2024

This is how the dialog looks when there is new "What's New" information:

Screenshot_com igalia wolvic dev_2024 12 06-20 53 17 419_016

And this is how it looks in the regular state.

Screenshot_com igalia wolvic dev_2024 12 06-20 51 32 799_385

I think that placing the Add-ons link here makes a lot of sense but am not completely convinced about the rest of the layout. What do you think?

@svillar
Copy link
Member

svillar commented Dec 6, 2024

I think that placing the Add-ons link here makes a lot of sense but am not completely convinced about the rest of the layout. What do you think?

I wholeheartedly agree with placing the addons there, now that I see it, it makes total sense to me. Regarding the other two elements I am not convinced either, looks too texty to me (the other elements are big icons)

@felipeerias felipeerias force-pushed the felipeerias/addonsSettings branch 2 times, most recently from 089a144 to fb71766 Compare December 17, 2024 14:56
@felipeerias
Copy link
Collaborator Author

I have updated this PR to adjust the visual appearance.

This is how the Settings dialog looks when the "What's new" page for the current version has not been visited yet:

Screenshot_com igalia wolvic dev_2024 12 17-23 58 00 520_505

And this is how it looks otherwise:

Screenshot_com igalia wolvic dev_2024 12 17-23 54 37 373_157

@felipeerias
Copy link
Collaborator Author

More information about the color attributes for the buttons is available at:

https://github.com/material-components/material-components-android/blob/1.9.0/docs/components/Button.md

Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

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

I was about to approve it but I found a significant usability issue. If you open the addons from the settings then there is no clear way to exit the addons tab to go back to the normal browsing.

When visiting bookmarks or downloads is different because you see that the button is pressed in the navigation bar (that could be improved with colors too), but in the case of the addons there is no easy and intuitive way to go back. Somehow you have to discover that clicking on the bookmarks button in the nav bar can take you back

@felipeerias
Copy link
Collaborator Author

@svillar Good catch. You can exit the Add-ons by clicking on the button at the top-right corner, but that is not very discoverable.

I think that there is also a bug in the code that updates the status of tray buttons. The Bookmarks button should become visibly active and clicking it should take you back to the browser. However, that code might not be working correctly in all cases.

@felipeerias felipeerias force-pushed the felipeerias/addonsSettings branch from fb71766 to 9c16d93 Compare January 8, 2025 02:47
@felipeerias felipeerias requested a review from svillar January 8, 2025 02:48
Ensure that the state of the tray buttons for bookmarks and downloads
stays consistent in all cases.

This fixes several bugs, including one where the state of these
buttons was not updated when the user navigated to another section
within the Library, and another where the icon padding was not always
updated correctly.

The main change is that LibraryPanel defines a Controller interface
that is used to set the current panel content. This is called from
the navigation buttons within the Library, so the containing
WindowWidget is able to update its state accordingly.
Add a button to open the Add-ons page from the Settings, since that
is a pretty obvious place to find this functionality.

To avoid messing up the layout of the honeycomb buttons, I've moved
the "What's New" button closer to the version details. After some
experimentation, I've placed two small buttons on the right side of
the Settings window, linking to the Feedback and News pages.

The background of the What's New button becomes highlighted when the
details of the new version are available (this replaces the little
blue dot that we had before).

I have also simplified the implementation of the hidden shortcut to
show the version details. Now it is just a matter of clicking on the
app logo or the app name.

Finally, I have also simplified the layout in the Settings window by
removing an unneeded LinearLayout and using the parent
ConstraintLayout instead.
@felipeerias felipeerias force-pushed the felipeerias/addonsSettings branch from 9c16d93 to 68c79d0 Compare January 8, 2025 02:49
@felipeerias
Copy link
Collaborator Author

@svillar I have updated this PR so when you open the Add-ons panel from the Settings, in addition to the button on the top-right corner, the Bookmarks button in the Tray will also become active. Clicking that Bookmarks button will switch to showing the bookmarks, and clicking again will go back to Web browsing.

I have added a commit ensuring that the state of the Bookmarks and Downloads buttons in the Tray remains consistent through the different events.

Copy link
Member

@svillar svillar left a comment

Choose a reason for hiding this comment

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

lgtm

@svillar svillar merged commit 68e59a0 into main Jan 8, 2025
22 checks passed
@svillar svillar deleted the felipeerias/addonsSettings branch January 8, 2025 09:50
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