[composable toolbar] Render a new TabCounter composable based on BrowserToolbarState
Categories
(Firefox for Android :: Toolbar, task, P2)
Tracking
()
| 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
BrowserToolbarPopupconfiguration from bug 1948617
data class TabCounterAction(
val count: Int,
val contentDescription: String,
val onClick: BrowserToolbarEvent?,
val onLongClick: BrowserToolbarEvent?,
)
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
| Assignee | ||
Comment 1•1 year ago
|
||
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.
| Assignee | ||
Comment 2•1 year ago
|
||
Comment 4•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b74fb0dcee84
https://hg.mozilla.org/mozilla-central/rev/1aec47f8f137
Description
•