jFort
jFort

Reputation: 327

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.

Upvotes: 3

Views: 2469

Answers (1)

SharkAlley
SharkAlley

Reputation: 11659

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.

Upvotes: 1

Related Questions