mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 07:57:39 +03:00 
			
		
		
		
	Change highlight color to white with 0.1 alpha
This commit is contained in:
		
							parent
							
								
									c6811b0302
								
							
						
					
					
						commit
						184853cb14
					
				|  | @ -22,8 +22,8 @@ export default class JSONBooleanNode extends React.Component { | ||||||
|     const truthString = (this.props.value) ? 'true' : 'false'; |     const truthString = (this.props.value) ? 'true' : 'false'; | ||||||
|     let backgroundColor = 'transparent'; |     let backgroundColor = 'transparent'; | ||||||
|     if (this.props.previousValue !== this.props.value) { |     if (this.props.previousValue !== this.props.value) { | ||||||
|       const bgColor = hexToRgb(this.props.theme.base08); |       const bgColor = hexToRgb(this.props.theme.base06); | ||||||
|       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`; |       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.1)`; | ||||||
|     } |     } | ||||||
|     return ( |     return ( | ||||||
|       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> |       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> | ||||||
|  |  | ||||||
|  | @ -21,8 +21,8 @@ export default class JSONNullNode extends React.Component { | ||||||
|   render() { |   render() { | ||||||
|     let backgroundColor = 'transparent'; |     let backgroundColor = 'transparent'; | ||||||
|     if (this.props.previousValue !== this.props.value) { |     if (this.props.previousValue !== this.props.value) { | ||||||
|       const bgColor = hexToRgb(this.props.theme.base08); |       const bgColor = hexToRgb(this.props.theme.base06); | ||||||
|       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`; |       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.1)`; | ||||||
|     } |     } | ||||||
|     return ( |     return ( | ||||||
|       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> |       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> | ||||||
|  |  | ||||||
|  | @ -21,8 +21,8 @@ export default class JSONNumberNode extends React.Component { | ||||||
|   render() { |   render() { | ||||||
|     let backgroundColor = 'transparent'; |     let backgroundColor = 'transparent'; | ||||||
|     if (this.props.previousValue !== this.props.value) { |     if (this.props.previousValue !== this.props.value) { | ||||||
|       const bgColor = hexToRgb(this.props.theme.base08); |       const bgColor = hexToRgb(this.props.theme.base06); | ||||||
|       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`; |       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.1)`; | ||||||
|     } |     } | ||||||
|     return ( |     return ( | ||||||
|       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> |       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> | ||||||
|  |  | ||||||
|  | @ -21,8 +21,8 @@ export default class JSONStringNode extends React.Component { | ||||||
|   render() { |   render() { | ||||||
|     let backgroundColor = 'transparent'; |     let backgroundColor = 'transparent'; | ||||||
|     if (this.props.previousValue !== this.props.value) { |     if (this.props.previousValue !== this.props.value) { | ||||||
|       const bgColor = hexToRgb(this.props.theme.base08); |       const bgColor = hexToRgb(this.props.theme.base06); | ||||||
|       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`; |       backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.1)`; | ||||||
|     } |     } | ||||||
|     return ( |     return ( | ||||||
|       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> |       <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user