diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-12 16:57:18 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-13 22:23:53 +0100 |
commit | de1b926fa294273caefb29a507e117b8487e882b (patch) | |
tree | f2c363d7199373bb60aaae7764ee8417ead267b4 /sfx2/source | |
parent | cfa0b631d00f1c17d15646ddcf78093b7f4df03b (diff) |
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@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/dialog/infobar.cxx | 22 |
1 files changed, 10 insertions, 12 deletions
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 |