1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2003-2007 - TortoiseSVN
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 * \ingroup TortoiseProc
24 * Handles the UI colors used in TortoiseSVN
65 COLORREF
GetColor(Colors col
, bool bDefault
= false);
66 void SetColor(Colors col
, COLORREF cr
);
68 //mixFactor: 0 -> baseColor, 255 -> newColor
69 static COLORREF
MixColors(COLORREF baseColor
, COLORREF newColor
, unsigned char mixFactor
);
71 static COLORREF
Lighten(COLORREF baseColor
, unsigned char amount
= 100);
72 static COLORREF
Darken(COLORREF baseColor
, unsigned char amount
= 100);
83 static COLOR_DATA m_ColorArray
[];
87 CRegDWORD m_regConflict;
88 CRegDWORD m_regModified;
89 CRegDWORD m_regMerged;
90 CRegDWORD m_regDeleted;
92 CRegDWORD m_regLastCommit;
93 CRegDWORD m_regDeletedNode;
94 CRegDWORD m_regAddedNode;
95 CRegDWORD m_regReplacedNode;
96 CRegDWORD m_regRenamedNode;
97 CRegDWORD m_regLastCommitNode;
98 CRegDWORD m_regPropertyChanged;
99 CRegDWORD m_regCurrentBranch;
100 CRegDWORD m_regLocalBranch;
101 CRegDWORD m_regRemoteBranch;
103 CRegDWORD m_regBranchLine1;
104 CRegDWORD m_regBranchLine2;
105 CRegDWORD m_regBranchLine3;
106 CRegDWORD m_regBranchLine4;
107 CRegDWORD m_regBranchLine5;
108 CRegDWORD m_regBranchLine6;
109 CRegDWORD m_regBranchLine7;
110 CRegDWORD m_regBranchLine8;