Refine colorAccent
This commit is contained in:
@@ -140,7 +140,7 @@ class RepeaterFragment : Fragment(), ServiceConnection, Toolbar.OnMenuItemClickL
|
|||||||
animator.supportsChangeAnimations = false // prevent fading-in/out when rebinding
|
animator.supportsChangeAnimations = false // prevent fading-in/out when rebinding
|
||||||
binding.clients.itemAnimator = animator
|
binding.clients.itemAnimator = animator
|
||||||
binding.clients.adapter = adapter
|
binding.clients.adapter = adapter
|
||||||
binding.swipeRefresher.setColorSchemeResources(R.color.colorAccent)
|
binding.swipeRefresher.setColorSchemeResources(R.color.colorAccentDark)
|
||||||
binding.swipeRefresher.setOnRefreshListener {
|
binding.swipeRefresher.setOnRefreshListener {
|
||||||
IpNeighbourMonitor.instance?.flush()
|
IpNeighbourMonitor.instance?.flush()
|
||||||
adapter.recreate()
|
adapter.recreate()
|
||||||
|
|||||||
@@ -3,4 +3,5 @@
|
|||||||
<color name="colorPrimary">#4CAF50</color>
|
<color name="colorPrimary">#4CAF50</color>
|
||||||
<color name="colorPrimaryDark">#388E3C</color>
|
<color name="colorPrimaryDark">#388E3C</color>
|
||||||
<color name="colorAccent">#C6FF00</color>
|
<color name="colorAccent">#C6FF00</color>
|
||||||
|
<color name="colorAccentDark">#AEEA00</color>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="AppTheme" parent="PreferenceFixTheme.Light.NoActionBar">
|
<style name="AppTheme" parent="Theme.Design.Light.NoActionBar">
|
||||||
<item name="colorPrimary">@color/colorPrimary</item>
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
<item name="colorAccent">@color/colorAccent</item>
|
<item name="colorAccent">@color/colorAccent</item>
|
||||||
|
<item name="preferenceTheme">@style/AppTheme.Preference</item>
|
||||||
|
</style>
|
||||||
|
<style name="AppTheme.Preference" parent="PreferenceThemeOverlay.v14.Material.Fix">
|
||||||
|
<item name="colorPrimary">@color/colorPrimary</item>
|
||||||
|
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||||
|
<item name="colorAccent">@color/colorAccentDark</item>
|
||||||
<item name="preferenceCategory_marginBottom">8dp</item>
|
<item name="preferenceCategory_marginBottom">8dp</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user