share anything dialog: support dark theme

This commit is contained in:
Andrew Dolgov 2020-02-27 13:38:24 +03:00
parent 8c31651a21
commit b2876f6c72
1 changed files with 28 additions and 13 deletions

View File

@ -523,28 +523,43 @@ class Handler_Public extends Handler {
<head> <head>
<title><?php echo __("Share with Tiny Tiny RSS") ?></title> <title><?php echo __("Share with Tiny Tiny RSS") ?></title>
<?php <?php
echo stylesheet_tag("themes/light.css");
echo javascript_tag("lib/prototype.js"); echo javascript_tag("lib/prototype.js");
echo javascript_tag("lib/dojo/dojo.js"); echo javascript_tag("lib/dojo/dojo.js");
echo javascript_tag("js/utility.js");
echo javascript_tag("lib/dojo/tt-rss-layer.js"); echo javascript_tag("lib/dojo/tt-rss-layer.js");
echo javascript_tag("lib/scriptaculous/scriptaculous.js?load=effects,controls") echo javascript_tag("lib/scriptaculous/scriptaculous.js?load=effects,controls")
?> ?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="shortcut icon" type="image/png" href="images/favicon.png"> <link rel="shortcut icon" type="image/png" href="images/favicon.png">
<link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png"> <link rel="icon" type="image/png" sizes="72x72" href="images/favicon-72px.png">
</head> <style type="text/css">
<body class='flat ttrss_utility share_popup'> @media (prefers-color-scheme: dark) {
<script type="text/javascript"> body {
require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form', background : #303030;
'dijit/form/Select','dijit/form/TextBox','dijit/form/ValidationTextBox'],function(parser, ready){ }
ready(function() { }
parser.parse();
new Ajax.Autocompleter('labels_value', 'labels_choices', body.css_loading * {
"backend.php?op=rpc&method=completeLabels", display : none;
{ tokens: ',', paramName: "search" }); }
}); </style>
}); </head>
<body class='flat ttrss_utility share_popup css_loading'>
<script type="text/javascript">
const UtilityApp = {
init: function() {
require(['dojo/parser', "dojo/ready", 'dijit/form/Button','dijit/form/CheckBox', 'dijit/form/Form',
'dijit/form/Select','dijit/form/TextBox','dijit/form/ValidationTextBox'],function(parser, ready){
ready(function() {
parser.parse();
new Ajax.Autocompleter('labels_value', 'labels_choices',
"backend.php?op=rpc&method=completeLabels",
{ tokens: ',', paramName: "search" });
});
});
}
};
</script> </script>
<div class="content"> <div class="content">