Bug 1010741 - Change text appearance in toolbar (r=mcomella)

--HG--
rename : mobile/android/base/resources/values-v16/styles.xml => mobile/android/base/resources/values-large-v16/styles.xml
This commit is contained in:
Lucas Rocha 2014-08-15 18:23:16 +01:00
parent ce398ca5f7
commit bb8bc13498
6 changed files with 43 additions and 19 deletions

View File

@ -26,17 +26,11 @@
android:visibility="gone"/>
<org.mozilla.gecko.widget.ThemedTextView android:id="@+id/url_bar_title"
style="@style/UrlBar.Button"
style="@style/UrlBar.Title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:singleLine="true"
android:paddingRight="8dp"
android:textColor="@color/url_bar_title"
android:textColorHint="@color/url_bar_title_hint"
android:gravity="center_vertical|left"
android:hint="@string/url_bar_default_text"
android:layout_gravity="center_vertical"
gecko:autoUpdateTheme="false"/>
<org.mozilla.gecko.toolbar.PageActionLayout android:id="@+id/page_action_layout"

View File

@ -8,23 +8,13 @@
<org.mozilla.gecko.toolbar.ToolbarEditText
android:id="@+id/url_edit_text"
style="@style/UrlBar.Button"
style="@style/UrlBar.Title"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1.0"
android:hint="@string/url_bar_default_text"
android:textColor="@color/url_bar_title"
android:textColorHint="@color/url_bar_title_hint"
android:textColorHighlight="@color/url_bar_text_highlight"
android:textSelectHandle="@drawable/handle_middle"
android:textSelectHandleLeft="@drawable/handle_start"
android:textSelectHandleRight="@drawable/handle_end"
android:textCursorDrawable="@null"
android:inputType="textUri|textNoSuggestions"
android:imeOptions="actionGo|flagNoExtractUi|flagNoFullscreen"
android:selectAllOnFocus="true"
android:singleLine="true"
android:gravity="center_vertical|left"
gecko:autoUpdateTheme="false"/>
</merge>

View File

@ -125,4 +125,8 @@
<item name="android:layout_gravity">center</item>
</style>
<style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Medium">
<item name="android:textSize">16sp</item>
</style>
</resources>

View File

@ -0,0 +1,13 @@
<?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="TextAppearance.UrlBar.Title" parent="TextAppearance.Small">
<item name="android:textSize">16sp</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
</resources>

View File

@ -17,4 +17,9 @@
<item name="android:fontFamily">sans-serif-light</item>
</style>
<style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Small">
<item name="android:textSize">15sp</item>
<item name="android:fontFamily">sans-serif-light</item>
</style>
</resources>

View File

@ -388,6 +388,10 @@
<item name="android:textColorLink">@color/doorhanger_link</item>
</style>
<style name="TextAppearance.UrlBar.Title" parent="TextAppearance.Small">
<item name="android:textSize">15sp</item>
</style>
<!-- BrowserToolbar -->
<style name="BrowserToolbar">
<item name="android:layout_width">match_parent</item>
@ -412,10 +416,24 @@
<!-- URL bar - Button -->
<style name="UrlBar.Button">
<item name="android:layout_height">match_parent</item>
<item name="android:textSize">16sp</item>
<item name="android:background">@android:color/transparent</item>
</style>
<!-- URL bar - Button -->
<style name="UrlBar.Title" parent="UrlBar.Button">
<item name="android:textAppearance">@style/TextAppearance.UrlBar.Title</item>
<item name="android:textColor">@color/url_bar_title</item>
<item name="android:textColorHint">@color/url_bar_title_hint</item>
<item name="android:textColorHighlight">@color/url_bar_text_highlight</item>
<item name="android:textSelectHandle">@drawable/handle_middle</item>
<item name="android:textSelectHandleLeft">@drawable/handle_start</item>
<item name="android:textSelectHandleRight">@drawable/handle_end</item>
<item name="android:textCursorDrawable">@null</item>
<item name="android:singleLine">true</item>
<item name="android:gravity">center_vertical|left</item>
<item name="android:hint">@string/url_bar_default_text</item>
</style>
<!-- URL bar - Image Button -->
<style name="UrlBar.ImageButton" parent="UrlBar.Button">
<item name="android:scaleType">center</item>