-
Notifications
You must be signed in to change notification settings - Fork 31
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
Rearrange Settings #872
Merged
Merged
Rearrange Settings #872
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sjmarf
requested review from
mormaer and
ShadowJonathan
and removed request for
a team
January 21, 2024 23:45
EricBAndrews
approved these changes
Jan 29, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR moves some settings to different menus. It also includes some minor design Settings design touch-ups.
Account -> Local Options
This new section contains the settings that are stored per-account locally within Mlem. Currently, this constitutes the Account Nickname setting (which has been moved from Appearance -> Tab Bar) and the "Delete Community Favorites" button (which has been moved from General).
Because the account nickname is visible in the account switcher in addition to the tab bar, I think it fits better in Account Settings than Tab Bar settings.
In future, when we add an option for per-account Face ID Lock, that setting will go here as well.
Accounts -> Quick Switcher
I've moved the "Swipe up for Account Switcher" option from Appearance -> Tab Bar to a new "Quick Switcher" submenu inside of the Accounts page. It's not an appearance setting, so it doesn't make sense for it to be under Appearance (I knew this when I added it, but couldn't be bothered to make a new menu at the time lol). This page lets you enable/disable the long press and swipe activation methods, and plays short animations showing how to use each gesture.
RPReplay_Final1705879843.mov
This has the added benefit of letting the user know that the Long Press gesture exists - we didn't tell the user about this anywhere previously.
If the user only has two accounts, the "Quick Switcher"
NavigationLink
is replaced by a tip that tells you about the long-press gesture:Untitled.mp4
I'm aware that these animations are overkill lol, but I wanted to play with the new iOS 17
PhaseAnimator
. This does have the unfortunate side effect of the animations not being visible pre-iOS 17 though.Tab Bar Appearance Settings
As mentioned above, the nickname field has been moved from this page to the new "Local Options" page, and the "Swipe up for Account Switcher" option has been moved to Accounts.
I've redesigned the Profile Icon Appearance setting here, too:
You may notice that I've removed the "username" option, and set "nickname" as the new default. My rationale for this is that if the user sets a nickname, they probably want it to be consistent everywhere in Mlem. So, the "username" setting didn't make much sense to me - why hide a nickname that you've chosen to set? Lmk if you disagree with this change.