[evolution] I#659 - Hardcoded text colors do not work well in dark mode
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] I#659 - Hardcoded text colors do not work well in dark mode
- Date: Tue, 15 Oct 2019 13:58:21 +0000 (UTC)
commit ff464efd8e726b7192a693b687a56a092a0baf49
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 15 15:58:34 2019 +0200
I#659 - Hardcoded text colors do not work well in dark mode
Closes https://gitlab.gnome.org/GNOME/evolution/issues/659
src/e-util/e-web-view.c | 2 +-
src/em-format/e-mail-formatter-secure-button.c | 12 +++++++-----
2 files changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/src/e-util/e-web-view.c b/src/e-util/e-web-view.c
index 411a566c2d..db2a023f27 100644
--- a/src/e-util/e-web-view.c
+++ b/src/e-util/e-web-view.c
@@ -1973,7 +1973,7 @@ web_view_submit_alert (EAlertSink *alert_sink,
" cellpadding='1' cellspacing='0'>"
"<tr>"
"<td>"
- "<table bgcolor='#dddddd' width='100%' cellpadding='6'>"
+ "<table bgcolor='#dddddd' width='100%' cellpadding='6' style=\"color:#000000;\">"
"<tr>");
g_string_append_printf (
diff --git a/src/em-format/e-mail-formatter-secure-button.c b/src/em-format/e-mail-formatter-secure-button.c
index c7e1c1d0f7..f456204aa9 100644
--- a/src/em-format/e-mail-formatter-secure-button.c
+++ b/src/em-format/e-mail-formatter-secure-button.c
@@ -386,16 +386,18 @@ secure_button_format_validity (EMailPart *part,
g_string_append (html, "<table width=\"100%\" style=\"margin-bottom:4px; vertical-align:middle;");
if (validity->sign.status != CAMEL_CIPHER_VALIDITY_SIGN_NONE &&
- smime_sign_colour[info_index].alpha > 1e-9)
- g_string_append_printf (html, " background:#%06x;",
- e_rgba_to_value (&smime_sign_colour[info_index]));
+ smime_sign_colour[info_index].alpha > 1e-9) {
+ g_string_append_printf (html, " background:#%06x; color:#%06x;",
+ e_rgba_to_value (&smime_sign_colour[info_index]),
+ e_rgba_to_value (&smime_sign_colour[5]));
+ }
g_string_append (html, "\"><tr>");
g_string_append_printf (html,
"<td style=\"width:1px;\"><button type=\"button\" class=\"secure-button\"
id=\"secure-button\" value=\"%p:%p\" accesskey=\"\" style=\"vertical-align:middle;\">"
- "<img src=\"gtk-stock://%s?size=%d\" width=\"%dpx\" height=\"%dpx\"
style=\"vertical-align:middle;\"></button></td><td><span style=\"color:#%06x; vertical-align:middle;\">",
+ "<img src=\"gtk-stock://%s?size=%d\" width=\"%dpx\" height=\"%dpx\"
style=\"vertical-align:middle;\"></button></td><td><span style=\"vertical-align:middle;\">",
part, validity, icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR,
- icon_width, icon_height, e_rgba_to_value (&smime_sign_colour[5]));
+ icon_width, icon_height);
g_queue_foreach (&validity->sign.signers, add_photo_cb, html);
g_queue_foreach (&validity->encrypt.encrypters, add_photo_cb, html);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]