From 4ab3854aede3882779138d91594b588e1a38c70e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 22 Feb 2020 16:22:44 +0300 Subject: [PATCH] don't generate default.css, replace with themes/light.css as a default root CSS file --- atom-to-html.xsl | 2 +- classes/handler/public.php | 10 +- classes/opml.php | 2 +- classes/pref/prefs.php | 6 +- css/default.css | 1949 -------------------------------- css/default.css.map | 1 - include/functions.php | 3 - include/sanity_check.php | 2 +- install/index.php | 2 +- js/AppBase.js | 2 +- js/utility.js | 2 +- plugins/auth_internal/init.php | 2 +- register.php | 2 +- themes/compact.css | 2 - themes/compact.css.map | 2 +- themes/compact.less | 8 +- themes/light.css | 2 - themes/light.css.map | 2 +- themes/light.less | 8 +- 19 files changed, 20 insertions(+), 1989 deletions(-) delete mode 100644 css/default.css delete mode 100644 css/default.css.map diff --git a/atom-to-html.xsl b/atom-to-html.xsl index f32d59983..79ce42891 100644 --- a/atom-to-html.xsl +++ b/atom-to-html.xsl @@ -9,7 +9,7 @@ <xsl:value-of select="atom:title"/> - + diff --git a/classes/handler/public.php b/classes/handler/public.php index fb8560a79..6d8e0ae19 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -523,7 +523,7 @@ class Handler_Public extends Handler { <?php echo __("Share with Tiny Tiny RSS") ?> Tiny Tiny RSS Database Updater - + - ".stylesheet_tag("css/default.css")." + ".stylesheet_tag("themes/light.css")." ".__("OPML Utility")." diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php index ab52918a7..ac16b5971 100644 --- a/classes/pref/prefs.php +++ b/classes/pref/prefs.php @@ -674,12 +674,12 @@ class Pref_Prefs extends Handler_Protected { $themes = array_filter($themes, "theme_exists"); asort($themes); - if (!theme_exists($value)) $value = "default.php"; + if (!theme_exists($value)) $value = ""; print "