summaryrefslogtreecommitdiff
path: root/tools/source
diff options
context:
space:
mode:
authorStephan Schäfer <ssa@openoffice.org>2002-11-19 12:55:28 +0000
committerStephan Schäfer <ssa@openoffice.org>2002-11-19 12:55:28 +0000
commit6eaae1eb6961bd53ac88fe57f5d9ac05015d7b30 (patch)
tree935f15f2246404668ead4cc2353ae0dc4632057c /tools/source
parentb620fe7b4ee1a5a6c7095f6f2ea6f53b1763ebfd (diff)
#105267# use luminace value for isdark again
Diffstat (limited to 'tools/source')
-rw-r--r--tools/source/generic/color.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/source/generic/color.cxx b/tools/source/generic/color.cxx
index 015e842d13f2..c526a71da993 100644
--- a/tools/source/generic/color.cxx
+++ b/tools/source/generic/color.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: color.cxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: ssa $ $Date: 2002-10-24 12:10:57 $
+ * last change: $Author: ssa $ $Date: 2002-11-19 13:55:28 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -158,9 +158,7 @@ void Color::Invert()
BOOL Color::IsDark() const
{
- // #103729# favour compatibility to Word
- return GetRed()+GetGreen()+GetBlue() < 154;
- //return GetLuminance() <= 25;
+ return GetLuminance() <= 38;
}
// -----------------------------------------------------------------------