android-times-square icon indicating copy to clipboard operation
android-times-square copied to clipboard

Title for month and year doesn't show in dark theme

Open vahan8 opened this issue 5 years ago • 2 comments

Screenshot_20190419-110709

vahan8 avatar Apr 19 '19 07:04 vahan8

@edenman Is this resolved? Can I work on this?

MonikaJethani avatar May 14 '19 14:05 MonikaJethani

To solve this issue you may copy the styles definition of the CalendarTitle to your styles.xml in your resources folder and add the definition of the text-color.

The original title style can be found here: https://github.com/square/android-times-square/blob/master/library/src/main/res/values/styles.xml Copy it into your styles.xml.

<style name="CalendarTitle">
    <item name="android:textSize">@dimen/calendar_text_medium</item>
    <item name="android:textStyle">bold</item>
    <item name="android:gravity">center_horizontal</item>
    <item name="android:paddingBottom">@dimen/calendar_month_title_bottommargin</item>
    <item name="android:paddingTop">@dimen/calendar_month_topmargin</item>
        
     <!-- add this line for the title color -->
     <item name="android:textColor">@color/calendar_text_active</item>

  </style>

Add the last line to set the text-color. In this case this is done by referencing one of calendars color - definiitons, but you may use any defined color here.

herberlin avatar Apr 28 '20 17:04 herberlin