updating some colors for the white theme
This commit is contained in:
parent
6e10df81d0
commit
26710c572f
|
@ -59,7 +59,7 @@ dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.33.31'
|
implementation 'com.simplemobiletools:commons:5.33.31'
|
||||||
implementation 'org.greenrobot:eventbus:3.2.0'
|
implementation 'org.greenrobot:eventbus:3.2.0'
|
||||||
implementation 'com.klinkerapps:android-smsmms:5.2.6'
|
implementation 'com.klinkerapps:android-smsmms:5.2.6'
|
||||||
implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a'
|
implementation 'com.github.tibbi:IndicatorFastScroll:c3de1d040a'
|
||||||
implementation "me.leolin:ShortcutBadger:1.1.22"
|
implementation "me.leolin:ShortcutBadger:1.1.22"
|
||||||
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
|
||||||
|
|
||||||
|
|
|
@ -89,9 +89,12 @@ class NewConversationActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val adjustedPrimaryColor = getAdjustedPrimaryColor()
|
||||||
contacts_letter_fastscroller.textColor = config.textColor.getColorStateList()
|
contacts_letter_fastscroller.textColor = config.textColor.getColorStateList()
|
||||||
|
contacts_letter_fastscroller.pressedTextColor = adjustedPrimaryColor
|
||||||
contacts_letter_fastscroller_thumb.setupWithFastScroller(contacts_letter_fastscroller)
|
contacts_letter_fastscroller_thumb.setupWithFastScroller(contacts_letter_fastscroller)
|
||||||
contacts_letter_fastscroller_thumb.textColor = config.primaryColor.getContrastColor()
|
contacts_letter_fastscroller_thumb?.textColor = adjustedPrimaryColor.getContrastColor()
|
||||||
|
contacts_letter_fastscroller_thumb?.thumbColor = adjustedPrimaryColor.getColorStateList()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun isThirdPartyIntent(): Boolean {
|
private fun isThirdPartyIntent(): Boolean {
|
||||||
|
|
|
@ -709,7 +709,7 @@ fun Context.showMessageNotification(address: String, body: String, threadId: Lon
|
||||||
val builder = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL)
|
val builder = NotificationCompat.Builder(this, NOTIFICATION_CHANNEL)
|
||||||
.setContentTitle(sender)
|
.setContentTitle(sender)
|
||||||
.setContentText(body)
|
.setContentText(body)
|
||||||
.setColor(config.primaryColor)
|
.setColor(getAdjustedPrimaryColor())
|
||||||
.setSmallIcon(R.drawable.ic_messenger)
|
.setSmallIcon(R.drawable.ic_messenger)
|
||||||
.setLargeIcon(largeIcon)
|
.setLargeIcon(largeIcon)
|
||||||
.setStyle(NotificationCompat.BigTextStyle().setSummaryText(summaryText).bigText(body))
|
.setStyle(NotificationCompat.BigTextStyle().setSummaryText(summaryText).bigText(body))
|
||||||
|
|
|
@ -16,6 +16,7 @@ import android.os.Looper
|
||||||
import android.provider.Telephony
|
import android.provider.Telephony
|
||||||
import androidx.core.app.NotificationCompat
|
import androidx.core.app.NotificationCompat
|
||||||
import com.klinker.android.send_message.SentReceiver
|
import com.klinker.android.send_message.SentReceiver
|
||||||
|
import com.simplemobiletools.commons.extensions.getAdjustedPrimaryColor
|
||||||
import com.simplemobiletools.commons.extensions.getMyContactsCursor
|
import com.simplemobiletools.commons.extensions.getMyContactsCursor
|
||||||
import com.simplemobiletools.commons.helpers.SimpleContactsHelper
|
import com.simplemobiletools.commons.helpers.SimpleContactsHelper
|
||||||
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
import com.simplemobiletools.commons.helpers.ensureBackgroundThread
|
||||||
|
@ -92,7 +93,7 @@ class SmsStatusSentReceiver : SentReceiver() {
|
||||||
val builder = NotificationCompat.Builder(context, NOTIFICATION_CHANNEL)
|
val builder = NotificationCompat.Builder(context, NOTIFICATION_CHANNEL)
|
||||||
.setContentTitle(context.getString(R.string.message_not_sent_short))
|
.setContentTitle(context.getString(R.string.message_not_sent_short))
|
||||||
.setContentText(summaryText)
|
.setContentText(summaryText)
|
||||||
.setColor(context.config.primaryColor)
|
.setColor(context.getAdjustedPrimaryColor())
|
||||||
.setSmallIcon(R.drawable.ic_messenger)
|
.setSmallIcon(R.drawable.ic_messenger)
|
||||||
.setLargeIcon(largeIcon)
|
.setLargeIcon(largeIcon)
|
||||||
.setStyle(NotificationCompat.BigTextStyle().bigText(summaryText))
|
.setStyle(NotificationCompat.BigTextStyle().bigText(summaryText))
|
||||||
|
|
Loading…
Reference in New Issue