mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Force rgb format, remove extra padding
This commit is contained in:
parent
8581e4ec65
commit
173936d74f
@ -70,6 +70,12 @@
|
||||
border-right-width: 0;
|
||||
}
|
||||
|
||||
.sp-picker-container {
|
||||
padding: 5px;
|
||||
padding-bottom: 300px;
|
||||
margin-bottom: -295px;
|
||||
}
|
||||
|
||||
.sp-slider {
|
||||
height: 5px;
|
||||
left: -2px;
|
||||
|
@ -18,6 +18,9 @@ var Constants = {
|
||||
DEFAULT_PEN_COLOR : '#000000',
|
||||
TRANSPARENT_COLOR : 'rgba(0, 0, 0, 0)',
|
||||
|
||||
// Used for Spectrum input
|
||||
PREFERRED_COLOR_FORMAT : 'rgb',
|
||||
|
||||
/*
|
||||
* Fake semi-transparent color used to highlight transparent
|
||||
* strokes and rectangles:
|
||||
|
@ -670,7 +670,7 @@
|
||||
|
||||
// Update the text entry input as it changes happen
|
||||
if (opts.showInput) {
|
||||
textInput.val(realColor.toString(format));
|
||||
textInput.val(realColor.toString(Constants.PREFERRED_COLOR_FORMAT || format));
|
||||
}
|
||||
|
||||
if (opts.showPalette) {
|
||||
|
Loading…
Reference in New Issue
Block a user