Commit 422cf747 authored by Simon Chae's avatar Simon Chae Committed by Arturo Mejia
Browse files

For #8319: Integrate nest WebExtensionBrowserMenu support

parent bd9ff675
......@@ -68,6 +68,10 @@ class DefaultToolbarMenu(
menuItems,
endOfMenuAlwaysVisible = !shouldReverseItems,
store = store,
webExtIconTintColorResource = primaryTextColor(),
onAddonsManagerTapped = {
onItemTapped.invoke(ToolbarMenu.Item.AddonsManager)
},
appendExtensionActionAtStart = !shouldReverseItems
)
}
......@@ -186,7 +190,6 @@ class DefaultToolbarMenu(
val menuItems = listOfNotNull(
historyItem,
bookmarksItem,
addons,
settings,
if (shouldDeleteDataOnQuit) deleteDataOnQuit else null,
BrowserMenuDivider(),
......@@ -211,14 +214,6 @@ class DefaultToolbarMenu(
}
}
private val addons = BrowserMenuImageText(
label = context.getString(R.string.browser_menu_add_ons),
imageResource = R.drawable.mozac_ic_extensions,
iconTintColorResource = primaryTextColor()
) {
onItemTapped.invoke(ToolbarMenu.Item.AddonsManager)
}
private val settings = BrowserMenuHighlightableItem(
label = context.getString(R.string.browser_menu_settings),
startImageResource = R.drawable.ic_settings,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment