We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a color property you can set on the components to make things a little more custom? Where in the code can I set different colors?
The text was updated successfully, but these errors were encountered:
+1 anyone? lol
Sorry, something went wrong.
@ChannelJuanNews , is there a specific component you are having problems changing the color to?
Examples of coloring
Button:
import React, { Component } from 'react'; import { Button } from 'react-desktop/windows'; export default class extends Component { static defaultProps = { color: '#cc7f29' }; render() { return ( <Button push color={this.props.color} onClick={() => console.log('Clicked!')}> Press me! </Button> ); } }
Window
import React, { Component } from 'react'; import { Window, TitleBar, Text } from 'react-desktop/windows'; export default class extends Component { static defaultProps = { color: '#cc7f29', theme: 'light' }; render() { return ( <Window color={this.props.color} theme={this.props.theme} chrome height="300px" padding="12px" > <TitleBar title="My Windows Application" controls/> <Text color={this.props.theme === 'dark' ? 'white' : '#333'}>Hello World</Text> </Window> ); } }
No branches or pull requests
Is there a color property you can set on the components to make things a little more custom? Where in the code can I set different colors?
The text was updated successfully, but these errors were encountered: