Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 32dbf30

Browse files
committed
Remove the ColorPicker UI changes while still supporting the %RGB(A) format.
1 parent 34b5b3f commit 32dbf30

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

src/extensions/default/InlineColorEditor/ColorEditor.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ define(function (require, exports, module) {
6868
this.$colorValue = this.$element.find(".color-value");
6969
this.$buttonList = this.$element.find("ul.button-bar");
7070
this.$rgbaButton = this.$element.find(".rgba");
71-
this.$prgbaButton = this.$element.find(".prgba");
7271
this.$hexButton = this.$element.find(".hex");
7372
this.$hslButton = this.$element.find(".hsla");
7473
this.$currentColor = this.$element.find(".current-color");
@@ -129,7 +128,6 @@ define(function (require, exports, module) {
129128
/** Attach event listeners for main UI elements */
130129
ColorEditor.prototype._addListeners = function () {
131130
this._bindColorFormatToRadioButton("rgba");
132-
this._bindColorFormatToRadioButton("prgba");
133131
this._bindColorFormatToRadioButton("hex");
134132
this._bindColorFormatToRadioButton("hsla");
135133

@@ -204,9 +202,6 @@ define(function (require, exports, module) {
204202
case "rgb":
205203
this.$buttonList.find(".rgba").parent().addClass("selected");
206204
break;
207-
case "prgb":
208-
this.$buttonList.find(".prgba").parent().addClass("selected");
209-
break;
210205
case "hex":
211206
case "name":
212207
this.$buttonList.find(".hex").parent().addClass("selected");

src/extensions/default/InlineColorEditor/ColorEditorTemplate.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
<input class="color-value" />
2626
<ul class="button-bar">
2727
<li class="selected" title="{{COLOR_EDITOR_RGBA_BUTTON_TIP}}"><a href="#" tabindex="0" class="rgba">RGBa</a></li>
28-
<li title="{{COLOR_EDITOR_PRGBA_BUTTON_TIP}}"><a href="#" tabindex="0" class="prgba">%RGBa</a></li>
2928
<li title="{{COLOR_EDITOR_HEX_BUTTON_TIP}}"><a href="#" tabindex="0" class="hex">HEX</a></li>
3029
<li title="{{COLOR_EDITOR_HSLA_BUTTON_TIP}}"><a href="#" tabindex="0" class="hsla">HSLa</a></li>
3130
</ul>

src/extensions/default/InlineColorEditor/css/main.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
padding-top: 9px;
207207
}
208208
.color-editor section footer .color-value {
209-
width: 181px;
209+
width: 114px;
210210
height: 23px;
211211
margin-right: 6px;
212212
border-color: #aaa;

src/nls/root/strings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ define({
284284
"COLOR_EDITOR_CURRENT_COLOR_SWATCH_TIP" : "Current Color",
285285
"COLOR_EDITOR_ORIGINAL_COLOR_SWATCH_TIP" : "Original Color",
286286
"COLOR_EDITOR_RGBA_BUTTON_TIP" : "RGBa Format",
287-
"COLOR_EDITOR_PRGBA_BUTTON_TIP" : "%RGBa Format",
288287
"COLOR_EDITOR_HEX_BUTTON_TIP" : "Hex Format",
289288
"COLOR_EDITOR_HSLA_BUTTON_TIP" : "HSLa Format",
290289
"COLOR_EDITOR_USED_COLOR_TIP_SINGULAR" : "{0} (Used {1} time)",

0 commit comments

Comments
 (0)