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

Minor UI improvements #2305

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Minor UI improvements #2305

wants to merge 3 commits into from

Conversation

silvzr
Copy link
Contributor

@silvzr silvzr commented Dec 21, 2024

Changes

  1. With the addition of the Action button the module card feels pretty bloated when all of them are present at the same time.
    Screenshot_20241220-221644_KernelSU
    To improve it we can use icons only instead of text since they take less space; this also means adding an icon for Update and Uninstall buttons.
    Screenshot_20241220-220450_KernelSU
    Below are displayed other possible behaviors when not all of them are present:
    Screenshot_20241220-221227_KernelSU
    Screenshot_20241220-221214_KernelSU
    Screenshot_20241220-220428_KernelSU
    Since the Update button appears less frequently than the others, make it always display its text unless both Action and WebUI are present.
    Screenshot_20241220-221401_KernelSU

  2. Minor change to avoid possible missclicks caused by smaller buttons. Enabling and disabling modules is pretty rare by itself and considering overlayfs isn't as fast as magic mount a missclick often feels pretty punishing.

  3. The commit 7b3e732 readded transitions to all sections but I noticed they were missing from Home. With the help of @rifsxd I found out it was cause of the lag generated by the install function, which is called everytime you go to Home. Since installing magiskboot multiple times isn't needed, moving it to MainActivity ensures it's executed on app launch only avoiding unnecessary lag.

Tested-by: backslashxx [email protected]

silvzr and others added 3 commits December 21, 2024 13:00
...by using icons instead of text, leaving more space and proper padding.
in Home.kt the install function is called everytime you go to the HomeScreen, move it to MainActivity instead so it's executed on app launch only.

Co-Authored-By: Rifat Azad <[email protected]>
@backslashxx
Copy link
Contributor

heres how it looks for me
image
image

Tested-by: backslashxx [email protected]

@lightsummer233
Copy link
Contributor

lightsummer233 commented Dec 21, 2024

I don’t think only shows the icon will looks nice
In many times, we will only see less than 3 buttons
We needn’t too much icons if we have spaces to display texts
And the buttons which only contains a icon is too small
u can adjust the spacer between buttons i think

@silvzr
Copy link
Contributor Author

silvzr commented Dec 21, 2024

I don’t think only shows the icon will looks nice
In many times, we will only see less than 3 buttons
We needn’t too much icons if we have spaces to display texts
And the buttons which only contains a icon is too small
u can adjust the spacer between buttons i think

Well I can edit it to display text if there's only another one button but question is, how many times do you actually need to do it? Missclicking isn't punishing anymore partly for this reason. Also displaying both text and icon when update and uninstall are present would feels disproportionate on the left side (maybe make it display text only with action or webui, but not with update?). Spacing cannot be improved much, depending on DPI you could have even less free space with the actual one - here's an example

IMG_20241221_232323_009.jpg

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.

3 participants