made highlight of diff slightly more visible

This commit is contained in:
dzannotti 2015-08-10 20:57:29 +01:00
parent 43983785b4
commit da140c1545
4 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ export default class JSONBooleanNode extends React.Component {
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.base08);
backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.04)`; backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`;
} }
return ( return (
<li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}>

View File

@ -22,7 +22,7 @@ export default class JSONNullNode extends React.Component {
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.base08);
backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.04)`; backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`;
} }
return ( return (
<li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}>

View File

@ -22,7 +22,7 @@ export default class JSONNumberNode extends React.Component {
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.base08);
backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.04)`; backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`;
} }
return ( return (
<li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}>

View File

@ -22,7 +22,7 @@ export default class JSONStringNode extends React.Component {
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.base08);
backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.04)`; backgroundColor = `rgba(${bgColor.r}, ${bgColor.g}, ${bgColor.b}, 0.06)`;
} }
return ( return (
<li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}> <li style={{ ...styles.base, backgroundColor }} onClick={::this.handleClick}>