Finished todo list for current contribution

Fixed canvas trimming history, added proper setting management for the pixel grid.
This commit is contained in:
unsettledgames
2020-09-29 19:10:50 +02:00
parent c7cacc37ca
commit aabc715086
6 changed files with 28 additions and 17 deletions

View File

@ -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);