For #1071 Added Desktop Mode icon
This commit is contained in:
parent
5e18ead45e
commit
64923978e6
|
@ -10,7 +10,7 @@ import mozilla.components.browser.menu.item.BrowserMenuDivider
|
|||
import mozilla.components.browser.menu.item.BrowserMenuHighlightableItem
|
||||
import mozilla.components.browser.menu.item.BrowserMenuImageText
|
||||
import mozilla.components.browser.menu.item.BrowserMenuItemToolbar
|
||||
import mozilla.components.browser.menu.item.BrowserMenuSwitch
|
||||
import mozilla.components.browser.menu.item.BrowserMenuImageSwitch
|
||||
import org.mozilla.fenix.HomeActivity
|
||||
import org.mozilla.fenix.R
|
||||
import org.mozilla.fenix.browser.browsingmode.BrowsingMode
|
||||
|
@ -134,7 +134,8 @@ class DefaultToolbarMenu(
|
|||
onItemTapped.invoke(ToolbarMenu.Item.Library)
|
||||
},
|
||||
|
||||
BrowserMenuSwitch(
|
||||
BrowserMenuImageSwitch(
|
||||
R.drawable.ic_desktop,
|
||||
context.getString(R.string.browser_menu_desktop_site),
|
||||
requestDesktopStateProvider
|
||||
) { checked ->
|
||||
|
|
12
app/src/main/res/drawable/ic_desktop.xml
Normal file
12
app/src/main/res/drawable/ic_desktop.xml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path android:fillColor="?primaryText"
|
||||
android:pathData="M4,6a1,1 0,0 1,1 -1h14a1,1 0,0 1,1 1v11h1.5a0.5,0.5 0,0 1,0.5 0.5v1a0.5,0.5 0,0 1,-0.5 0.5h-19a0.5,0.5 0,0 1,-0.5 -0.5v-1a0.5,0.5 0,0 1,0.5 -0.5L4,17L4,6zM10,17v1h4v-1h-4zM6,7v9h12L18,7L6,7z" />
|
||||
</vector>
|
Loading…
Reference in New Issue
Block a user