[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara
caolanm at redhat.com
Sat Jan 13 21:24:33 UTC 2018
sfx2/source/dialog/infobar.cxx | 22 ++++++++++------------
1 file changed, 10 insertions(+), 12 deletions(-)
New commits:
commit de1b926fa294273caefb29a507e117b8487e882b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Jan 12 16:57:18 2018 +0000
Foreground colors adjusted
to comply with WCAG 2.0 level AAA requiring a contrast of 7:1
Change-Id: I71edc354f3f9a3d534452bb378743d1f9639a08f
Reviewed-on: https://gerrit.libreoffice.org/47825
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index ea466d4c374f..67c24f3e41b3 100644
--- a/sfx2/source/dialog/infobar.cxx
+++ b/sfx2/source/dialog/infobar.cxx
@@ -36,27 +36,25 @@ const long INFO_BAR_BASE_HEIGHT = 40;
void GetInfoBarColors(InfoBarType ibType, BColor& rBackgroundColor, BColor& rForegroundColor, BColor& rMessageColor)
{
+ rMessageColor = basegfx::BColor(0.0, 0.0, 0.0);
+
switch (ibType)
{
- case InfoBarType::Info: // blue; #00529B/0,82,155; #BDE5F8/189,229,248
+ case InfoBarType::Info: // blue; #004785/0,71,133; #BDE5F8/189,229,248
rBackgroundColor = basegfx::BColor(0.741, 0.898, 0.973);
- rForegroundColor = basegfx::BColor(0.0, 0.322, 0.608);
- rMessageColor = basegfx::BColor(0.0, 0.322, 0.608);
+ rForegroundColor = basegfx::BColor(0.0, 0.278, 0.522);
break;
- case InfoBarType::Success: // green; #4F8A10/79,138,16; #DFF2BF/223,242,191
+ case InfoBarType::Success: // green; #32550C/50,85,12; #DFF2BF/223,242,191
rBackgroundColor = basegfx::BColor(0.874,0.949,0.749);
- rForegroundColor = basegfx::BColor(0.31,0.541,0.063);
- rMessageColor = basegfx::BColor(0.31,0.541,0.063);
+ rForegroundColor = basegfx::BColor(0.196,0.333,0.047);
break;
- case InfoBarType::Warning: // orange; #9F6000/159,96,0; #FEEFB3/254,239,179
+ case InfoBarType::Warning: // orange; #704300/112,67,0; #FEEFB3/254,239,179
rBackgroundColor = basegfx::BColor(0.996,0.937,0.702);
- rForegroundColor = basegfx::BColor(0.623,0.376,0.0);
- rMessageColor = basegfx::BColor(0.623,0.376,0.0);
+ rForegroundColor = basegfx::BColor(0.439,0.263,0.0);
break;
- case InfoBarType::Danger: // red; #D8000C/216,0,12; #FFBABA/255,186,186
+ case InfoBarType::Danger: // red; #7A0006/122,0,6; #FFBABA/255,186,186
rBackgroundColor = basegfx::BColor(1.0,0.729,0.729);
- rForegroundColor = basegfx::BColor(0.847,0.0,0.047);
- rMessageColor = basegfx::BColor(0.847,0.0,0.047);
+ rForegroundColor = basegfx::BColor(0.478,0.0,0.024);
break;
}//switch
More information about the Libreoffice-commits
mailing list