diff options
author | Mike LeBeau <mlebeau@android.com> | 2009-05-14 14:59:53 -0700 |
---|---|---|
committer | Mike LeBeau <mlebeau@android.com> | 2009-05-15 10:31:16 -0700 |
commit | a38b427a7a6d2658dc3e3083bc6c263a3d4d7af3 (patch) | |
tree | e3a94b73fb46648d7a9d4f68e2e4e67fcfd74457 /core | |
parent | 5bd644caf73e76750feef1a82b8817d32f5367fc (diff) | |
download | frameworks_base-a38b427a7a6d2658dc3e3083bc6c263a3d4d7af3.zip frameworks_base-a38b427a7a6d2658dc3e3083bc6c263a3d4d7af3.tar.gz frameworks_base-a38b427a7a6d2658dc3e3083bc6c263a3d4d7af3.tar.bz2 |
Add a search url text color attribute and theme. For search suggestions
in global search (and in related apps using system search like the browser),
we'd like to have a consistent green color used for urls. This makes it
available system-wide.
Diffstat (limited to 'core')
-rw-r--r-- | core/res/res/values/attrs.xml | 8 | ||||
-rw-r--r-- | core/res/res/values/colors.xml | 3 | ||||
-rw-r--r-- | core/res/res/values/themes.xml | 1 |
3 files changed, 10 insertions, 2 deletions
diff --git a/core/res/res/values/attrs.xml b/core/res/res/values/attrs.xml index 43eec1b..b92beec 100644 --- a/core/res/res/values/attrs.xml +++ b/core/res/res/values/attrs.xml @@ -79,6 +79,9 @@ <attr name="textColorPrimaryInverseNoDisable" format="reference|color" /> <!-- Dim inverse text color. This does not differentiate the disabled state. --> <attr name="textColorSecondaryInverseNoDisable" format="reference|color" /> + + <!-- Text color for urls in search suggestions, used by things like global search and the browser. @hide --> + <attr name="textColorSearchUrl" format="reference|color" /> <!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. --> <attr name="textAppearanceLarge" format="reference" /> @@ -99,6 +102,7 @@ <!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. @hide --> <attr name="textAppearanceSearchResultSubtitle" format="reference" /> + <!-- Text color, typeface, size, and style for the text inside of a button. --> <attr name="textAppearanceButton" format="reference" /> @@ -152,8 +156,8 @@ <!-- The preferred list item height --> <attr name="listPreferredItemHeight" format="dimension" /> <!-- The drawable for the list divider --> - <!-- The list item height for search results. @hide --> - <attr name="searchResultListItemHeight" format="dimension" /> + <!-- The list item height for search results. @hide --> + <attr name="searchResultListItemHeight" format="dimension" /> <attr name="listDivider" format="reference" /> <!-- TextView style for list separators. --> <attr name="listSeparatorTextViewStyle" format="reference" /> diff --git a/core/res/res/values/colors.xml b/core/res/res/values/colors.xml index 8150067..96369f4 100644 --- a/core/res/res/values/colors.xml +++ b/core/res/res/values/colors.xml @@ -73,5 +73,8 @@ <color name="perms_normal_grp_color">#eeeeee</color> <color name="perms_normal_perm_color">#c0c0c0</color> + <!-- For search-related UIs --> + <color name="search_url_text">#7fa87f</color> + </resources> diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 9567523..b168fb8 100644 --- a/core/res/res/values/themes.xml +++ b/core/res/res/values/themes.xml @@ -50,6 +50,7 @@ <item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_light_nodisable</item> <item name="textColorHint">@android:color/hint_foreground_dark</item> <item name="textColorHintInverse">@android:color/hint_foreground_light</item> + <item name="textColorSearchUrl">@android:color/search_url_text</item> <item name="textAppearanceLarge">@android:style/TextAppearance.Large</item> <item name="textAppearanceMedium">@android:style/TextAppearance.Medium</item> |