aboutsummaryrefslogtreecommitdiffstats
path: root/em-format
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2013-10-11 16:04:57 +0800
committerMilan Crha <mcrha@redhat.com>2013-10-11 16:04:57 +0800
commitbf757a668aa2224e8df74494e2a984cc60197182 (patch)
tree67f5a354d39f0c2edffcb2c2dfc3c9e6d55290bb /em-format
parent683a038c8ec82c97ebf1076e344ddab209dd8a16 (diff)
downloadgsoc2013-evolution-bf757a668aa2224e8df74494e2a984cc60197182.tar
gsoc2013-evolution-bf757a668aa2224e8df74494e2a984cc60197182.tar.gz
gsoc2013-evolution-bf757a668aa2224e8df74494e2a984cc60197182.tar.bz2
gsoc2013-evolution-bf757a668aa2224e8df74494e2a984cc60197182.tar.lz
gsoc2013-evolution-bf757a668aa2224e8df74494e2a984cc60197182.tar.xz
gsoc2013-evolution-bf757a668aa2224e8df74494e2a984cc60197182.tar.zst
gsoc2013-evolution-bf757a668aa2224e8df74494e2a984cc60197182.zip
Signature/encryption bar may not inherit text color from theme
The "signature bar" overrides background color, thus it should override also text color, to make sure the text will be always readable. This could break with dark theme, which uses light text color.
Diffstat (limited to 'em-format')
-rw-r--r--em-format/e-mail-formatter-secure-button.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/em-format/e-mail-formatter-secure-button.c b/em-format/e-mail-formatter-secure-button.c
index 91a330348f..bdda034d5b 100644
--- a/em-format/e-mail-formatter-secure-button.c
+++ b/em-format/e-mail-formatter-secure-button.c
@@ -66,8 +66,13 @@ static const struct {
{ "stock_lock-ok", N_("Encrypted, strong"), N_("This message is encrypted, with a strong encryption algorithm. It would be very difficult for an outsider to view the content of this message in a practical amount of time.") },
};
-static const GdkRGBA smime_sign_colour[5] = {
- { 0 }, { 0.53, 0.73, 0.53, 1 }, { 0.73, 0.53, 0.53, 1 }, { 0.91, 0.82, 0.13, 1 }, { 0 },
+static const GdkRGBA smime_sign_colour[6] = {
+ { 0.0, 0.0, 0.0, 0.0 },
+ { 0.53, 0.73, 0.53, 1.0 },
+ { 0.73, 0.53, 0.53, 1.0 },
+ { 0.91, 0.82, 0.13, 1.0 },
+ { 0.0, 0.0, 0.0, 0.0 },
+ { 0.0, 0.0, 0.0, 1.0 }
};
static gboolean
@@ -416,6 +421,8 @@ secure_button_get_widget_for_validity (CamelCipherValidity *validity)
gtk_button_set_image (GTK_BUTTON (button), widget);
widget = gtk_label_new (description);
+ /* make sure the text color doesn't change with theme */
+ gtk_widget_override_color (widget, GTK_STATE_FLAG_NORMAL, &smime_sign_colour[5]);
gtk_box_pack_start (GTK_BOX (layout), widget, FALSE, FALSE, 0);
g_free (description);