| 1 | // Aseprite |
| 2 | // Copyright (C) 2017 David Capello |
| 3 | // |
| 4 | // This program is distributed under the terms of |
| 5 | // the End-User License Agreement for Aseprite. |
| 6 | |
| 7 | #ifndef APP_UI_COLOR_BUTTON_OPTIONS_H_INCLUDED |
| 8 | #define APP_UI_COLOR_BUTTON_OPTIONS_H_INCLUDED |
| 9 | #pragma once |
| 10 | |
| 11 | namespace app { |
| 12 | |
| 13 | struct ColorButtonOptions { |
| 14 | bool canPinSelector; |
| 15 | bool showSimpleColors; |
| 16 | bool showIndexTab; |
| 17 | |
| 18 | ColorButtonOptions() { |
| 19 | // Default values for regular color buttons in dialogs like |
| 20 | // "Replace Color" |
| 21 | canPinSelector = false; |
| 22 | showSimpleColors = false; |
| 23 | showIndexTab = true; |
| 24 | } |
| 25 | }; |
| 26 | |
| 27 | struct ColorBarButtonsOptions : public ColorButtonOptions { |
| 28 | ColorBarButtonsOptions() { |
| 29 | // Default values for color buttons inside the color bar |
| 30 | canPinSelector = true; |
| 31 | showSimpleColors = false; |
| 32 | showIndexTab = false; |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | } // namespace app |
| 37 | |
| 38 | #endif |
| 39 | |