Skip to content

Add movable and resizable pinned action button (e.g. dictation/mic)#1933

Open
PimpinPumpkin wants to merge 2 commits intofuto-org:masterfrom
PimpinPumpkin:feature/dictation-button-position-and-size
Open

Add movable and resizable pinned action button (e.g. dictation/mic)#1933
PimpinPumpkin wants to merge 2 commits intofuto-org:masterfrom
PimpinPumpkin:feature/dictation-button-position-and-size

Conversation

@PimpinPumpkin
Copy link
Copy Markdown

Summary

Pinned action buttons (e.g. the mic/dictation button) are currently fixed to the right side of the suggestion bar at a single small size. This is hard to use on tablets and in-car vertical screens (e.g. Tesla-style displays).

This PR adds two new settings under Settings → Actions:

  • Pinned actions on left side — moves pinned buttons (mic etc.) to the left of the suggestions instead of the right
  • Pinned action button size — resizes the buttons: Small / Normal (default) / Large

Changes

  • ActionBar.kt: add PinnedActionsOnLeft (boolean) and PinnedActionsSize (int 0/1/2) SettingsKeys; ActionItemSmall now accepts a size parameter that scales button width and icon; PinnedActionItems reads the size from the datastore; ActionBar row conditionally renders pinned items before or after the suggestion strip based on the position setting
  • Actions.kt: expose both new settings in the Settings → Actions quick options section
  • strings-uix.xml: add string resources for the new setting labels and size options

Motivation

Primarily motivated by tablet and in-car use where the right-side small mic button is difficult to tap accurately. Putting it on the left and making it larger significantly improves usability in those contexts.

Pinned action buttons (e.g. the dictation/mic button) can now be
repositioned to the left side of the suggestion bar and resized to
Small, Normal, or Large — useful for tablet and in-car use where
the default right-side small button is hard to tap.

Changes:
- ActionBar.kt: add PinnedActionsOnLeft and PinnedActionsSize settings
  keys; pass size through to ActionItemSmall; conditionally render
  pinned items on left or right of suggestion strip
- Actions.kt: expose both new settings in Settings → Actions UI
- strings-uix.xml: add string resources for the new settings
@futo-cla-pr-labler
Copy link
Copy Markdown

Please sign our contributor license agreement at https://cla.futo.org

@futo-cla-pr-labler
Copy link
Copy Markdown

Please sign our contributor license agreement at https://cla.futo.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants