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.
This commit is contained in:
@@ -79,6 +79,9 @@
|
|||||||
<attr name="textColorPrimaryInverseNoDisable" format="reference|color" />
|
<attr name="textColorPrimaryInverseNoDisable" format="reference|color" />
|
||||||
<!-- Dim inverse text color. This does not differentiate the disabled state. -->
|
<!-- Dim inverse text color. This does not differentiate the disabled state. -->
|
||||||
<attr name="textColorSecondaryInverseNoDisable" format="reference|color" />
|
<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. -->
|
<!-- Text color, typeface, size, and style for "large" text. Defaults to primary text color. -->
|
||||||
<attr name="textAppearanceLarge" format="reference" />
|
<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 -->
|
<!-- Text color, typeface, size, and style for system search result subtitle. Defaults to primary inverse text color. @hide -->
|
||||||
<attr name="textAppearanceSearchResultSubtitle" format="reference" />
|
<attr name="textAppearanceSearchResultSubtitle" format="reference" />
|
||||||
|
|
||||||
|
|
||||||
<!-- Text color, typeface, size, and style for the text inside of a button. -->
|
<!-- Text color, typeface, size, and style for the text inside of a button. -->
|
||||||
<attr name="textAppearanceButton" format="reference" />
|
<attr name="textAppearanceButton" format="reference" />
|
||||||
|
|
||||||
@@ -152,8 +156,8 @@
|
|||||||
<!-- The preferred list item height -->
|
<!-- The preferred list item height -->
|
||||||
<attr name="listPreferredItemHeight" format="dimension" />
|
<attr name="listPreferredItemHeight" format="dimension" />
|
||||||
<!-- The drawable for the list divider -->
|
<!-- The drawable for the list divider -->
|
||||||
<!-- The list item height for search results. @hide -->
|
<!-- The list item height for search results. @hide -->
|
||||||
<attr name="searchResultListItemHeight" format="dimension" />
|
<attr name="searchResultListItemHeight" format="dimension" />
|
||||||
<attr name="listDivider" format="reference" />
|
<attr name="listDivider" format="reference" />
|
||||||
<!-- TextView style for list separators. -->
|
<!-- TextView style for list separators. -->
|
||||||
<attr name="listSeparatorTextViewStyle" format="reference" />
|
<attr name="listSeparatorTextViewStyle" format="reference" />
|
||||||
|
|||||||
@@ -73,5 +73,8 @@
|
|||||||
<color name="perms_normal_grp_color">#eeeeee</color>
|
<color name="perms_normal_grp_color">#eeeeee</color>
|
||||||
<color name="perms_normal_perm_color">#c0c0c0</color>
|
<color name="perms_normal_perm_color">#c0c0c0</color>
|
||||||
|
|
||||||
|
<!-- For search-related UIs -->
|
||||||
|
<color name="search_url_text">#7fa87f</color>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
||||||
|
|||||||
@@ -50,6 +50,7 @@
|
|||||||
<item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_light_nodisable</item>
|
<item name="textColorSecondaryInverseNoDisable">@android:color/secondary_text_light_nodisable</item>
|
||||||
<item name="textColorHint">@android:color/hint_foreground_dark</item>
|
<item name="textColorHint">@android:color/hint_foreground_dark</item>
|
||||||
<item name="textColorHintInverse">@android:color/hint_foreground_light</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="textAppearanceLarge">@android:style/TextAppearance.Large</item>
|
||||||
<item name="textAppearanceMedium">@android:style/TextAppearance.Medium</item>
|
<item name="textAppearanceMedium">@android:style/TextAppearance.Medium</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user