handle updating text colors at the monthly/daily view

This commit is contained in:
tibbi 2021-02-22 23:25:20 +01:00
parent a6ccc02de9
commit 958ddf0f37
1 changed files with 5 additions and 2 deletions

View File

@ -29,7 +29,6 @@ import kotlinx.android.synthetic.main.fragment_month_day.view.*
import org.joda.time.DateTime import org.joda.time.DateTime
class MonthDayFragment : Fragment(), MonthlyCalendar { class MonthDayFragment : Fragment(), MonthlyCalendar {
private var mTextColor = 0
private var mSundayFirst = false private var mSundayFirst = false
private var mShowWeekNumbers = false private var mShowWeekNumbers = false
private var mDayCode = "" private var mDayCode = ""
@ -158,7 +157,11 @@ class MonthDayFragment : Fragment(), MonthlyCalendar {
} }
private fun setupButtons() { private fun setupButtons() {
mTextColor = mConfig.textColor val textColor = mConfig.textColor
mHolder.apply {
month_day_selected_day_label.setTextColor(textColor)
month_day_no_events_placeholder.setTextColor(textColor)
}
} }
fun printCurrentView() {} fun printCurrentView() {}