mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-08 07:27:53 +01:00
taking some styles from commons library
This commit is contained in:
parent
bbaf77581b
commit
b02660a459
@ -32,7 +32,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile 'com.simplemobiletools:commons:2.3.5'
|
||||
compile 'com.simplemobiletools:commons:2.3.7'
|
||||
compile 'joda-time:joda-time:2.9.1'
|
||||
compile 'com.facebook.stetho:stetho:1.4.1'
|
||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||
|
@ -95,5 +95,5 @@ private fun getNotificationIntent(context: Context, eventId: Int): PendingIntent
|
||||
}
|
||||
|
||||
fun Context.getAppropriateTheme(): Int {
|
||||
return if (Config.newInstance(this).backgroundColor.getContrastColor() == Color.WHITE) R.style.DialogTheme_Dark else R.style.DialogTheme
|
||||
return if (Config.newInstance(this).backgroundColor.getContrastColor() == Color.WHITE) R.style.MyDialogTheme_Dark else R.style.MyDialogTheme
|
||||
}
|
||||
|
@ -8,13 +8,4 @@
|
||||
<item name="android:background">?android:attr/selectableItemBackground</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogTheme" parent="Theme.AppCompat.Light.Dialog">
|
||||
<item name="colorAccent">@color/color_primary</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogTheme.Dark" parent="Theme.AppCompat.Dialog">
|
||||
<item name="colorAccent">@color/color_primary</item>
|
||||
<item name="android:windowBackground">@color/default_background_color_dark_theme</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
@ -15,15 +15,4 @@
|
||||
<style name="MonthStyle">
|
||||
<item name="android:background">@drawable/transparent_button</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogTheme" parent="Theme.AppCompat.Light.Dialog">
|
||||
<item name="colorAccent">@color/color_primary</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
</style>
|
||||
|
||||
<style name="DialogTheme.Dark" parent="Theme.AppCompat.Dialog">
|
||||
<item name="colorAccent">@color/color_primary</item>
|
||||
<item name="android:windowBackground">@android:color/transparent</item>
|
||||
<item name="android:colorBackground">@color/default_background_color_dark_theme</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user