taking some styles from commons library
This commit is contained in:
parent
bbaf77581b
commit
b02660a459
|
@ -32,7 +32,7 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.simplemobiletools:commons:2.3.5'
|
compile 'com.simplemobiletools:commons:2.3.7'
|
||||||
compile 'joda-time:joda-time:2.9.1'
|
compile 'joda-time:joda-time:2.9.1'
|
||||||
compile 'com.facebook.stetho:stetho:1.4.1'
|
compile 'com.facebook.stetho:stetho:1.4.1'
|
||||||
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
compile 'com.bignerdranch.android:recyclerview-multiselect:0.2'
|
||||||
|
|
|
@ -95,5 +95,5 @@ private fun getNotificationIntent(context: Context, eventId: Int): PendingIntent
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Context.getAppropriateTheme(): Int {
|
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>
|
<item name="android:background">?android:attr/selectableItemBackground</item>
|
||||||
</style>
|
</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>
|
</resources>
|
||||||
|
|
|
@ -15,15 +15,4 @@
|
||||||
<style name="MonthStyle">
|
<style name="MonthStyle">
|
||||||
<item name="android:background">@drawable/transparent_button</item>
|
<item name="android:background">@drawable/transparent_button</item>
|
||||||
</style>
|
</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>
|
</resources>
|
||||||
|
|
Loading…
Reference in New Issue