Closed Bug 1948621 Opened 1 year ago Closed 1 year ago

[composable toolbar] Render a new TabCounter composable based on BrowserToolbarState

Categories

(Firefox for Android :: Toolbar, task, P2)

All
Android
task

Tracking

()

RESOLVED FIXED
138 Branch
Tracking Status
firefox138 --- fixed

People

(Reporter: petru, Assigned: petru)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxdroid][group3][composable toolbar])

Attachments

(2 external files)

This builds on top of https://phabricator.services.mozilla.com/D233607.

The TabCounter should be a variant of an Action (generic UI element that can be added to the toolbar) because of its specific layout of a number/text with a border around it
This should be configurable with:

  • the value to show in a rounded box.
  • an action to be dispatched / popup to show when clicked (see the BrowserToolbarPopup configuration from bug 1948617
data class TabCounterAction(
	val count: Int,
        val contentDescription: String,
	val onClick: BrowserToolbarEvent?,
	val onLongClick: BrowserToolbarEvent?,
)
See Also: → 1948750
Blocks: ct-foundational
No longer blocks: 1948591
Summary: [composable toolbar] Fully configure a new TabCounter composable based on BrowserToolbarState → [composable toolbar] Render a new TabCounter composable based on BrowserToolbarState
Assignee: nobody → petru
Status: NEW → ASSIGNED

This is a custom button that can be added to the toolbar with a specific UI and
which allows being passed in all details needed to render a generic tab counter button.

For now it is a wrapper over the TabCounter View which allows anchoring popup menus
it might show at the very bottom of the screen.
Until https://github.com/JetBrains/compose-multiplatform/issues/1878 is resolved.

Pushed by plingurar@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b74fb0dcee84 Add a composable TabCounter to use in the BrowserToolbar composable r=android-reviewers,tchoh https://hg.mozilla.org/integration/autoland/rev/1aec47f8f137 Integrate the TabCounter composable in the toolbar sample r=android-reviewers,gl
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 138 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: