mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-13 22:04:36 -06:00
Core: DarkTheme changed for better blues
git-svn-id: svn://ultimatepp.org/upp/trunk@12751 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e45c53f87a
commit
0917033001
1 changed files with 5 additions and 0 deletions
|
|
@ -220,8 +220,13 @@ Color DarkTheme(Color c)
|
|||
return Null;
|
||||
double h, s, v;
|
||||
const double m = 1/255.0;
|
||||
#if 0
|
||||
RGBtoHSV(m * c.GetR(), m * c.GetG(), m * c.GetB(), h, s, v);
|
||||
return HsvColorf(h, s, (1 + s * 0.5) - v);
|
||||
#endif
|
||||
RGBtoHSV(m * c.GetR(), m * c.GetG(), m * c.GetB(), h, s, v);
|
||||
v = m * Grayscale(c);
|
||||
return HsvColorf(h, s, 1 - v);
|
||||
}
|
||||
|
||||
Color DarkThemeCached(Color c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue