64ad9a61d8
This change introduces a new component - ColorManager that is responsible for color management stuff. At the moment, it's very naive. It is useful only for updating gamma ramps. But in the future, it will be extended with more CMS-related features. The ColorManager depends on lcms2 library. This is an optional dependency. If lcms2 is not installed, the color manager won't be built. This also fixes the issue where colord and nightcolor overwrite each other's gamma ramps. With this change, the ColorManager will resolve the conflict between two.
23 lines
574 B
C++
23 lines
574 B
C++
/*
|
|
KWin - the KDE window manager
|
|
This file is part of the KDE project.
|
|
|
|
SPDX-FileCopyrightText: 2017 Roman Gilg <subdiff@gmail.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#ifndef KWIN_NIGHTCOLOR_CONSTANTS_H
|
|
#define KWIN_NIGHTCOLOR_CONSTANTS_H
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
static const int MSC_DAY = 86400000;
|
|
static const int MIN_TEMPERATURE = 1000;
|
|
static const int NEUTRAL_TEMPERATURE = 6500;
|
|
static const int DEFAULT_NIGHT_TEMPERATURE = 4500;
|
|
static const int FALLBACK_SLOW_UPDATE_TIME = 1800000; /* 30 minutes */
|
|
|
|
}
|
|
|
|
#endif // KWIN_NIGHTCOLOR_CONSTANTS_H
|