util: rework context utilities
Completely rework the Context extensions for resources. Previously, Auxio has used a strange hodge-podge of context extensions and verbose code to get resources. Fix this by unifying most of the resource accesses under a single, unified set of extensions. The only ones excluded for now is the getString call, as that is used in far too many places to effectively replace.
This commit is contained in:
@@ -39,12 +39,15 @@
|
||||
|
||||
<!-- Widget TextView that mimics the main Auxio Primary TextView -->
|
||||
<style name="Widget.Auxio.TextView.Primary.AppWidget" parent="Widget.Auxio.TextView.AppWidget">
|
||||
<item name="android:textStyle">normal</item>
|
||||
<item name="android:fontFamily">sans-serif-medium</item>
|
||||
<item name="android:textAppearance">@style/TextAppearance.Auxio.TitleMidLarge</item>
|
||||
</style>
|
||||
|
||||
<!-- Widget TextView that mimics the main Auxio Secondary TextView -->
|
||||
<style name="Widget.Auxio.TextView.Secondary.AppWidget" parent="Widget.Auxio.TextView.AppWidget">
|
||||
<item name="android:textStyle">normal</item>
|
||||
<item name="android:fontFamily">sans-serif</item>
|
||||
<item name="android:textColor">?android:attr/textColorSecondary</item>
|
||||
<item name="android:textAppearance">@style/TextAppearance.Auxio.TitleMedium</item>
|
||||
</style>
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
|
||||
<!--
|
||||
Abuse this floating action button to act more like an old-school auxio button.
|
||||
This is only done because the elevation show acts weird with the panel layout.
|
||||
This is only done because elevation acts weird with the panel layout.
|
||||
-->
|
||||
<item name="android:elevation">0dp</item>
|
||||
<item name="elevation">0dp</item>
|
||||
|
||||
Reference in New Issue
Block a user