Skip to content

Commit ad77cd8

Browse files
committed
Update high contrast console theme
1 parent 436f6c7 commit ad77cd8

File tree

6 files changed

+256
-2
lines changed

6 files changed

+256
-2
lines changed
Lines changed: 54 additions & 0 deletions
Loading
Lines changed: 54 additions & 0 deletions
Loading
Lines changed: 54 additions & 0 deletions
Loading
Lines changed: 54 additions & 0 deletions
Loading

client/modules/IDE/components/Console.jsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,16 @@ import {
99
} from '../../../styles/components/_console-feed.scss';
1010
import warnLightUrl from '../../../images/console-warn-light.svg';
1111
import warnDarkUrl from '../../../images/console-warn-dark.svg';
12+
import warnContrastUrl from '../../../images/console-warn-contrast.svg';
1213
import errorLightUrl from '../../../images/console-error-light.svg';
1314
import errorDarkUrl from '../../../images/console-error-dark.svg';
15+
import errorContrastUrl from '../../../images/console-error-contrast.svg';
1416
import debugLightUrl from '../../../images/console-debug-light.svg';
1517
import debugDarkUrl from '../../../images/console-debug-dark.svg';
18+
import debugContrastUrl from '../../../images/console-debug-contrast.svg';
1619
import infoLightUrl from '../../../images/console-info-light.svg';
1720
import infoDarkUrl from '../../../images/console-info-dark.svg';
21+
import infoContrastUrl from '../../../images/console-info-contrast.svg';
1822

1923
const upArrowUrl = require('../../../images/up-arrow.svg');
2024
const downArrowUrl = require('../../../images/down-arrow.svg');
@@ -47,6 +51,12 @@ class Console extends React.Component {
4751
LOG_DEBUG_ICON: `url(${debugDarkUrl})`,
4852
LOG_INFO_ICON: `url(${infoDarkUrl})`
4953
};
54+
const CONSOLE_FEED_CONTRAST_ICONS = {
55+
LOG_WARN_ICON: `url(${warnContrastUrl})`,
56+
LOG_ERROR_ICON: `url(${errorContrastUrl})`,
57+
LOG_DEBUG_ICON: `url(${debugContrastUrl})`,
58+
LOG_INFO_ICON: `url(${infoContrastUrl})`
59+
};
5060
const CONSOLE_FEED_SIZES = {
5161
TREENODE_LINE_HEIGHT: 1.2,
5262
BASE_FONT_SIZE: this.props.fontSize,
@@ -64,7 +74,7 @@ class Console extends React.Component {
6474
case 'dark':
6575
return Object.assign(CONSOLE_FEED_DARK_STYLES, CONSOLE_FEED_DARK_ICONS, CONSOLE_FEED_SIZES, style);
6676
case 'contrast':
67-
return Object.assign(CONSOLE_FEED_CONTRAST_STYLES, CONSOLE_FEED_DARK_ICONS, CONSOLE_FEED_SIZES, style);
77+
return Object.assign(CONSOLE_FEED_CONTRAST_STYLES, CONSOLE_FEED_CONTRAST_ICONS, CONSOLE_FEED_SIZES, style);
6878
default:
6979
return '';
7080
}

client/styles/components/_console-feed.scss

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,32 @@ $CONSOLE_FEED_DARK_STYLES: (
5050
TABLE_DATA_BACKGROUND_SIZE: 'grey'
5151
);
5252

53-
$CONSOLE_FEED_CONTRAST_STYLES: $CONSOLE_FEED_DARK_STYLES;
53+
$CONSOLE_FEED_CONTRAST_STYLES: (
54+
BASE_BACKGROUND_COLOR: '',
55+
BASE_COLOR: 'white',
56+
OBJECT_NAME_COLOR: 'white',
57+
OBJECT_VALUE_NULL_COLOR: 'hsl(230, 100%, 80%)',
58+
OBJECT_VALUE_UNDEFINED_COLOR: 'hsl(230, 100%, 80%)',
59+
OBJECT_VALUE_REGEXP_COLOR: 'hsl(230, 100%, 80%)',
60+
OBJECT_VALUE_STRING_COLOR: 'hsl(230, 100%, 80%)',
61+
OBJECT_VALUE_SYMBOL_COLOR: 'hsl(230, 100%, 80%)',
62+
OBJECT_VALUE_NUMBER_COLOR: 'hsl(230, 100%, 80%)',
63+
OBJECT_VALUE_BOOLEAN_COLOR: 'hsl(230, 100%, 80%)',
64+
OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: 'hsl(230, 100%, 80%)',
65+
LOG_ERROR_BACKGROUND: '#1F0000',
66+
LOG_ERROR_COLOR: '#EA7B7D',
67+
LOG_WARN_BACKGROUND: 'hsl(50, 100%, 10%)',
68+
LOG_WARN_COLOR: '#F5BC38',
69+
LOG_INFO_COLOR: '#D9D9D9',
70+
LOG_INFO_BORDER: '#4D4D4D',
71+
LOG_COLOR: '#D9D9D9',
72+
LOG_DEBUG_COLOR: '#38B6F5',
73+
LOG_DEBUG_BACKGROUND: '#05232E',
74+
LOG_DEBUG_BORDER: '#0C546E',
75+
TABLE_BORDER_COLOR: 'grey',
76+
TABLE_TH_BACKGROUND_COLOR: 'transparent',
77+
TABLE_TH_HOVER_COLOR: 'grey',
78+
TABLE_SORT_ICON_COLOR: 'grey',
79+
TABLE_DATA_BACKGROUND_IMAGE: 'grey',
80+
TABLE_DATA_BACKGROUND_SIZE: 'grey'
81+
);

0 commit comments

Comments
 (0)