2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
12 \file GUIColorManager.h
21 #include "utils/ColorUtils.h"
30 class CGUIColorManager
33 CGUIColorManager(void);
34 virtual ~CGUIColorManager(void);
36 void Load(const std::string
&colorFile
);
38 KODI::UTILS::COLOR::Color
GetColor(const std::string
& color
) const;
42 /*! \brief Load a colors list from a XML file
43 \param filePath The path to the XML file
44 \param colors The vector to populate
45 \param sortColors if true the colors will be sorted in a hue scale
46 \return true if success, otherwise false
48 bool LoadColorsListFromXML(
49 const std::string
& filePath
,
50 std::vector
<std::pair
<std::string
, KODI::UTILS::COLOR::ColorInfo
>>& colors
,
54 bool LoadXML(CXBMCTinyXML
& xmlDoc
);
56 std::map
<std::string
, KODI::UTILS::COLOR::Color
> m_colors
;