1 | // Aseprite |
---|---|
2 | // Copyright (C) 2019-2021 Igara Studio S.A. |
3 | // |
4 | // This program is distributed under the terms of |
5 | // the End-User License Agreement for Aseprite. |
6 | |
7 | #ifdef HAVE_CONFIG_H |
8 | #include "config.h" |
9 | #endif |
10 | |
11 | #include "app/file/file_op_config.h" |
12 | |
13 | #include "app/color_spaces.h" |
14 | |
15 | namespace app { |
16 | |
17 | void FileOpConfig::fillFromPreferences() |
18 | { |
19 | preserveColorProfile = Preferences::instance().color.manage(); |
20 | filesWithProfile = Preferences::instance().color.filesWithProfile(); |
21 | missingProfile = Preferences::instance().color.missingProfile(); |
22 | newBlend = Preferences::instance().experimental.newBlend(); |
23 | defaultSliceColor = Preferences::instance().slices.defaultColor(); |
24 | workingCS = get_working_rgb_space_from_preferences(); |
25 | rgbMapAlgorithm = Preferences::instance().quantization.rgbmapAlgorithm(); |
26 | } |
27 | |
28 | } // namespace app |
29 |