Apply custom user CSS to composer web view as well as to conversations
This allows people with dark themes to apply style to the cmoposer's body editor as well as to conversation bodies. Note that this CSS does not get sent, so WYSIWYG will break if people choose to do this. Also renames the user CSS file from user-message.css to user-style.css, but still looks for the old name for now. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=714129
This commit is contained in:
parent
092a5a3cca
commit
a6c1962e47
8 changed files with 54 additions and 43 deletions
|
|
@ -23,8 +23,8 @@ public abstract class ClientWebViewTestCase<V> : TestCase {
|
|||
true
|
||||
);
|
||||
try {
|
||||
ClientWebView.load_scripts();
|
||||
} catch (Error err) {
|
||||
ClientWebView.load_resources(GLib.File.new_for_path("/tmp"));
|
||||
} catch (GLib.Error err) {
|
||||
assert_not_reached();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@ public class ClientWebViewTest : TestCase {
|
|||
);
|
||||
}
|
||||
|
||||
public void load_resources() throws Error {
|
||||
public void load_resources() throws GLib.Error {
|
||||
try {
|
||||
ClientWebView.load_scripts();
|
||||
} catch (Error err) {
|
||||
ClientWebView.load_resources(GLib.File.new_for_path("/tmp"));
|
||||
} catch (GLib.Error err) {
|
||||
assert_not_reached();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ class ClientPageStateTest : ClientWebViewTestCase<ClientWebView> {
|
|||
add_test("content_loaded", content_loaded);
|
||||
|
||||
try {
|
||||
ClientWebView.load_scripts();
|
||||
} catch (Error err) {
|
||||
ClientWebView.load_resources(GLib.File.new_for_path("/tmp"));
|
||||
} catch (GLib.Error err) {
|
||||
assert_not_reached();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ class ConversationPageStateTest : ClientWebViewTestCase<ConversationWebView> {
|
|||
add_test("is_descendant_of_lax", is_descendant_of_lax);
|
||||
|
||||
try {
|
||||
ConversationWebView.load_resources(File.new_for_path(""));
|
||||
} catch (Error err) {
|
||||
ConversationWebView.load_resources();
|
||||
} catch (GLib.Error err) {
|
||||
assert_not_reached();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue