]> spindle.queued.net Git - midori/commitdiff
Work around black border around widgets on Win32
authorPaweł Forysiuk <tuxator@o2.pl>
Sat, 14 Apr 2012 01:25:01 +0000 (03:25 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 14 Apr 2012 01:28:11 +0000 (03:28 +0200)
midori/midori-websettings.c

index 7b13a8795c946b957f55aec89aabc4046fffaf2f..bc4667932f2e574b2d81841e7b6c1cbbbc7c0fa3 100644 (file)
@@ -1227,6 +1227,14 @@ midori_web_settings_init (MidoriWebSettings* web_settings)
         "* { -webkit-box-shadow: none !important; }");
     #endif
 
+    #if defined (_WIN32) && WEBKIT_CHECK_VERSION (1, 7, 1)
+    /* Try to work-around black borders on native widgets and GTK+2 on Win32 */
+    midori_web_settings_add_style (web_settings, "black-widgets-workaround",
+    "input[type='checkbox'] { -webkit-appearance: checkbox !important }"
+    " input[type='radio'] { -webkit-appearance: radio !important }"
+    " * { -webkit-appearance: none !important }");
+    #endif
+
     g_signal_connect (web_settings, "notify::default-encoding",
                       G_CALLBACK (notify_default_encoding_cb), NULL);
     g_signal_connect (web_settings, "notify::default-font-family",