Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3f9b24e5 authored by Adam Powell's avatar Adam Powell
Browse files

Fix some Holo text color bugs

Fix Switch text color in Holo Light to contrast better - always light
text against the dark switch thumb.

Fix a bug where TextAppearance.Holo.Small.Inverse was using
?textColorPrimaryInverse instead of ?textColorSecondaryInverse.
("Small" TextAppearance always uses the secondary color.)

Bug 6967184

Change-Id: I039bf089d4c7aa257ec4f600df6c0d2066164194
parent 9252dbd3
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -1259,7 +1259,7 @@ please see styles_device_defaults.xml.
    </style>

    <style name="TextAppearance.Holo.Small.Inverse">
        <item name="android:textColor">?textColorPrimaryInverse</item>
        <item name="android:textColor">?textColorSecondaryInverse</item>
        <item name="android:textColorHint">?textColorHintInverse</item>
        <item name="android:textColorHighlight">?textColorHighlightInverse</item>
        <item name="android:textColorLink">?textColorLinkInverse</item>
@@ -1392,6 +1392,13 @@ please see styles_device_defaults.xml.
    </style>

    <style name="TextAppearance.Holo.Widget.Switch" parent="TextAppearance.Holo.Small">
        <!-- Switch thumb asset presents a dark background. -->
        <item name="android:textColor">@android:color/secondary_text_holo_dark</item>
    </style>

    <style name="TextAppearance.Holo.Light.Widget.Switch" parent="TextAppearance.Holo.Small">
        <!-- Switch thumb asset presents a dark background. -->
        <item name="android:textColor">@android:color/primary_text_holo_dark</item>
    </style>

    <style name="TextAppearance.Holo.WindowTitle">
@@ -2317,7 +2324,7 @@ please see styles_device_defaults.xml.
    <style name="Widget.Holo.Light.CompoundButton.Switch" parent="Widget.CompoundButton.Switch">
        <item name="android:track">@android:drawable/switch_track_holo_light</item>
        <item name="android:thumb">@android:drawable/switch_inner_holo_light</item>
        <item name="android:switchTextAppearance">@android:style/TextAppearance.Holo.Widget.Switch</item>
        <item name="android:switchTextAppearance">@android:style/TextAppearance.Holo.Light.Widget.Switch</item>
        <item name="android:textOn">@android:string/capital_on</item>
        <item name="android:textOff">@android:string/capital_off</item>
        <item name="android:thumbTextPadding">12dip</item>