Skip to content

Dialog button text color is not visible #60

Description

@krobert

Hey, im trying to use this library, but the values you are using are conflicting with my app theme and i cant find a way to change the color.
image

Im using dayNight material theme, these values im overriding in order to fix it:

    <item name="alertDialogTheme">@style/AlertDialog</item>
    <item name="shakyPopupButtonColor">@color/purple_70</item>
     <item name="shakyAlertDialogTheme">@style/AlertDialog</item>
     <item name="shakyTitleColor">@color/text_main</item>
     <item name="shakyContentColor">@color/text_subtitle</item>
      <item name="android:textColor">@color/purple_70</item>
      
     <style name="AlertDialog" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
        <item name="colorAccent">@color/purple_70</item>
        <item name="buttonBarNegativeButtonStyle">@style/Widget.Dialog.NegativeButton</item>
        <item name="buttonBarPositiveButtonStyle">@style/Widget.Dialog.PositiveButton</item>
    </style>

  <style name="Widget.Dialog.NegativeButton" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
        <item name="android:textColor">@color/purple_70</item>
    </style>

    <style name="Widget.Dialog.PositiveButton" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
        <item name="android:textColor">@color/purple_70</item>
    </style>

Is there a way to fix it? I cant find any configuration thats working,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions