Force rgb format, remove extra padding

This commit is contained in:
jdescottes 2014-03-26 07:50:37 +01:00
parent 8581e4ec65
commit 173936d74f
3 changed files with 10 additions and 1 deletions

View File

@ -70,6 +70,12 @@
border-right-width: 0; border-right-width: 0;
} }
.sp-picker-container {
padding: 5px;
padding-bottom: 300px;
margin-bottom: -295px;
}
.sp-slider { .sp-slider {
height: 5px; height: 5px;
left: -2px; left: -2px;

View File

@ -18,6 +18,9 @@ var Constants = {
DEFAULT_PEN_COLOR : '#000000', DEFAULT_PEN_COLOR : '#000000',
TRANSPARENT_COLOR : 'rgba(0, 0, 0, 0)', TRANSPARENT_COLOR : 'rgba(0, 0, 0, 0)',
// Used for Spectrum input
PREFERRED_COLOR_FORMAT : 'rgb',
/* /*
* Fake semi-transparent color used to highlight transparent * Fake semi-transparent color used to highlight transparent
* strokes and rectangles: * strokes and rectangles:

View File

@ -670,7 +670,7 @@
// Update the text entry input as it changes happen // Update the text entry input as it changes happen
if (opts.showInput) { if (opts.showInput) {
textInput.val(realColor.toString(format)); textInput.val(realColor.toString(Constants.PREFERRED_COLOR_FORMAT || format));
} }
if (opts.showPalette) { if (opts.showPalette) {