Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_arcs_constants.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Anna Medonosova <anna.medonosova@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KIS_ARCS_CONSTANTS_H
8#define KIS_ARCS_CONSTANTS_H
9
10#include <QColor>
11
12static const int MIN_NUM_HUE_PIECES = 1;
13static const int MIN_NUM_UI_HUE_PIECES = 2;
14static const int MAX_NUM_HUE_PIECES = 48;
15static const int MIN_NUM_LIGHT_PIECES = 1;
16static const int MIN_NUM_UI_LIGHT_PIECES = 2;
17static const int MAX_NUM_LIGHT_PIECES = 30;
18static const int MIN_NUM_SATURATION_RINGS = 1;
19static const int MAX_NUM_SATURATION_RINGS = 20;
20
21static const int DEFAULT_HUE_STEPS = 12;
22static const int DEFAULT_SATURATION_STEPS = 7;
23static const int DEFAULT_VALUE_SCALE_STEPS = 11;
24
25static const qreal DEFAULT_LUMA_R = 0.2126;
26static const qreal DEFAULT_LUMA_G = 0.7152;
27static const qreal DEFAULT_LUMA_B = 0.0722;
28static const qreal DEFAULT_LUMA_GAMMA = 2.2;
29
30// color scheme for the selector
31static const QColor COLOR_MIDDLE_GRAY = QColor(128,128,128,255);
32static const QColor COLOR_DARK = QColor(50,50,50,255);
33static const QColor COLOR_LIGHT = QColor(200,200,200,255);
34static const QColor COLOR_SELECTED_DARK = QColor(30,30,30,255);
35static const QColor COLOR_SELECTED_LIGHT = QColor(220,220,220,255);
36
37static const QColor COLOR_MASK_FILL = COLOR_MIDDLE_GRAY;
38static const QColor COLOR_MASK_OUTLINE = COLOR_LIGHT;
39static const QColor COLOR_MASK_CLEAR = COLOR_LIGHT;
41
42#endif // KIS_ARCS_CONSTANTS_H
static const int MIN_NUM_SATURATION_RINGS
static const qreal DEFAULT_LUMA_R
static const int MAX_NUM_HUE_PIECES
static const int DEFAULT_VALUE_SCALE_STEPS
static const QColor COLOR_DARK
static const int MAX_NUM_LIGHT_PIECES
static const int MIN_NUM_HUE_PIECES
static const QColor COLOR_MASK_CLEAR
static const int DEFAULT_SATURATION_STEPS
static const QColor COLOR_SELECTED_LIGHT
static const QColor COLOR_MIDDLE_GRAY
static const QColor COLOR_LIGHT
static const int MAX_NUM_SATURATION_RINGS
static const qreal DEFAULT_LUMA_GAMMA
static const qreal DEFAULT_LUMA_B
static const int MIN_NUM_UI_HUE_PIECES
static const int MIN_NUM_UI_LIGHT_PIECES
static const int DEFAULT_HUE_STEPS
static const QColor COLOR_MASK_FILL
static const int MIN_NUM_LIGHT_PIECES
static const QColor COLOR_NORMAL_OUTLINE
static const qreal DEFAULT_LUMA_G
static const QColor COLOR_SELECTED_DARK
static const QColor COLOR_MASK_OUTLINE