Skip to content

Commit

Permalink
ui: fix text colors of color-coding textview in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
abanoubha committed May 31, 2024
1 parent adfe94a commit f32540b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_bulb.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="29.333334dp" android:viewportHeight="512" android:viewportWidth="384" android:width="22dp">

<path android:fillColor="?attr/colorAccent" android:pathData="M297.2,248.9c14.4,-20.6 22.8,-45.7 22.8,-72.9 0,-70.7 -57.3,-128 -128,-128S64,105.3 64,176c0,27.2 8.4,52.3 22.8,72.9 3.7,5.3 8.1,11.3 12.8,17.7 12.9,17.7 28.3,38.9 39.8,59.8 10.4,19 15.7,38.8 18.3,57.5L109,383.9c-2.2,-12 -5.9,-23.7 -11.8,-34.5 -9.9,-18 -22.2,-34.9 -34.5,-51.8 -5.2,-7.1 -10.4,-14.2 -15.4,-21.4C27.6,247.9 16,213.3 16,176 16,78.8 94.8,0 192,0s176,78.8 176,176c0,37.3 -11.6,71.9 -31.4,100.3 -5,7.2 -10.2,14.3 -15.4,21.4 -12.3,16.8 -24.6,33.7 -34.5,51.8 -5.9,10.8 -9.6,22.5 -11.8,34.5h-48.5c2.6,-18.7 7.9,-38.6 18.3,-57.5 11.5,-20.9 26.9,-42.1 39.8,-59.8 4.7,-6.4 9,-12.4 12.7,-17.7zM192,128c-26.5,0 -48,21.5 -48,48 0,8.8 -7.2,16 -16,16s-16,-7.2 -16,-16c0,-44.2 35.8,-80 80,-80 8.8,0 16,7.2 16,16s-7.2,16 -16,16zM192,512c-44.2,0 -80,-35.8 -80,-80v-16h160v16c0,44.2 -35.8,80 -80,80z"/>
<path android:fillColor="?android:attr/textColorPrimary" android:pathData="M297.2,248.9c14.4,-20.6 22.8,-45.7 22.8,-72.9 0,-70.7 -57.3,-128 -128,-128S64,105.3 64,176c0,27.2 8.4,52.3 22.8,72.9 3.7,5.3 8.1,11.3 12.8,17.7 12.9,17.7 28.3,38.9 39.8,59.8 10.4,19 15.7,38.8 18.3,57.5L109,383.9c-2.2,-12 -5.9,-23.7 -11.8,-34.5 -9.9,-18 -22.2,-34.9 -34.5,-51.8 -5.2,-7.1 -10.4,-14.2 -15.4,-21.4C27.6,247.9 16,213.3 16,176 16,78.8 94.8,0 192,0s176,78.8 176,176c0,37.3 -11.6,71.9 -31.4,100.3 -5,7.2 -10.2,14.3 -15.4,21.4 -12.3,16.8 -24.6,33.7 -34.5,51.8 -5.9,10.8 -9.6,22.5 -11.8,34.5h-48.5c2.6,-18.7 7.9,-38.6 18.3,-57.5 11.5,-20.9 26.9,-42.1 39.8,-59.8 4.7,-6.4 9,-12.4 12.7,-17.7zM192,128c-26.5,0 -48,21.5 -48,48 0,8.8 -7.2,16 -16,16s-16,-7.2 -16,-16c0,-44.2 35.8,-80 80,-80 8.8,0 16,7.2 16,16s-7.2,16 -16,16zM192,512c-44.2,0 -80,-35.8 -80,-80v-16h160v16c0,44.2 -35.8,80 -80,80z"/>

</vector>
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,14 @@
android:paddingTop="30dp"
android:paddingRight="16dp"
android:paddingBottom="8dp"
android:textColor="?attr/colorAccent"
android:textColor="?android:attr/textColorPrimary"
app:drawableEndCompat="@drawable/ic_bulb" />

<TextView
android:id="@+id/colorCodeDetails"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="?android:attr/textColorHint"
android:text="@string/color_codes"
android:paddingLeft="16dp"
android:paddingTop="8dp"
Expand Down

0 comments on commit f32540b

Please sign in to comment.