Implement dark mode using color-scheme CSS property
This commit is contained in:
parent
0ab9f5a72d
commit
2ef32d2d2d
5 changed files with 28 additions and 6 deletions
|
|
@ -12,18 +12,23 @@ public class Accounts.SignatureWebView : Components.WebView {
|
|||
|
||||
|
||||
private static WebKit.UserScript? app_script = null;
|
||||
private static WebKit.UserStyleSheet? app_stylesheet = null;
|
||||
|
||||
public static new void load_resources()
|
||||
throws GLib.Error {
|
||||
SignatureWebView.app_script = Components.WebView.load_app_script(
|
||||
"signature-web-view.js"
|
||||
);
|
||||
SignatureWebView.app_stylesheet = Components.WebView.load_app_stylesheet(
|
||||
"signature-web-view.css"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public SignatureWebView(Application.Configuration config) {
|
||||
base(config);
|
||||
this.user_content_manager.add_script(SignatureWebView.app_script);
|
||||
this.user_content_manager.add_style_sheet(SignatureWebView.app_stylesheet);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue