Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Commit

Permalink
Calendar weekend highlight (#1526)
Browse files Browse the repository at this point in the history
* Added weekend-color

* Changed the weekends background-color

Co-authored-by: ge78fug <[email protected]>
  • Loading branch information
Marius1501 and ge78fug authored Nov 7, 2022
1 parent cb3d0b5 commit 9d075dd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/src/main/res/layout/fragment_calendar.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
android:layout_height="match_parent"
app:columnGap="1dp"
app:dayBackgroundColor="@color/default_window_background"
app:showDistinctWeekendColor="true"
app:showDistinctPastFutureColor="true"
app:pastBackgroundColor="@color/default_window_background"
app:futureBackgroundColor="@color/default_window_background"
app:futureWeekendBackgroundColor="@color/calendar_weekend_color"
app:pastWeekendBackgroundColor="@color/calendar_weekend_color"
app:eventCornerRadius="4dp"
app:eventMarginVertical="2dp"
app:eventTextColor="@android:color/white"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

<color name="default_window_background">@android:color/black</color>
<color name="secondary_window_background">@android:color/black</color>
<color name="calendar_weekend_color">#072140</color>

<color name="chat_incoming">#151515</color>
<color name="chat_outgoing">@color/tum_900</color>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@
<color name="event_other">#5598D3</color>
<color name="location_color">#00A7DE</color>
<color name="calendar_color">#0066CC</color>
<color name="calendar_weekend_color">#F0F5FA</color>

<!--Custom calendar colors-->
<color name="calendar_red">#F44336</color>
Expand Down

0 comments on commit 9d075dd

Please sign in to comment.