Monaca Onsen UI Discord Chat Github Repo

custom android material colour date picker



  • Hi,
    is there any way to change the default color of android material date picker (default colour is green)?
    My code is:

    <ons-input id=“data” modifier=“underbar” type=“date” float style=“width:100%”></ons-input>

    I have searched for this “green colour” inside css files, but without success.

    Thanks,

    L


  • administrators

    I’m not sure how you change the colour, but what you’re seeing is the native Android date picker, not an Onsen UI component. ons-input just wraps a regular input so you won’t find the colour in the Onsen UI CSS files.