/** * @file XTPDockingPaneColorSet2019.cpp * * @copyright * (c) 1998-2025 Codejock Software, All Rights Reserved. * * This source file is the property of Codejock Software and must not be * redistributed by any means without the explicit written permission of * Codejock Software. * * The use of this source code is governed by the terms and conditions specified * in the Toolkit Pro license agreement. Codejock Software grants you, as a * single software developer, the limited right to use this software on one * computer only. * * Contact Information: * support@codejock.com * http://www.codejock.com * */ #include "StdAfx.h" #include "Common/XTPTypeId.h" #include "Common/XTPFramework.h" #include "Common/XTPSystemHelpers.h" #include "Common/XTPSynchro.h" #include "Common/XTPApplication.h" #include "Common/XTPSingleton.h" #include "Common/XTPColorManager.h" #include "Common/XTPTheme.h" #include "Common/XTPResourceImage.h" #include "DockingPane/XTPDockingPaneDefines.h" #include "DockingPane/XTPDockingPaneCaptionButton.h" #include "DockingPane/ColorSets/XTPDockingPaneColorSet.h" #include "DockingPane/ColorSets/XTPDockingPaneColorSet2019.h" #include "Common/Base/Diagnostic/XTPDisableNoisyWarnings.h" #ifdef _DEBUG # define new DEBUG_NEW # undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif void CXTPDockingPaneColorSet2019::RefreshMetrics(CString strSection) { if (strSection.IsEmpty()) return; BOOL bActive = strSection.Find(_T("Active")) != -1; m_clrBorder = XTPIniColor(strSection, _T("BorderColor"), bActive ? RGB(0, 122, 204) : RGB(155, 159, 184)); m_clrBackground = XTPIniColor(strSection, _T("BackgroundColor"), bActive ? RGB(246, 246, 246) : RGB(246, 246, 246)); m_clrText = XTPIniColor(strSection, _T("TextColor"), bActive ? RGB(255, 255, 255) : RGB(68, 68, 68)); m_clrCaption = XTPIniColor(strSection, _T("CaptionColor"), bActive ? RGB(0, 122, 204) : RGB(239, 239, 242)); m_clrGripper = XTPIniColor(strSection, _T("GripperColor"), bActive ? RGB(89, 168, 222) : RGB(153, 153, 153)); // define caption button normal colors. m_csCaptionButtonNormal.m_clrOutline = XTPIniColor(strSection + _T(".CaptionButton.Normal"), _T("Border"), bActive ? RGB(0, 122, 204) : RGB(239, 239, 242)); m_csCaptionButtonNormal.m_clrFill = XTPIniColor(strSection + _T(".CaptionButton.Normal"), _T("FillColor"), bActive ? RGB(255, 255, 255) : RGB(30, 30, 30)); m_csCaptionButtonNormal.m_clrBackground = XTPIniColor(strSection + _T(".CaptionButton.Normal"), _T("BackgroundColor"), bActive ? RGB(0, 122, 204) : RGB(239, 239, 242)); // define caption button hot colors. m_csCaptionButtonHot.m_clrOutline = XTPIniColor(strSection + _T(".CaptionButton.Hot"), _T("Border"), bActive ? RGB(82, 176, 239) : RGB(247, 247, 249)); m_csCaptionButtonHot.m_clrFill = XTPIniColor(strSection + _T(".CaptionButton.Hot"), _T("FillColor"), bActive ? RGB(255, 255, 255) : RGB(13, 13, 13)); m_csCaptionButtonHot.m_clrBackground = XTPIniColor(strSection + _T(".CaptionButton.Hot"), _T("BackgroundColor"), bActive ? RGB(82, 176, 239) : RGB(247, 247, 249)); // define caption button pressed colors. m_csCaptionButtonPressed.m_clrOutline = XTPIniColor(strSection + _T(".CaptionButton.Pressed"), _T("Border"), bActive ? RGB(14, 97, 152) : RGB(14, 97, 152)); m_csCaptionButtonPressed.m_clrFill = XTPIniColor(strSection + _T(".CaptionButton.Pressed"), _T("FillColor"), bActive ? RGB(255, 255, 255) : RGB(255, 255, 255)); m_csCaptionButtonPressed.m_clrBackground = XTPIniColor(strSection + _T(".CaptionButton.Pressed"), _T("BackgroundColor"), bActive ? RGB(14, 97, 152) : RGB(14, 97, 152)); }