Cleared colors and styles, basic application-wide dark theme setup

This commit is contained in:
Arty Bishop committed 2020-10-12 22:45:21 +01:00
1 parent b071131ba3
commit 4e9b312ae5
42 files changed
+207 -184

No files matched your search

@@ -41,7 +41,7 @@ class EntriesFragment : Fragment(R.layout.fragment_entries) {
val linearLayoutMgr = LinearLayoutManager(requireContext())
val divider = DividerItemDecoration(requireContext(), linearLayoutMgr.orientation)
val drawable = ResourcesCompat
.getDrawable(resources, R.drawable.entries_divider, requireActivity().theme)
.getDrawable(resources, R.drawable.rec_entries_divider, requireActivity().theme)
drawable?.let { divider.setDrawable(it) }
layoutManager = linearLayoutMgr
adapter = entriesAdapter
@@ -29,13 +29,13 @@ class PolarView(context: Context) : View(context) {
private val radarPaint = Paint().apply {
isAntiAlias = true
color = ContextCompat.getColor(context, R.color.themePrimText)
color = ContextCompat.getColor(context, R.color.onPrimary)
style = Paint.Style.STROKE
strokeWidth = scale
}
private val txtPaint = Paint().apply {
isAntiAlias = true
color = ContextCompat.getColor(context, R.color.themeAccent)
color = ContextCompat.getColor(context, R.color.secondary)
textSize = txtSize
}
private val trackPaint = Paint().apply {
@@ -46,7 +46,7 @@ class PolarView(context: Context) : View(context) {
}
private val satPaint = Paint().apply {
isAntiAlias = true
color = ContextCompat.getColor(context, R.color.themeAccent)
color = ContextCompat.getColor(context, R.color.secondary)
style = Paint.Style.FILL
}