1 /* 2 PPUserDefaultsInitialValues.h 3 4 Copyright 2013-2018 Josh Freeman 5 http://www.twilightedge.com 6 7 This file is part of PikoPixel for Mac OS X and GNUstep. 8 PikoPixel is a graphical application for drawing & editing pixel-art images. 9 10 PikoPixel is free software: you can redistribute it and/or modify it under 11 the terms of the GNU Affero General Public License as published by the 12 Free Software Foundation, either version 3 of the License, or (at your 13 option) any later version approved for PikoPixel by its copyright holder (or 14 an authorized proxy). 15 16 PikoPixel is distributed in the hope that it will be useful, but WITHOUT ANY 17 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 18 FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more 19 details. 20 21 You should have received a copy of the GNU Affero General Public License 22 along with this program. If not, see <http://www.gnu.org/licenses/>. 23 */ 24 25 #import "PPBackgroundPattern.h" 26 #import "PPGridPattern.h" 27 #import "PPSRGBUtilities.h" 28 29 30 #define kUserDefaultsInitialValue_BackgroundPattern \ 31 [PPBackgroundPattern \ 32 backgroundPatternOfType: kPPBackgroundPatternType_IsometricLines \ 33 patternSize: 11 \ 34 color1: [NSColor ppSRGBColorWithWhite: 1.0f alpha: 1.0f] \ 35 color2: [NSColor ppSRGBColorWithWhite: 0.92f alpha: 1.0f]] 36 37 #define kUserDefaultsInitialValue_GridPattern \ 38 [PPGridPattern gridPatternWithPixelGridType: kPPGridType_LargeDots \ 39 pixelGridColor: \ 40 [NSColor ppSRGBColorWithWhite: 0.73f alpha: 1.0f] \ 41 guidelineSpacingSize: NSMakeSize(8,8) \ 42 guidelineColor: \ 43 [NSColor ppSRGBColorWithWhite: 0.23f alpha: 1.0f] \ 44 shouldDisplayGuidelines: NO] 45 46 #define kUserDefaultsInitialValue_GridVisibility YES 47 48 #define kUserDefaultsInitialValue_ShouldDisplayFlattenedSaveNotice YES 49 50 51 #if defined(__APPLE__) 52 53 # define kUserDefaultsInitialValue_ColorPickerPopupPanelMode NSCrayonModeColorPanel 54 55 #elif defined(GNUSTEP) // !defined(__APPLE__) 56 57 // GNUstep's Crayon Mode is currently unimplemented; use color wheel instead 58 # define kUserDefaultsInitialValue_ColorPickerPopupPanelMode NSWheelModeColorPanel 59 60 #endif // defined(GNUSTEP) 61 62