diff --git a/webapp/components/announcement_bar/announcement_bar.jsx b/webapp/components/announcement_bar/announcement_bar.jsx index 0e731fd7c5..84061ec05d 100644 --- a/webapp/components/announcement_bar/announcement_bar.jsx +++ b/webapp/components/announcement_bar/announcement_bar.jsx @@ -196,9 +196,9 @@ export default class AnnouncementBar extends React.PureComponent { barStyle.color = this.state.textColor; linkStyle.color = this.state.textColor; } else if (this.state.type === BAR_DEVELOPER_TYPE) { - errClass = 'error-bar-developer'; + errClass = 'error-bar error-bar-developer'; } else if (this.state.type === BAR_CRITICAL_TYPE) { - errClass = 'error-bar-critical'; + errClass = 'error-bar error-bar-critical'; } let closeButton; diff --git a/webapp/images/themes/mattermost.png b/webapp/images/themes/mattermost.png index 8dea37ff69..6b5c4eced1 100644 Binary files a/webapp/images/themes/mattermost.png and b/webapp/images/themes/mattermost.png differ diff --git a/webapp/sass/components/_error-bar.scss b/webapp/sass/components/_error-bar.scss index 06a35df406..b08b6d95b5 100644 --- a/webapp/sass/components/_error-bar.scss +++ b/webapp/sass/components/_error-bar.scss @@ -48,60 +48,8 @@ .error-bar-critical { background-color: #B0171F; - color: white; - padding: 5px 30px; - position: absolute; - text-align: center; - top: 0; - width: 100%; - z-index: 9999; - - a { - &.error-bar__close { - color: $white; - font-family: 'Open Sans', sans-serif; - font-size: 20px; - font-weight: 600; - padding: 0 10px; - position: absolute; - right: 0; - text-decoration: none; - top: 0; - - &:hover { - color: $white; - text-decoration: none; - } - } - } } .error-bar-developer { background-color: purple; - color: white; - padding: 5px 30px; - position: absolute; - text-align: center; - top: 0; - width: 100%; - z-index: 9999; - - a { - &.error-bar__close { - color: $white; - font-family: 'Open Sans', sans-serif; - font-size: 20px; - font-weight: 600; - padding: 0 10px; - position: absolute; - right: 0; - text-decoration: none; - top: 0; - - &:hover { - color: $white; - text-decoration: none; - } - } - } } diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx index f1b72dbf6f..6b77be7893 100644 --- a/webapp/utils/constants.jsx +++ b/webapp/utils/constants.jsx @@ -464,6 +464,32 @@ export const Constants = { LEAVE_TEAM_SVG: " ", THEMES: { default: { + type: 'Mattermost', + sidebarBg: '#145dbf', + sidebarText: '#ffffff', + sidebarUnreadText: '#ffffff', + sidebarTextHoverBg: '#4578bf', + sidebarTextActiveBorder: '#579eff', + sidebarTextActiveColor: '#ffffff', + sidebarHeaderBg: '#1153ab', + sidebarHeaderTextColor: '#ffffff', + onlineIndicator: '#06d6a0', + awayIndicator: '#ffbc42', + mentionBj: '#ffffff', + mentionColor: '#145dbf', + centerChannelBg: '#ffffff', + centerChannelColor: '#3d3c40', + newMessageSeparator: '#ff8800', + linkColor: '#2389d7', + buttonBg: '#166de0', + buttonColor: '#ffffff', + errorTextColor: '#fd5960', + mentionHighlightBg: '#fff2bb', + mentionHighlightLink: '#166de0', + codeTheme: 'github', + image: mattermostThemeImage + }, + organization: { type: 'Organization', sidebarBg: '#2071a7', sidebarText: '#ffffff', @@ -489,32 +515,6 @@ export const Constants = { codeTheme: 'github', image: defaultThemeImage }, - mattermost: { - type: 'Mattermost', - sidebarBg: '#fafafa', - sidebarText: '#333333', - sidebarUnreadText: '#333333', - sidebarTextHoverBg: '#e6f2fa', - sidebarTextActiveBorder: '#378fd2', - sidebarTextActiveColor: '#111111', - sidebarHeaderBg: '#3481b9', - sidebarHeaderTextColor: '#ffffff', - onlineIndicator: '#7dbe00', - awayIndicator: '#dcbd4e', - mentionBj: '#2389d7', - mentionColor: '#ffffff', - centerChannelBg: '#ffffff', - centerChannelColor: '#333333', - newMessageSeparator: '#ff8800', - linkColor: '#2389d7', - buttonBg: '#23a2ff', - buttonColor: '#ffffff', - errorTextColor: '#a94442', - mentionHighlightBg: '#f3e197', - mentionHighlightLink: '#2f81b7', - codeTheme: 'github', - image: mattermostThemeImage - }, mattermostDark: { type: 'Mattermost Dark', sidebarBg: '#1b2c3e',