mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-12-08 22:41:00 +01:00
Fix default dark mode CSS path in UtilityJS, use configurable default themes in bookmarklets.
This commit is contained in:
parent
4758c5f0bf
commit
b803f85ec2
@ -8,7 +8,7 @@ window.addEventListener("load", function() {
|
|||||||
console.log("night mode changed to", is_night);
|
console.log("night mode changed to", is_night);
|
||||||
|
|
||||||
const light_theme = typeof __default_light_theme != 'undefined' ? __default_light_theme : 'themes/light.css';
|
const light_theme = typeof __default_light_theme != 'undefined' ? __default_light_theme : 'themes/light.css';
|
||||||
const dark_theme = typeof __default_dark_theme != 'undefined' ? __default_dark_theme : 'themes/dark.css';
|
const dark_theme = typeof __default_dark_theme != 'undefined' ? __default_dark_theme : 'themes/night.css';
|
||||||
|
|
||||||
if (link) {
|
if (link) {
|
||||||
const css_override = is_night ? dark_theme : light_theme;
|
const css_override = is_night ? dark_theme : light_theme;
|
||||||
|
|||||||
@ -60,6 +60,9 @@ class Bookmarklets extends Plugin {
|
|||||||
</head>
|
</head>
|
||||||
<body class='flat ttrss_utility css_loading'>
|
<body class='flat ttrss_utility css_loading'>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
const __default_light_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_LIGHT_THEME), 'themes/light.css') ?>";
|
||||||
|
const __default_dark_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_DARK_THEME), 'themes/night.css') ?>";
|
||||||
|
|
||||||
const UtilityApp = {
|
const UtilityApp = {
|
||||||
init: function() {
|
init: function() {
|
||||||
require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form',
|
require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form',
|
||||||
@ -207,6 +210,9 @@ class Bookmarklets extends Plugin {
|
|||||||
</head>
|
</head>
|
||||||
<body class='flat ttrss_utility share_popup css_loading'>
|
<body class='flat ttrss_utility share_popup css_loading'>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
const __default_light_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_LIGHT_THEME), 'themes/light.css') ?>";
|
||||||
|
const __default_dark_theme = "<?= get_theme_path(Config::get(Config::DEFAULT_DARK_THEME), 'themes/night.css') ?>";
|
||||||
|
|
||||||
const UtilityApp = {
|
const UtilityApp = {
|
||||||
init: function() {
|
init: function() {
|
||||||
require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form',
|
require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user