Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dialogs using ActionBarSherlock/HoloEverywhere Light

I'm using Christophe Versiuex's HoloEverywhere library project and the Theme.HoloEverywhereLight.Sherlock theme.

The system dialog boxes - copy all text, date picker dialog, etc - all have white text as the window title rather than the light blue. You can see this if you run the demo.

I've tried styling them using android:windowTitleStyle but with no luck. Is anyone using this and found a workaround?

Thanks.

like image 825
jFort Avatar asked Apr 15 '26 07:04

jFort


1 Answers

The title text is hard to change. You can change the background color for the title so it becomes readable, and leave everything else in the light theme:

<style name="Theme.MyTheme" 
       parent="Theme.HoloEverywhereLight.DarkActionBar.Sherlock">
       <item name="android:alertDialogStyle">@style/AlertDialogHoloMix</item>
</style>

<style name="AlertDialogHoloMix" 
       parent="AlertDialogHoloLight">
       <item name="android:topDark">@drawable/dialog_top_holo_dark</item>
</style>

I tested this on Gingerbread and ICS.

like image 53
SharkAlley Avatar answered Apr 17 '26 20:04

SharkAlley



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!