File indexing completed on 2024-06-23 04:26:20
0001 /* 0002 * SPDX-FileCopyrightText: 2018 Anna Medonosova <anna.medonosova@gmail.com> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KIS_ARCS_CONSTANTS_H 0008 #define KIS_ARCS_CONSTANTS_H 0009 0010 #include <QString> 0011 #include <QColor> 0012 0013 static const int MIN_NUM_HUE_PIECES = 1; 0014 static const int MIN_NUM_UI_HUE_PIECES = 2; 0015 static const int MAX_NUM_HUE_PIECES = 48; 0016 static const int MIN_NUM_LIGHT_PIECES = 1; 0017 static const int MIN_NUM_UI_LIGHT_PIECES = 2; 0018 static const int MAX_NUM_LIGHT_PIECES = 30; 0019 static const int MIN_NUM_SATURATION_RINGS = 1; 0020 static const int MAX_NUM_SATURATION_RINGS = 20; 0021 0022 static const int DEFAULT_HUE_STEPS = 12; 0023 static const int DEFAULT_SATURATION_STEPS = 7; 0024 static const int DEFAULT_VALUE_SCALE_STEPS = 11; 0025 0026 static const qreal DEFAULT_LUMA_R = 0.2126; 0027 static const qreal DEFAULT_LUMA_G = 0.7152; 0028 static const qreal DEFAULT_LUMA_B = 0.0722; 0029 static const qreal DEFAULT_LUMA_GAMMA = 2.2; 0030 0031 // color scheme for the selector 0032 static const QColor COLOR_MIDDLE_GRAY = QColor(128,128,128,255); 0033 static const QColor COLOR_DARK = QColor(50,50,50,255); 0034 static const QColor COLOR_LIGHT = QColor(200,200,200,255); 0035 static const QColor COLOR_SELECTED_DARK = QColor(30,30,30,255); 0036 static const QColor COLOR_SELECTED_LIGHT = QColor(220,220,220,255); 0037 0038 static const QColor COLOR_MASK_FILL = COLOR_MIDDLE_GRAY; 0039 static const QColor COLOR_MASK_OUTLINE = COLOR_LIGHT; 0040 static const QColor COLOR_MASK_CLEAR = COLOR_LIGHT; 0041 static const QColor COLOR_NORMAL_OUTLINE = COLOR_MIDDLE_GRAY; 0042 0043 #endif // KIS_ARCS_CONSTANTS_H