mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Finished todo list for current contribution
Fixed canvas trimming history, added proper setting management for the pixel grid.
This commit is contained in:
@ -14,7 +14,8 @@ if(!settingsFromCookie) {
|
||||
enableBrushPreview: true, //unused - performance
|
||||
enableEyedropperPreview: true, //unused - performance
|
||||
numberOfHistoryStates: 20,
|
||||
maxColorsOnImportedImage: 128
|
||||
maxColorsOnImportedImage: 128,
|
||||
pixelGridColour: '#0000FF'
|
||||
};
|
||||
}
|
||||
else{
|
||||
@ -35,6 +36,9 @@ on('click', 'save-settings', function (){
|
||||
|
||||
//save new settings to settings object
|
||||
settings.numberOfHistoryStates = getValue('setting-numberOfHistoryStates');
|
||||
settings.pixelGridColour = getValue('setting-pixelGridColour');
|
||||
// Filling pixel grid again if colour changed
|
||||
fillPixelGrid();
|
||||
|
||||
//save settings object to cookie
|
||||
var cookieValue = JSON.stringify(settings);
|
||||
|
Reference in New Issue
Block a user