diff --git a/apps/common/mobile/lib/component/HsbColorPicker.js b/apps/common/mobile/lib/component/HsbColorPicker.js index 0d313fecc..27327ec7f 100644 --- a/apps/common/mobile/lib/component/HsbColorPicker.js +++ b/apps/common/mobile/lib/component/HsbColorPicker.js @@ -56,26 +56,20 @@ define([ color: '#000000' }, template: _.template([ - '
', - '
', - '
', - '<% if (android) { %>', - '<%= scope.textAddNewColor %>', - '<% } else { %>', - '
', - '', - '
', - '<% } %>', - '
', - '
', + '
', + '
', '<%=circlesColors%>', '
', '
', - '
', + '
', + '
', + '
', + '
', + '
', + '
', + '
', + '
', + '', '
', '
' ].join('')), @@ -117,6 +111,8 @@ define([ android: Common.SharedSettings.get('android') })); + $('.current-color-hsb-preview').css({'background-color': '#' + me.currentColor}); + this.afterRender(); return me; @@ -310,7 +306,7 @@ define([ } var color = this.colorHslToRgb(this.currentHsl[0], this.currentHsl[1], this.currentHsl[2]); this.currentColor = this.colorRgbToHex(color[0], color[1], color[2]); - $('.color-hsb-preview').css({'background-color': this.currentColor}); + $('.new-color-hsb-preview').css({'background-color': this.currentColor}); }, @@ -324,7 +320,6 @@ define([ } }, - textCustomColors: 'Custom Colors', - textAddNewColor: 'Add new color' + textCustomColors: 'Custom Colors' }, Common.UI.HsbColorPicker || {})); }); \ No newline at end of file diff --git a/apps/common/mobile/resources/less/ios/_color-palette.less b/apps/common/mobile/resources/less/ios/_color-palette.less index 2f3d12cd1..1533ff2d4 100644 --- a/apps/common/mobile/resources/less/ios/_color-palette.less +++ b/apps/common/mobile/resources/less/ios/_color-palette.less @@ -43,9 +43,50 @@ } .custom-colors { + display: flex; + justify-content: space-around; + align-items: center; + margin: 15px; + &.phone { + max-width: 300px; + margin: 0 auto; + margin-top: 4px; + .button-round { + margin-top: 20px; + } + } + .right-block { + margin-left: 20px; + } + .button-round { + height: 72px; + width: 72px; + padding: 0; + display: flex; + justify-content: center; + align-items: center; + border-radius: 100px; + background-color: #ffffff; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + border-color: transparent; + margin-top: 25px; + &.active-state { + background-color: rgba(0, 0, 0, 0.1); + } + } .color-hsb-preview { - width: 75px; - border: 1px solid rgba(0, 0, 0, 0.3); + width: 72px; + height: 72px; + border-radius: 100px; + overflow: hidden; + } + .new-color-hsb-preview { + width: 100%; + height: 36px; + } + .current-color-hsb-preview { + width: 100%; + height: 36px; } .list-block ul:before, .list-block ul:after { content: none; @@ -59,11 +100,6 @@ max-width: 100%; height: auto; font-size: 0; - margin-left: auto; - margin-right: auto; - &.phone { - width: 210px; - } svg { width: 100%; diff --git a/apps/common/mobile/resources/less/material/_color-palette.less b/apps/common/mobile/resources/less/material/_color-palette.less index 0a2470663..3e7b7d1b4 100644 --- a/apps/common/mobile/resources/less/material/_color-palette.less +++ b/apps/common/mobile/resources/less/material/_color-palette.less @@ -48,8 +48,55 @@ } .custom-colors { + display: flex; + justify-content: space-around; + align-items: center; + margin: 15px; + &.phone { + max-width: 300px; + margin: 0 auto; + margin-top: 4px; + .button-round { + margin-top: 20px; + } + } + .right-block { + margin-left: 20px; + } + .button-round { + height: 72px; + width: 72px; + padding: 0; + display: flex; + justify-content: center; + align-items: center; + border-radius: 100px; + background-color: @themeColor; + box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); + border-color: transparent; + margin-top: 25px; + &.active-state { + background-color: rgba(0, 0, 0, 0.1); + } + } .color-hsb-preview { - width: 75px; + width: 72px; + height: 72px; + border-radius: 100px; + overflow: hidden; + } + .new-color-hsb-preview { + width: 100%; + height: 36px; + } + .current-color-hsb-preview { + width: 100%; + height: 36px; + } + .list-block ul:before, .list-block ul:after { + content: none; + } + .list-block ul li { border: 1px solid rgba(0, 0, 0, 0.3); } .color-picker-wheel { @@ -58,11 +105,6 @@ max-width: 100%; height: auto; font-size: 0; - margin-left: auto; - margin-right: auto; - &.phone { - width: 210px; - } svg { width: 100%; diff --git a/apps/documenteditor/mobile/app/template/EditShape.template b/apps/documenteditor/mobile/app/template/EditShape.template index 27f48849b..06c6c5dee 100644 --- a/apps/documenteditor/mobile/app/template/EditShape.template +++ b/apps/documenteditor/mobile/app/template/EditShape.template @@ -454,7 +454,7 @@