mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 06:35:42 +00:00
Bug 950826 - Kitkat theme for super toasts. r=wesj
This commit is contained in:
parent
0096f3eaec
commit
91d024d2aa
BIN
mobile/android/base/resources/drawable-hdpi-v19/toast.9.png
Normal file
BIN
mobile/android/base/resources/drawable-hdpi-v19/toast.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 717 B |
20
mobile/android/base/resources/drawable-v19/toast_button.xml
Normal file
20
mobile/android/base/resources/drawable-v19/toast_button.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<!--
|
||||
Copyright 2012 Roman Nurik
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:drawable="@drawable/toast_button_pressed" android:state_pressed="true"/>
|
||||
<item android:drawable="@drawable/toast_button_pressed" android:state_focused="true"/>
|
||||
<item android:drawable="@android:color/transparent"/>
|
||||
</selector>
|
BIN
mobile/android/base/resources/drawable-xhdpi-v19/toast.9.png
Normal file
BIN
mobile/android/base/resources/drawable-xhdpi-v19/toast.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
BIN
mobile/android/base/resources/drawable-xhdpi-v19/toast_button_pressed.9.png
Executable file
BIN
mobile/android/base/resources/drawable-xhdpi-v19/toast_button_pressed.9.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 808 B |
BIN
mobile/android/base/resources/drawable-xxhdpi-v19/toast.9.png
Normal file
BIN
mobile/android/base/resources/drawable-xxhdpi-v19/toast.9.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 1016 B |
36
mobile/android/base/resources/values-v19/styles.xml
Normal file
36
mobile/android/base/resources/values-v19/styles.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<?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/. -->
|
||||
|
||||
<resources xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<style name="ToastMessage">
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:fontFamily">sans-serif-condensed</item>
|
||||
<item name="android:textColor">#ffffff</item>
|
||||
<item name="android:shadowColor">#BB000000</item>
|
||||
<item name="android:shadowRadius">2.75</item>
|
||||
<item name="android:layout_width">0dp</item>
|
||||
<item name="android:layout_weight">1</item>
|
||||
<item name="android:layout_height">wrap_content</item>
|
||||
<item name="android:layout_gravity">center_vertical</item>
|
||||
<item name="android:paddingLeft">@dimen/toast_button_padding</item>
|
||||
<item name="android:layout_marginLeft">8dp</item>
|
||||
</style>
|
||||
|
||||
<style name="ToastButton">
|
||||
<item name="android:background">@drawable/toast_button</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
<item name="android:fontFamily">sans-serif-condensed</item>
|
||||
<item name="android:textColor">#ffffff</item>
|
||||
<item name="android:shadowColor">#BB000000</item>
|
||||
<item name="android:shadowRadius">2.75</item>
|
||||
<item name="android:layout_width">wrap_content</item>
|
||||
<item name="android:layout_height">match_parent</item>
|
||||
<item name="android:paddingLeft">16dp</item>
|
||||
<item name="android:maxWidth">160dp</item>
|
||||
<item name="android:layout_gravity">center_vertical</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user