mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-30 00:01:50 +00:00
Bug 1132751 - Add android:logo to fennec application. r=liuche
On Android v21, this logo is a padded version of android:icon which, to my knowledge, is only used by the ActionBar, which we only make visible in GeckoPreferences. On < 21, this icon is used via resource alias. --HG-- extra : rebase_source : 93722e1935fa363e527e230b5498339f93f2f911
This commit is contained in:
parent
8b1165d2ea
commit
06900d90e0
@ -86,6 +86,7 @@
|
||||
|
||||
<application android:label="@string/moz_app_displayname"
|
||||
android:icon="@drawable/icon"
|
||||
android:logo="@drawable/logo"
|
||||
android:name="org.mozilla.gecko.GeckoApplication"
|
||||
android:hardwareAccelerated="true"
|
||||
# The preprocessor does not yet support arbitrary parentheses, so this cannot
|
||||
|
15
mobile/android/base/resources/drawable-v21/logo.xml
Normal file
15
mobile/android/base/resources/drawable-v21/logo.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?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/. -->
|
||||
|
||||
<!-- The action bar scales the application icon to be too large (bug 1132751)
|
||||
so add some padding to prevent it from scaling so much. -->
|
||||
<inset
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:drawable="@drawable/icon"
|
||||
android:insetTop="6dp"
|
||||
android:insetBottom="6dp"
|
||||
android:insetLeft="6dp"
|
||||
android:insetRight="6dp"
|
||||
/>
|
9
mobile/android/base/resources/drawable/logo.xml
Normal file
9
mobile/android/base/resources/drawable/logo.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?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/. -->
|
||||
|
||||
<!-- Overidden. -->
|
||||
<bitmap
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/icon"/>
|
@ -48,7 +48,7 @@
|
||||
|
||||
<!-- GeckoPreferences ActionBar -->
|
||||
<style name="ActionBar.GeckoPreferences">
|
||||
<item name="android:displayOptions">showHome|homeAsUp|showTitle</item>
|
||||
<item name="android:displayOptions">showHome|homeAsUp|showTitle|useLogo</item>
|
||||
</style>
|
||||
|
||||
<!-- TabsLayout ActionBar -->
|
||||
|
Loading…
Reference in New Issue
Block a user