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 disabled app list tab #340

Merged
merged 21 commits into from
Jan 20, 2024
Merged

Conversation

phlpsong
Copy link
Collaborator

close #289

After a lot of research, I found that the selection highlight style could not customized(with multi selection gesture support) due to SwiftUI's limitation.

Any questions or suggestions about this, please let me know.

@Jerry23011
Copy link
Collaborator

I think it looks very nice, finally made it through all the tabs in Settings 🎉

Just some notes here:

  • My system is in Simplified Chinese, why is Keychain Access.app displayed in English
截屏2024-01-18 19 03 39
  • There seem to be an almost unnoticeable lag for the list to appear when switching from Service tab to Disabled app list tab
2024-01-18.19.04.04.mov

@CanglongCl
Copy link
Collaborator

close #289

After a lot of research, I found that the selection highlight style could not customized(with multi selection gesture support) due to SwiftUI's limitation.

Any questions or suggestions about this, please let me know.

There's indeed no easy solution for it if you are using List(selection). If it need more customization, use List() and detect with selectedItems.contain(item) instead

@phlpsong
Copy link
Collaborator Author

I think it looks very nice, finally made it through all the tabs in Settings 🎉

Just some notes here:

  • My system is in Simplified Chinese, why is Keychain Access.app displayed in English
截屏2024-01-18 19 03 39 * There seem to be an almost unnoticeable lag for the list to appear when switching from Service tab to Disabled app list tab

2024-01-18.19.04.04.mov

Thanks for your comments.

First issue fixed in 502a346

About the second issue I will take a look at it later. The odd behavior happens when service tab switch to others tab, I think root cause is the frame size change.

@phlpsong
Copy link
Collaborator Author

close #289
After a lot of research, I found that the selection highlight style could not customized(with multi selection gesture support) due to SwiftUI's limitation.
Any questions or suggestions about this, please let me know.

There's indeed no easy solution for it if you are using List(selection). If it need more customization, use List() and detect with selectedItems.contain(item) instead

Yes, I have thought about this before, but we will lose the quick multi selection ability after that. Maybe we could discuss and decide which one is more important.

CanglongCl
CanglongCl previously approved these changes Jan 19, 2024
@phlpsong
Copy link
Collaborator Author

phlpsong commented Jan 19, 2024

@Jerry23011 The lag issue disappears in the latest commit. You may check it.

@Jerry23011
Copy link
Collaborator

Jerry23011 commented Jan 19, 2024 via email

Jerry23011
Jerry23011 previously approved these changes Jan 19, 2024
CanglongCl
CanglongCl previously approved these changes Jan 19, 2024
@tisfeng
Copy link
Owner

tisfeng commented Jan 19, 2024

It looks great, but there are two small issues that need to be fixed:

  1. Adding a disabled App by dragging it causes a very noticeable lag.
  2. As for adding and removing disabled App controls, I prefer the previous segmented style, it's more obvious and clearer.

In addition, the current Add and Remove buttons do not have clear enough colors, there should be some contrast directly between the enabled and disabled states of the buttons, which needs to be improved by referring to the previous buttons.

@tisfeng
Copy link
Owner

tisfeng commented Jan 19, 2024

If there is no suitable system color, we can add one ourselves, as long as it achieves the effect we want.

I referred to the system settings page and added an add & minus background color and list border color, it looks good.

image

@phlpsong
Copy link
Collaborator Author

@tisfeng yep, I did tried add the same color with system table bg, but not look harmonized.

I think your changes look good.

tisfeng
tisfeng previously approved these changes Jan 20, 2024
@phlpsong
Copy link
Collaborator Author

phlpsong commented Jan 20, 2024

@tisfeng Could you describe the detail of the lag issue? Or we can merge this now and open an issue to track it separately? I could dive deep into it later.

@phlpsong phlpsong requested a review from CanglongCl January 20, 2024 07:14
CanglongCl
CanglongCl previously approved these changes Jan 20, 2024
Copy link
Owner

@tisfeng tisfeng left a comment

Choose a reason for hiding this comment

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

Looks good, let's merge it.

@tisfeng tisfeng merged commit 1f6fdc2 into tisfeng:dev Jan 20, 2024
5 checks passed
@phlpsong phlpsong deleted the phlpsong/disabled_tab_swiftui branch January 22, 2024 03:00
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.

4 participants