mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
change the default holiday event color
This commit is contained in:
@ -280,7 +280,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||||||
val holidays = getString(R.string.holidays)
|
val holidays = getString(R.string.holidays)
|
||||||
var eventTypeId = dbHelper.getEventTypeIdWithTitle(holidays)
|
var eventTypeId = dbHelper.getEventTypeIdWithTitle(holidays)
|
||||||
if (eventTypeId == -1) {
|
if (eventTypeId == -1) {
|
||||||
val eventType = EventType(0, holidays, config.primaryColor)
|
val eventType = EventType(0, holidays, resources.getColor(R.color.default_holidays_color))
|
||||||
eventTypeId = dbHelper.insertEventType(eventType)
|
eventTypeId = dbHelper.insertEventType(eventType)
|
||||||
}
|
}
|
||||||
val result = IcsImporter().importEvents(this, it as String, eventTypeId)
|
val result = IcsImporter().importEvents(this, it as String, eventTypeId)
|
||||||
|
@ -4,4 +4,5 @@
|
|||||||
<color name="darker_divider">#66808080</color>
|
<color name="darker_divider">#66808080</color>
|
||||||
<color name="red_text">#FFF62F2F</color>
|
<color name="red_text">#FFF62F2F</color>
|
||||||
<color name="default_birthdays_color">#FF303DF6</color>
|
<color name="default_birthdays_color">#FF303DF6</color>
|
||||||
|
<color name="default_holidays_color">#FF64DD17</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
Reference in New Issue
Block a user