summaryrefslogtreecommitdiff
path: root/prefs.php
diff options
context:
space:
mode:
Diffstat (limited to 'prefs.php')
-rw-r--r--prefs.php16
1 files changed, 13 insertions, 3 deletions
diff --git a/prefs.php b/prefs.php
index 38e201fec..d75fc5553 100644
--- a/prefs.php
+++ b/prefs.php
@@ -40,8 +40,6 @@
$theme = get_pref("USER_CSS_THEME", false, false);
if ($theme && theme_exists("$theme")) {
echo stylesheet_tag(get_theme_path($theme), 'theme_css');
- } else {
- echo stylesheet_tag("css/default.css", 'theme_css');
}
}
?>
@@ -99,10 +97,22 @@
?>
</script>
+ <style type="text/css">
+ @media (prefers-color-scheme: dark) {
+ body {
+ background : #303030;
+ }
+ }
+
+ body.css_loading * {
+ display : none;
+ }
+ </style>
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
-<body class="flat ttrss_main ttrss_prefs">
+<body class="flat ttrss_main ttrss_prefs css_loading">
<div id="notify" class="notify"></div>
<div id="cmdline" style="display : none"></div>