Cyanea icon indicating copy to clipboard operation
Cyanea copied to clipboard

Get style.xml reference for background color?

Open ItsCalebJones opened this issue 6 years ago • 2 comments

Would be nice to have a few of the other references but namely:

@color/cyanea_background_reference

ItsCalebJones avatar Dec 17 '18 22:12 ItsCalebJones

You should be able to use ?backgroundColor. There is no @color/cyanea_background_reference to support both light and dark themes.

jaredrummler avatar Jan 16 '19 01:01 jaredrummler

If I use ?backgroundColor with a MaterialDrawer it shows as transparent.

    <style name="BaseAppTheme.DarkBackground" parent="BaseAppTheme">
        <item name="material_drawer_background">?backgroundColor</item>
        <item name="material_drawer_primary_text">@color/material_drawer_dark_primary_text</item>
        <item name="material_drawer_primary_icon">@color/material_drawer_dark_primary_icon</item>
        <item name="material_drawer_secondary_text">@color/material_drawer_dark_secondary_text</item>
        <item name="material_drawer_hint_text">@color/material_drawer_dark_hint_text</item>
        <item name="material_drawer_divider">@color/material_drawer_dark_divider</item>
        <item name="material_drawer_selected">@color/material_drawer_dark_selected</item>
        <item name="material_drawer_selected_text">@color/material_drawer_dark_selected_text</item>
        <item name="material_drawer_header_selection_text">@color/material_drawer_dark_header_selection_text</item>
    </style>

ItsCalebJones avatar Jan 16 '19 22:01 ItsCalebJones