Bug 910882: Change search suggestions background to a lighter blue. [r=margaret]
authorSriram Ramasubramanian <sriram@mozilla.com>
Tue, 24 Sep 2013 11:54:16 -0700
changeset 148899 bf0a94794cc554c692faa29513354bef44a20250
parent 148898 a6e1c75e5aa4d2f8eb4cedf700162676a2dff06b
child 148900 7571fd150b38a8029efe7fed1ddd6b779fe84e1d
push id25362
push userryanvm@gmail.com
push dateFri, 27 Sep 2013 01:36:45 +0000
treeherdermozilla-central@e4cd2242cc7d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmargaret
bugs910882
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 910882: Change search suggestions background to a lighter blue. [r=margaret]
mobile/android/base/resources/layout/home_suggestion_prompt.xml
mobile/android/base/resources/values/styles.xml
--- a/mobile/android/base/resources/layout/home_suggestion_prompt.xml
+++ b/mobile/android/base/resources/layout/home_suggestion_prompt.xml
@@ -1,53 +1,52 @@
 <?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/. -->
 
 <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
-             android:background="@drawable/url_bar_bg">
+             android:background="@color/background_light">
 
     <LinearLayout android:id="@+id/prompt"
                   android:focusable="true"
                   android:layout_width="match_parent"
                   android:layout_height="wrap_content"
                   android:orientation="horizontal"
                   android:minHeight="@dimen/search_row_height"
                   android:gravity="center_vertical"
                   android:padding="10dip">
 
         <TextView android:id="@+id/suggestions_prompt_title"
                   android:layout_height="wrap_content"
                   android:layout_width="0dp"
-                  android:textColor="@color/url_bar_title"
                   android:layout_marginLeft="6dip"
-                  android:textSize="14sp"
-                  android:layout_weight="1" />
+                  android:layout_weight="1"
+                  android:textAppearance="@style/TextAppearance.Widget.SuggestionsPrompt"/>
 
         <TextView android:id="@+id/suggestions_prompt_yes"
                   android:layout_height="wrap_content"
                   android:layout_width="wrap_content"
-                  android:textSize="14sp"
                   android:layout_marginLeft="15dip"
+                  android:textAppearance="@style/TextAppearance.Widget.SuggestionsPrompt"
                   android:background="@drawable/suggestion_selector"
                   android:paddingLeft="15dp"
                   android:paddingRight="15dp"
                   android:paddingTop="7dp"
                   android:paddingBottom="7dp"
                   android:focusable="true"
                   android:text="@string/button_yes" />
 
         <TextView android:id="@+id/suggestions_prompt_no"
                   android:layout_height="wrap_content"
                   android:layout_width="wrap_content"
-                  android:textSize="14sp"
                   android:layout_marginLeft="6dip"
+                  android:textAppearance="@style/TextAppearance.Widget.SuggestionsPrompt"
                   android:background="@drawable/suggestion_selector"
                   android:nextFocusRight="@+id/suggestions_prompt_no"
                   android:paddingLeft="15dp"
                   android:paddingRight="15dp"
                   android:paddingTop="7dp"
                   android:paddingBottom="7dp"
                   android:focusable="true"
                   android:text="@string/button_no" />
--- a/mobile/android/base/resources/values/styles.xml
+++ b/mobile/android/base/resources/values/styles.xml
@@ -307,16 +307,20 @@
     <style name="TextAppearance.Widget.TwoLinePageRow" />
 
     <style name="TextAppearance.Widget.TwoLinePageRow.Title" parent="TextAppearance.Medium"/>
 
     <style name="TextAppearance.Widget.TwoLinePageRow.Url" parent="TextAppearance.Micro">
         <item name="android:textColor">?android:attr/textColorSecondary</item>
     </style>
 
+    <style name="TextAppearance.Widget.SuggestionsPrompt" parent="TextAppearance.Small">
+        <item name="android:textColor">@color/url_bar_title</item>
+    </style>
+
     <style name="TextAppearance.Widget.Home" />
 
     <style name="TextAppearance.Widget.Home.Header" parent="TextAppearance.Small">
         <item name="android:textColor">?android:attr/textColorPrimary</item>
     </style>
 
     <style name="TextAppearance.Widget.Home.PageTitle" parent="TextAppearance.Medium" />