Skip to content

feat: add grid view to assistant selector, toggle for hiding the title in bottom sheet#82

Merged
WSTxda merged 3 commits intoWSTxda:mainfrom
dmitthedazed:main
Mar 11, 2026
Merged

feat: add grid view to assistant selector, toggle for hiding the title in bottom sheet#82
WSTxda merged 3 commits intoWSTxda:mainfrom
dmitthedazed:main

Conversation

@dmitthedazed
Copy link
Contributor

just thought it was be nice and minimal to add a grid view, and to add a toggle to hide the title from bottom sheet. tried my best. tysm for your work anyway!

@dmitthedazed
Copy link
Contributor Author

sorry for 2nd commit, actually my first Pr

@WSTxda
Copy link
Owner

WSTxda commented Mar 10, 2026

Hi, thanks for contribution!

I noticed a few things that could be improved.

1. The alignment of the tip card and scrollbar needs to be adjusted.

Screenshot_2026-03-10-09-11-29-742_com wstxda switchai

2. The grid view needs to be customizable or adaptive to provide proper support at high or low DPI settings.

Low DPI:

Screenshot_2026-03-10-09-16-42-788_com wstxda switchai

In this case, you can reduce the grid size to 2x.

Landscape mode:

Screenshot_2026-03-10-09-16-38-473_com wstxda switchai

In this case, you can Increase the width to 4x and keep 3x for low DPI.


These changes are simple and can be made using only declarative XML. However, my suggestion is to allow the user to customize the grid size.

Another suggestion is to make the assistants compact pills to reduce scrolling and improve landscape navigation. (not mandatory).

@dmitthedazed
Copy link
Contributor Author

dmitthedazed commented Mar 10, 2026

Hi! Thanks for reaching out!

Implemented a grid column count that adapts automatically based on screen density and orientation — computed at runtime using densityDpi rather than resource qualifiers (which Android resolves incorrectly for intermediate densities). Portrait defaults to 3 columns (2 on low-density screens), landscape to 4 (3 on low-density). Users can override both orientations independently via dedicated settings entries that appear when grid view is enabled.

P.S. and quick fixes based by your suggestions and my mistakes

@WSTxda WSTxda merged commit 791d0e9 into WSTxda:main Mar 11, 2026
1 check passed
@WSTxda
Copy link
Owner

WSTxda commented Mar 12, 2026

Some ideas to explore soon.

1 - We could unify the list view and grid view into a single manager menu, where "1" row equals the list view.

2 - I think the automatic grid row control could be completely removed, since we already have the option to set the grid in both orientations.

Simply setting a neutral initial default value will be sufficient.

3 - Soon I'll add another option to customize component visibility, called "Manage Components" or something like that. The title and search bar can be moved into it.

@dmitthedazed The commit is great for this and shouldn't require many changes. We can also merge this behavior into a single ViewHolder.

Rows

1 → list view
2, 3, 4 → grid view

@dmitthedazed
Copy link
Contributor Author

I can't quite get your idea for the 1st idea, maybe you have some sketch for this one.

However i have some other suggestions, might open a PR for it if i feel like it

  1. Add a selector appearance menu entry and move all options to it with some graphics sorta "preview"
  2. Add an "express" mode where bottomview will only show pinned assistants, and if needed user can swipe up to see all available options, or replace bottomview with smth different for this mode, but idk how it can be implemented
  3. Since firefox has an default assistant permission it can be added too, i know it breaks the "AI" but it's just my personal thing i wish i had

@WSTxda
Copy link
Owner

WSTxda commented Mar 16, 2026

I think it's easier to show you.

Screenshot_2026-03-16-13-26-17-751_com wstxda switchai

I've finalized the logic. the next step is drop list preferences and use dialog builder to unify the grid span customizations for portrait and landscape.

I'm thinking of something similar to this:
Screenshot_2026-03-16-13-36-18-319_app simple peri-edit

Since I'll be redesign some UI elements and reorganize the settings preferences, you can leave those changes to me (if you don't mind).

@WSTxda
Copy link
Owner

WSTxda commented Mar 16, 2026

  1. Add a selector appearance menu entry and move all options to it with some graphics sorta "preview"

The reorganization of the settings should allow this. I can make a complete preview of the selector dialog if I have a dedicated fragment for these preferences.

  1. Add an "express" mode where bottomview will only show pinned assistants, and if needed user can swipe up to see all available options, or replace bottomview with smth different for this mode, but idk how it can be implemented

The idea behind the pinned assistants is that they remain permanently at the top of the list, even above the recent assistants ones. In addition, we have an option to customize the visibility of the assistants. Idk what the real use of this is.

  1. Since firefox has an default assistant permission it can be added too, i know it breaks the "AI" but it's just my personal thing i wish i had

If it's a text or voice chat assistant, it can be included.

@WSTxda
Copy link
Owner

WSTxda commented Mar 17, 2026

@dmitthedazed This should be the expected interface.

Screenshot_2026-03-17-20-40-35-622_com wstxda switchai

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