Adding mention highlight setting and improving search highlight too
Этот коммит содержится в:
@@ -138,7 +138,8 @@ module.exports = {
|
|||||||
newMessageSeparator: '#FF8800',
|
newMessageSeparator: '#FF8800',
|
||||||
linkColor: '#2389d7',
|
linkColor: '#2389d7',
|
||||||
buttonBg: '#2389d7',
|
buttonBg: '#2389d7',
|
||||||
buttonColor: '#FFFFFF'
|
buttonColor: '#FFFFFF',
|
||||||
|
mentionHighlightBg: '#fff2bb'
|
||||||
},
|
},
|
||||||
organization: {
|
organization: {
|
||||||
type: 'Organization',
|
type: 'Organization',
|
||||||
@@ -159,7 +160,8 @@ module.exports = {
|
|||||||
newMessageSeparator: '#FF8800',
|
newMessageSeparator: '#FF8800',
|
||||||
linkColor: '#2f81b7',
|
linkColor: '#2f81b7',
|
||||||
buttonBg: '#1dacfc',
|
buttonBg: '#1dacfc',
|
||||||
buttonColor: '#FFFFFF'
|
buttonColor: '#FFFFFF',
|
||||||
|
mentionHighlightBg: '#fff2bb'
|
||||||
},
|
},
|
||||||
mattermostDark: {
|
mattermostDark: {
|
||||||
type: 'Mattermost Dark',
|
type: 'Mattermost Dark',
|
||||||
@@ -180,7 +182,8 @@ module.exports = {
|
|||||||
newMessageSeparator: '#5de5da',
|
newMessageSeparator: '#5de5da',
|
||||||
linkColor: '#A4FFEB',
|
linkColor: '#A4FFEB',
|
||||||
buttonBg: '#4CBBA4',
|
buttonBg: '#4CBBA4',
|
||||||
buttonColor: '#FFFFFF'
|
buttonColor: '#FFFFFF',
|
||||||
|
mentionHighlightBg: '#338886'
|
||||||
},
|
},
|
||||||
windows10: {
|
windows10: {
|
||||||
type: 'Windows Dark',
|
type: 'Windows Dark',
|
||||||
@@ -201,7 +204,8 @@ module.exports = {
|
|||||||
newMessageSeparator: '#CC992D',
|
newMessageSeparator: '#CC992D',
|
||||||
linkColor: '#0177e7',
|
linkColor: '#0177e7',
|
||||||
buttonBg: '#0177e7',
|
buttonBg: '#0177e7',
|
||||||
buttonColor: '#FFFFFF'
|
buttonColor: '#FFFFFF',
|
||||||
|
mentionHighlightBg: '#276198'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
THEME_ELEMENTS: [
|
THEME_ELEMENTS: [
|
||||||
@@ -263,7 +267,7 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'newMessageSeparator',
|
id: 'newMessageSeparator',
|
||||||
uiName: 'New message separator'
|
uiName: 'New Message Separator'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'linkColor',
|
id: 'linkColor',
|
||||||
@@ -273,10 +277,13 @@ module.exports = {
|
|||||||
id: 'buttonBg',
|
id: 'buttonBg',
|
||||||
uiName: 'Button BG'
|
uiName: 'Button BG'
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
id: 'buttonColor',
|
id: 'buttonColor',
|
||||||
uiName: 'Button Text'
|
uiName: 'Button Text'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'mentionHighlightBg',
|
||||||
|
uiName: 'Mention Highlight BG'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -530,6 +530,10 @@ export function applyTheme(theme) {
|
|||||||
if (theme.buttonColor) {
|
if (theme.buttonColor) {
|
||||||
changeCss('.btn.btn-primary', 'color:' + theme.buttonColor, 2);
|
changeCss('.btn.btn-primary', 'color:' + theme.buttonColor, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (theme.mentionHighlightBg) {
|
||||||
|
changeCss('.mention-highlight, .search-highlight', 'background:' + theme.mentionHighlightBg, 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,5 +57,11 @@
|
|||||||
|
|
||||||
.mention-highlight {
|
.mention-highlight {
|
||||||
background-color:#fff2bb;
|
background-color:#fff2bb;
|
||||||
color: #333;
|
a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: underline;
|
||||||
|
&:hover, &:active {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -104,7 +104,13 @@
|
|||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-highlight.theme, .search-highlight {
|
.search-highlight {
|
||||||
background-color: #FFF2BB;
|
background-color: #FFF2BB;
|
||||||
color: #333;
|
a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: underline;
|
||||||
|
&:hover, &:active {
|
||||||
|
color: inherit;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user