diff --git a/apps/common/main/lib/component/Switcher.js b/apps/common/main/lib/component/Switcher.js
index 2edaf52588..49c66b3175 100644
--- a/apps/common/main/lib/component/Switcher.js
+++ b/apps/common/main/lib/component/Switcher.js
@@ -47,8 +47,8 @@ define([
options : {
hint: false,
- width: 25,
- thumbWidth: 13,
+ width: 30,
+ thumbWidth: 12,
value: false
},
@@ -56,8 +56,6 @@ define([
template : _.template([
'
'
].join('')),
@@ -108,8 +106,6 @@ define([
this.cmpEl.width(me.width);
this.thumb.width(me.thumbWidth);
- this.cmpEl.find('.sw-left').width(me.width/2);
- this.cmpEl.find('.sw-right').width(me.width/2);
var onMouseUp = function (e) {
if ( me.disabled ) return;
@@ -140,9 +136,9 @@ define([
var pos = Math.round((e.pageX*Common.Utils.zoom() - me._dragstart));
if (me.value) {
- me.thumb.css({right: (pos<1) ? Math.min(me.width-me.thumbWidth - 2, -pos) : 0, left: 'auto'});
+ me.thumb.css({right: (pos<1) ? Math.min(me.width-me.thumbWidth - 4, -pos) : 0, left: 'auto'});
} else {
- me.thumb.css({left: (pos>-1) ? Math.min(me.width-me.thumbWidth - 2, pos) : 0, right: 'auto'});
+ me.thumb.css({left: (pos>-1) ? Math.min(me.width-me.thumbWidth - 4, pos) : 0, right: 'auto'});
}
if (!me._isMouseMove) me._isMouseMove = Math.abs(pos)>0;
};
diff --git a/apps/common/main/resources/less/switcher.less b/apps/common/main/resources/less/switcher.less
index ba593fc823..8b18acd009 100644
--- a/apps/common/main/resources/less/switcher.less
+++ b/apps/common/main/resources/less/switcher.less
@@ -1,42 +1,27 @@
.switcher {
position: relative;
- width: 25px;
- height: 15px;
- background-color: transparent;
+ width: 30px;
+ height: 16px;
+ background-color: @border-preview-hover-ie;
+ background-color: @border-preview-hover;
+ border-radius: 11px;
cursor: pointer;
- .sw-left {
- display: inline-block;
- height: 100%;
- background-color: @highlight-button-pressed-ie;
- background-color: @highlight-button-pressed;
- border-top-left-radius: 2px;
- border-bottom-left-radius: 2px;
- }
-
- .sw-right {
- display: inline-block;
- height: 100%;
- background-color: @border-regular-control-ie;
- background-color: @border-regular-control;
- border-top-right-radius: 2px;
- border-bottom-right-radius: 2px;
- }
-
.thumb {
position: absolute;
left: 0;
right: auto;
top: 0;
- height: 100%;
+ height: 12px;
+ border-radius: 12px;
background-color: @background-normal-ie;
background-color: @background-normal;
- border: 1px solid @highlight-button-pressed-ie;
- border: 1px solid @highlight-button-pressed;
- border-radius: 3px;
+ margin: 2px;
}
&.on {
+ background-color: @background-primary-dialog-button-ie;
+ background-color: @background-primary-dialog-button;
.thumb {
right: 0;
left: auto;
@@ -47,15 +32,5 @@
cursor: default;
opacity: @component-disabled-opacity-ie;
opacity: @component-disabled-opacity;
-
- .sw-left {
- background-color: @border-regular-control-ie;
- background-color: @border-regular-control;
- }
-
- .thumb {
- border-color: @border-regular-control-ie;
- border-color: @border-regular-control;
- }
}
}
\ No newline at end of file
diff --git a/apps/documenteditor/main/app/view/DateTimeDialog.js b/apps/documenteditor/main/app/view/DateTimeDialog.js
index 39126c54b9..c95025b6d0 100644
--- a/apps/documenteditor/main/app/view/DateTimeDialog.js
+++ b/apps/documenteditor/main/app/view/DateTimeDialog.js
@@ -131,7 +131,8 @@ define([
store: new Common.UI.DataViewStore(),
tabindex: 1,
scrollAlwaysVisible: true,
- cls: 'dbl-clickable'
+ cls: 'dbl-clickable',
+ itemTemplate: _.template('<%= value %>
')
});
this.listFormats.on('item:select', _.bind(this.onSelectFormat, this));
diff --git a/apps/spreadsheeteditor/main/app/view/PivotSettings.js b/apps/spreadsheeteditor/main/app/view/PivotSettings.js
index 8733628669..498fd8c3b0 100644
--- a/apps/spreadsheeteditor/main/app/view/PivotSettings.js
+++ b/apps/spreadsheeteditor/main/app/view/PivotSettings.js
@@ -351,13 +351,12 @@ define([
this.onMove(2, this.itemIndex, _.isNumber(this.indexMoveTo) ? (this.indexMoveTo !== 0 && this.itemIndex < this.indexMoveTo ? this.indexMoveTo - 1 : this.indexMoveTo) : this.valuesList.store.length - 1);
break;
}
- } else {
- $(this.el).find('.item').removeClass('insert last');
}
this.itemIndex = undefined;
this.indexMoveTo = undefined;
}
}
+ $(this.el).find('.item').removeClass('insert last');
},
openAdvancedSettings: function(e) {
diff --git a/apps/spreadsheeteditor/main/resources/less/rightmenu.less b/apps/spreadsheeteditor/main/resources/less/rightmenu.less
index fe33b68388..b6a2235135 100644
--- a/apps/spreadsheeteditor/main/resources/less/rightmenu.less
+++ b/apps/spreadsheeteditor/main/resources/less/rightmenu.less
@@ -238,9 +238,11 @@
padding: 3px;
border-top: none;
&.insert {
- background: linear-gradient(to bottom, #656565, #fff 5%);
+ background: linear-gradient(to bottom, @text-normal-ie, @background-normal-ie 5%);
+ background: linear-gradient(to bottom, @text-normal, @background-normal 5%);
&.last {
- background: linear-gradient(to top, #656565, #fff 5%);
+ background: linear-gradient(to top, @text-normal-ie, @background-normal-ie 5%);
+ background: linear-gradient(to top, @text-normal, @background-normal 5%);
}
}
&:hover {