Skip to content

Commit

Permalink
Change the background of the month heading(on tablets) according to t…
Browse files Browse the repository at this point in the history
…he selected theme
  • Loading branch information
Gitsaibot authored and jspricke committed Apr 2, 2019
1 parent db4984c commit aab6ef4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion res/layout-sw600dp/full_month_header.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/month_other_bgcolor">
android:background="?attr/month_other_bgcolor">

<TextView android:id="@+id/wk_label"
android:layout_width="24dip"
Expand Down
1 change: 1 addition & 0 deletions res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@
<attr name="minus_button" format="reference"/>
<attr name="ic_menu_email" format="reference"/>
<attr name="calendar_future_bg_color" format="color"/>
<attr name="month_other_bgcolor" format="color"/>
</declare-styleable>
</resources>
2 changes: 1 addition & 1 deletion res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
<color name="month_event_extra_other_color_black">#000000</color>
<color name="month_today_bgcolor_black">#6efffffa</color>
<color name="month_focus_month_bgcolor_black">#212121</color>
<color name="month_other_bgcolor_black">#000000</color>
<color name="month_other_bgcolor_black">#ff111111</color>
<color name="today_highlight_color_black">#0033b5e5</color>
<color name="day_clicked_background_color_black">#FF33B5E5</color>
<color name="month_day_names_color_black">#ffffff</color>
Expand Down
1 change: 1 addition & 0 deletions res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
<item name="minus_button">@drawable/ic_menu_remove_field_holo_light</item>
<item name="ic_menu_email">@drawable/ic_menu_email_holo_light</item>
<item name="calendar_future_bg_color">@color/calendar_future_bg_color</item>
<item name="month_other_bgcolor">@color/month_other_bgcolor</item>
</style>

<style name="Base.CalendarAppThemeWithActionBar" parent="Theme.AppCompat.Light.DarkActionBar">
Expand Down
2 changes: 2 additions & 0 deletions res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<item name="minus_button">@drawable/ic_menu_remove_field_holo_light_dark</item>
<item name="ic_menu_email">@drawable/event_info_mail_button_dark</item>
<item name="calendar_future_bg_color">@color/calendar_future_bg_color_dark</item>
<item name="month_other_bgcolor">@color/month_other_bgcolor_dark</item>
</style>

<style name="CalendarAppThemeBlack" parent="Theme.AppCompat.NoActionBar">
Expand Down Expand Up @@ -69,6 +70,7 @@
<item name="app_bar_color">@color/app_bar_black</item>
<item name="minus_button">@drawable/ic_menu_remove_field_holo_light_dark</item>
<item name="calendar_future_bg_color">@color/calendar_future_bg_color_black</item>
<item name="month_other_bgcolor">@color/month_other_bgcolor_black</item>
</style>


Expand Down

0 comments on commit aab6ef4

Please sign in to comment.