vcl/source/app/salvtables.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit d9ba2fbdc81705d387f932700289b2dda8ea81dc
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Mon Mar 6 14:39:03 2023 +0100
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Tue Mar 7 08:28:06 2023 +0000

    Resolves tdf#153933 - Minor adjustments to EntryMessageType
    
    Red adjusted to follow the standard palette and yellow to
    have the same saturation
    
    Change-Id: Ic40a37c77862471066a8575d4b22cc18dc6edac4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148348
    Reviewed-by: Vernon, Stuart Foote <vsfo...@libreoffice.org>
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index a5ac05271b51..9bbd8e5bf05d 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -3458,14 +3458,14 @@ void set_message_type(Edit* pEntry, 
weld::EntryMessageType eType)
             // relevant for GTK; see also #i75179#
             pEntry->SetForceControlBackground(true);
             pEntry->SetControlForeground(COL_BLACK);
-            pEntry->SetControlBackground(COL_YELLOW);
+            pEntry->SetControlBackground(0xffff38); // "light yellow 1"
             break;
         case weld::EntryMessageType::Error:
             // tdf#114603: enable setting the background to a different color;
             // relevant for GTK; see also #i75179#
             pEntry->SetForceControlBackground(true);
-            pEntry->SetControlForeground(COL_WHITE);
-            pEntry->SetControlBackground(0xff6563);
+            pEntry->SetControlForeground(COL_BLACK); // contrast of 5.87 to 
the red background
+            pEntry->SetControlBackground(0xff3838); // "light red 1"
             break;
     }
 }

Reply via email to