mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-15 20:09:19 +00:00
Update: styles.xml reformatted
Improve: No Overscroll Animation Improve: Use new colorAccent Attr (styles.xml)
This commit is contained in:
@ -100,11 +100,11 @@ class ProductAdapter(private val callbacks: Callbacks, private val columns: Int)
|
||||
|
||||
private enum class SectionType(val titleResId: Int, val colorAttrResId: Int) {
|
||||
ANTI_FEATURES(R.string.anti_features, R.attr.colorError),
|
||||
CHANGES(R.string.changes, android.R.attr.colorAccent),
|
||||
LINKS(R.string.links, android.R.attr.colorAccent),
|
||||
DONATE(R.string.donate, android.R.attr.colorAccent),
|
||||
PERMISSIONS(R.string.permissions, android.R.attr.colorAccent),
|
||||
VERSIONS(R.string.versions, android.R.attr.colorAccent)
|
||||
CHANGES(R.string.changes, R.attr.colorAccent),
|
||||
LINKS(R.string.links, R.attr.colorAccent),
|
||||
DONATE(R.string.donate, R.attr.colorAccent),
|
||||
PERMISSIONS(R.string.permissions, R.attr.colorAccent),
|
||||
VERSIONS(R.string.versions, R.attr.colorAccent)
|
||||
}
|
||||
|
||||
internal enum class ExpandType {
|
||||
|
@ -209,7 +209,7 @@ class SettingsFragment : ScreenFragment() {
|
||||
val text = MaterialTextView(context)
|
||||
text.typeface = TypefaceExtra.medium
|
||||
text.setTextSizeScaled(14)
|
||||
text.setTextColor(text.context.getColorFromAttr(android.R.attr.colorAccent))
|
||||
text.setTextColor(text.context.getColorFromAttr(R.attr.colorAccent))
|
||||
text.text = title
|
||||
resources.sizeScaled(16).let { text.setPadding(it, it, it, 0) }
|
||||
addView(
|
||||
|
@ -216,10 +216,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
|
||||
.Builder(this, Common.NOTIFICATION_CHANNEL_DOWNLOADING)
|
||||
.setAutoCancel(true)
|
||||
.setSmallIcon(android.R.drawable.stat_sys_warning)
|
||||
.setColor(
|
||||
ContextThemeWrapper(this, R.style.Theme_Main_Light)
|
||||
.getColorFromAttr(android.R.attr.colorAccent).defaultColor
|
||||
)
|
||||
.setColor(getColorFromAttr(R.attr.colorAccent).defaultColor)
|
||||
.setContentIntent(
|
||||
PendingIntent.getBroadcast(
|
||||
this,
|
||||
@ -282,7 +279,7 @@ class DownloadService : ConnectionService<DownloadService.Binder>() {
|
||||
.Builder(this, Common.NOTIFICATION_CHANNEL_DOWNLOADING)
|
||||
.setAutoCancel(true)
|
||||
.setSmallIcon(android.R.drawable.stat_sys_download_done)
|
||||
.setColor(getColorFromAttr(android.R.attr.colorAccent).defaultColor)
|
||||
.setColor(getColorFromAttr(R.attr.colorAccent).defaultColor)
|
||||
.setContentIntent(installIntent(task))
|
||||
.setContentTitle(getString(R.string.downloaded_FORMAT, task.name))
|
||||
.setContentText(getString(R.string.tap_to_install_DESC))
|
||||
|
@ -170,7 +170,7 @@ class AppListAdapter(private val onClick: (ProductItem) -> Unit) :
|
||||
null
|
||||
).apply {
|
||||
color =
|
||||
holder.status.context.getColorFromAttr(android.R.attr.colorAccent)
|
||||
holder.status.context.getColorFromAttr(R.attr.colorAccent)
|
||||
cornerRadius = holder.status.resources.sizeScaled(2).toFloat()
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ object Utils {
|
||||
val progressIcon: Drawable =
|
||||
createDefaultApplicationIcon(context, android.R.attr.textColorSecondary)
|
||||
val defaultIcon: Drawable =
|
||||
createDefaultApplicationIcon(context, android.R.attr.colorAccent)
|
||||
createDefaultApplicationIcon(context, R.attr.colorAccent)
|
||||
return Pair(progressIcon, defaultIcon)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user