Skip to content

Commit

Permalink
Improve fast scroller popup text color
Browse files Browse the repository at this point in the history
Signed-off-by: enricocid <enrico2588@gmail.com>
  • Loading branch information
enricocid committed May 31, 2018
1 parent 9873adb commit f761dc8
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion project/app/src/main/res/layout/main_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
app:fastScrollPopupBgColor="?attr/accent_color"
app:fastScrollPopupTextColor="?android:textColorSecondary"
app:fastScrollPopupTextColor="?attr/popup_text_color"
app:fastScrollThumbColor="?attr/accent_color"
app:fastScrollThumbInactiveColor="?attr/accent_color"
tools:context="com.iven.musicplayergo.MainActivity" />
Expand Down
1 change: 1 addition & 0 deletions project/app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
<attr name="accent_color" format="color" />
<attr name="icon_color" format="color" />
<attr name="secondary_bg_color" format="color" />
<attr name="popup_text_color" format="color" />
</resources>
17 changes: 17 additions & 0 deletions project/app/src/main/res/values/themes_inverted.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,86 +2,103 @@
<resources>
<!-- ACCENTS THEMES Inverted -->
<style name="AppThemeRedInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/red_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemePinkInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/pink_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemePurpleInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/purple_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeDeepPurpleInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/deep_purple_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeIndigoInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/indigo_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeBlueInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/blue_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeLightBlueInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/light_blue_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeCyanInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/cyan_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeTealInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/teal_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeGreenInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/green_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeAmberInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/amber_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeOrangeInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/orange_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeDeepOrangeInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/deep_orange_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeBrownInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/brown_400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeGrayLightInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/gray_400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeGrayDarkInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/gray_800</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeBlueGrayInverted" parent="AppThemeInverted">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/blue_gray_400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>
Expand Down
22 changes: 17 additions & 5 deletions project/app/src/main/res/values/themes_light.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,91 +2,103 @@
<resources>
<!-- ACCENTS THEMES LIGHT -->
<style name="AppThemeRed" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/red_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemePink" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/pink_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemePurple" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/purple_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeDeepPurple" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/deep_purple_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeIndigo" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/indigo_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeBlue" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/blue_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeLightBlue" parent="AppTheme">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/light_blue_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeCyan" parent="AppTheme">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/cyan_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeTeal" parent="AppTheme">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/teal_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeGreen" parent="AppTheme">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/green_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeAmber" parent="AppTheme">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/amber_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeOrange" parent="AppTheme">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/orange_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeDeepOrange" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/deep_orange_A400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeBrown" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/brown_400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeGray" parent="AppTheme">
<item name="accent_color">@color/gray_400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeGrayLight" parent="AppTheme">
<item name="popup_text_color">@color/inverted</item>
<item name="accent_color">@color/gray_400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeGrayDark" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/gray_800</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>

<style name="AppThemeBlueGray" parent="AppTheme">
<item name="popup_text_color">@color/light</item>
<item name="accent_color">@color/blue_gray_400</item>
<item name="android:seekBarStyle">@style/SeekBarStyle</item>
</style>
Expand Down

0 comments on commit f761dc8

Please sign in to comment.