[DE][PE] Table Settings: Change border color when theme colors are changed.
This commit is contained in:
parent
9c5b6f5ba5
commit
1a02a40dec
|
@ -365,6 +365,12 @@ define([
|
|||
aEffectIdx++;
|
||||
}
|
||||
}
|
||||
|
||||
var selected = $(this.el).find('a.' + this.selectedCls);
|
||||
if (selected.length && selected.hasClass('palette-color-effect')) {
|
||||
this.value = selected[0].className.match(this.colorRe)[1].toUpperCase();
|
||||
}
|
||||
|
||||
this.options.updateColorsArr = undefined;
|
||||
},
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
}
|
||||
|
||||
.options-btn-icon(@icon-class, @index, @icon-size) {
|
||||
.@{icon-class} {background-position: -@icon-size -@index*@icon-size;}
|
||||
.@{icon-class} {background-position: 0 -@index*@icon-size;}
|
||||
button.over > .@{icon-class} {background-position: -1*@icon-size -@index*@icon-size;}
|
||||
// .btn-group.open > .@{icon-class},
|
||||
button.active > .@{icon-class},
|
||||
|
|
|
@ -687,8 +687,10 @@ define([
|
|||
UpdateThemeColors: function() {
|
||||
if (this.colorsBack)
|
||||
this.colorsBack.updateColors(Common.Utils.ThemeColor.getEffectColors(), Common.Utils.ThemeColor.getStandartColors());
|
||||
if (this.borderColor)
|
||||
if (this.borderColor) {
|
||||
this.borderColor.updateColors(Common.Utils.ThemeColor.getEffectColors(), Common.Utils.ThemeColor.getStandartColors());
|
||||
this.btnBorderColor.setColor(this.borderColor.getColor());
|
||||
}
|
||||
},
|
||||
|
||||
_onInitTemplates: function(Templates){
|
||||
|
|
|
@ -583,8 +583,10 @@ define([
|
|||
UpdateThemeColors: function() {
|
||||
if (this.colorsBack)
|
||||
this.colorsBack.updateColors(Common.Utils.ThemeColor.getEffectColors(), Common.Utils.ThemeColor.getStandartColors());
|
||||
if (this.borderColor)
|
||||
if (this.borderColor) {
|
||||
this.borderColor.updateColors(Common.Utils.ThemeColor.getEffectColors(), Common.Utils.ThemeColor.getStandartColors());
|
||||
this.btnBorderColor.setColor(this.borderColor.getColor());
|
||||
}
|
||||
},
|
||||
|
||||
_onInitTemplates: function(Templates){
|
||||
|
|
Loading…
Reference in a new issue