
This is a <Drawer> with a custom theme (I want the drawer in a dark theme, while the main content uses a light theme):
<MuiThemeProvider muiTheme={sidebarTheme}>
<Drawer
docked={false}
width={this.props.width}
open={this.props.openDrawer}
onRequestChange={this.handleDrawerChange}
>
{this.props.drawerContent}
</Drawer>
</MuiThemeProvider>
How can I change the color of the left icons?
This is the sidebarTheme I'm using:
import baseTheme from 'material-ui/styles/baseThemes/darkBaseTheme';
import * as colors from 'material-ui/styles/colors';
export default {
...baseTheme,
palette: {
...baseTheme.palette,
canvasColor: colors.green900,
primary1Color: colors.lime500,
// just testing:
listItem: {
leftIconColor: "#FFFF00",
rightIconColor: "#FFFF00",
},
svgIcon: {
color: "#FFFF00"
}
}
};
I can't find the right setting to change the icon - or, the setting does not work...
@jampy: can you please provide a bin to reproduce the code that you provided?
The color of icons should be changed on the content of the drawer (probably <MenuItem /> components) which I can not tell by your code.
@lucasbento I would, but I don't know how to import icons in webpackbin.
@jampy: I just commented in the issue, I hope that works for you!
Closing this due to inactivity.