taking some styles from commons library

This commit is contained in:
tibbi 2017-01-10 19:39:11 +01:00
parent bbaf77581b
commit b02660a459
4 changed files with 2 additions and 22 deletions

View File

@ -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'

View File

@ -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
} }

View File

@ -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>

View File

@ -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>