PLT-522 - Adding option for mentionHighlightLink for themes
Этот коммит содержится в:
@@ -214,14 +214,14 @@ export default class UserSettingsAppearance extends React.Component {
|
|||||||
<div className='divider-dark first'/>
|
<div className='divider-dark first'/>
|
||||||
{themeUI}
|
{themeUI}
|
||||||
<div className='divider-dark'/>
|
<div className='divider-dark'/>
|
||||||
|
<br/>
|
||||||
|
<a
|
||||||
|
className='theme'
|
||||||
|
onClick={this.handleImportModal}
|
||||||
|
>
|
||||||
|
{'Import theme colors from Slack'}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
|
||||||
<a
|
|
||||||
className='theme'
|
|
||||||
onClick={this.handleImportModal}
|
|
||||||
>
|
|
||||||
{'Import theme colors from Slack'}
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,8 @@ module.exports = {
|
|||||||
linkColor: '#2389d7',
|
linkColor: '#2389d7',
|
||||||
buttonBg: '#2389d7',
|
buttonBg: '#2389d7',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
mentionHighlightBg: '#fff2bb'
|
mentionHighlightBg: '#fff2bb',
|
||||||
|
mentionHighlightLink: '#2f81b7'
|
||||||
},
|
},
|
||||||
organization: {
|
organization: {
|
||||||
type: 'Organization',
|
type: 'Organization',
|
||||||
@@ -161,7 +162,8 @@ module.exports = {
|
|||||||
linkColor: '#2f81b7',
|
linkColor: '#2f81b7',
|
||||||
buttonBg: '#1dacfc',
|
buttonBg: '#1dacfc',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
mentionHighlightBg: '#fff2bb'
|
mentionHighlightBg: '#fff2bb',
|
||||||
|
mentionHighlightLink: '#2f81b7'
|
||||||
},
|
},
|
||||||
mattermostDark: {
|
mattermostDark: {
|
||||||
type: 'Mattermost Dark',
|
type: 'Mattermost Dark',
|
||||||
@@ -183,7 +185,8 @@ module.exports = {
|
|||||||
linkColor: '#A4FFEB',
|
linkColor: '#A4FFEB',
|
||||||
buttonBg: '#4CBBA4',
|
buttonBg: '#4CBBA4',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
mentionHighlightBg: '#338886'
|
mentionHighlightBg: '#984063',
|
||||||
|
mentionHighlightLink: '#A4FFEB'
|
||||||
},
|
},
|
||||||
windows10: {
|
windows10: {
|
||||||
type: 'Windows Dark',
|
type: 'Windows Dark',
|
||||||
@@ -205,7 +208,8 @@ module.exports = {
|
|||||||
linkColor: '#0177e7',
|
linkColor: '#0177e7',
|
||||||
buttonBg: '#0177e7',
|
buttonBg: '#0177e7',
|
||||||
buttonColor: '#FFFFFF',
|
buttonColor: '#FFFFFF',
|
||||||
mentionHighlightBg: '#276198'
|
mentionHighlightBg: '#784098',
|
||||||
|
mentionHighlightLink: '#A4FFEB'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
THEME_ELEMENTS: [
|
THEME_ELEMENTS: [
|
||||||
@@ -284,6 +288,10 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
id: 'mentionHighlightBg',
|
id: 'mentionHighlightBg',
|
||||||
uiName: 'Mention Highlight BG'
|
uiName: 'Mention Highlight BG'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'mentionHighlightLink',
|
||||||
|
uiName: 'Mention Highlight Link'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -536,6 +536,10 @@ export function applyTheme(theme) {
|
|||||||
if (theme.mentionHighlightBg) {
|
if (theme.mentionHighlightBg) {
|
||||||
changeCss('.mention-highlight, .search-highlight', 'background:' + theme.mentionHighlightBg, 1);
|
changeCss('.mention-highlight, .search-highlight', 'background:' + theme.mentionHighlightBg, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (theme.mentionHighlightLink) {
|
||||||
|
changeCss('.mention-highlight .mention-link', 'color:' + theme.mentionHighlightLink, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
export function changeCss(className, classValue, classRepeat) {
|
export function changeCss(className, classValue, classRepeat) {
|
||||||
// we need invisible container to store additional css definitions
|
// we need invisible container to store additional css definitions
|
||||||
|
|||||||
@@ -57,11 +57,4 @@
|
|||||||
|
|
||||||
.mention-highlight {
|
.mention-highlight {
|
||||||
background-color:#fff2bb;
|
background-color:#fff2bb;
|
||||||
a {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: underline;
|
|
||||||
&:hover, &:active {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -106,11 +106,4 @@
|
|||||||
|
|
||||||
.search-highlight {
|
.search-highlight {
|
||||||
background-color: #FFF2BB;
|
background-color: #FFF2BB;
|
||||||
a {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: underline;
|
|
||||||
&:hover, &:active {
|
|
||||||
color: inherit;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user