[DE][PE] Table Settings: Change border color when theme colors are changed.

This commit is contained in:
Julia Radzhabova 2016-08-18 10:58:30 +03:00
parent 9c5b6f5ba5
commit 1a02a40dec
4 changed files with 13 additions and 3 deletions

View file

@ -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;
},

View file

@ -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},

View file

@ -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){

View file

@ -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){