]> git.wh0rd.org - tt-rss.git/commitdiff
neon updates; make more icons themeable; misc fixes
authorAndrew Dolgov <fox@bah.org.ru>
Thu, 14 Jan 2010 20:09:23 +0000 (23:09 +0300)
committerAndrew Dolgov <fox@bah.org.ru>
Thu, 14 Jan 2010 20:09:23 +0000 (23:09 +0300)
24 files changed:
feedlist.js
functions.js
functions.php
images/sign_excl.gif [deleted file]
images/sign_excl.png [new file with mode: 0644]
images/sign_info.gif [deleted file]
images/sign_info.png [new file with mode: 0644]
images/sign_quest.gif [deleted file]
images/sign_quest.png [new file with mode: 0644]
manifest.json.php
modules/popup-dialog.php
modules/pref-filters.php
prefs.php
themes/neon/images/indicator_white.gif [new file with mode: 0755]
themes/neon/images/label.png [new file with mode: 0755]
themes/neon/images/sign_excl.png [new file with mode: 0755]
themes/neon/images/sign_info.png [new file with mode: 0755]
themes/neon/images/sign_quest.png [new file with mode: 0755]
themes/neon/images/sign_quest.svg [new file with mode: 0755]
themes/neon/images/small_question.png [new file with mode: 0755]
themes/neon/images/tag.png [changed mode: 0644->0755]
themes/neon/theme.css
tt-rss.php
viewfeed.js

index 48385664cec3001c23275c96c730c10ed2de3769..19721686ffb6451244cf703e903c28ad49df061c 100644 (file)
@@ -331,7 +331,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
 
                                                if (!img.src.match("indicator_white")) {
                                                        img.alt = img.src;
-                                                       img.src = 'images/indicator_white.gif';
+                                                       img.src = getInitParam("sign_progress");
                                                }
 
                                        } else {
@@ -339,7 +339,7 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
                                                if (!$('FLL-' + feed)) {
                                                        var ll = document.createElement('img');
 
-                                                       ll.src = 'images/indicator_tiny.gif';
+                                                       ll.src = getInitParam("sign_progress");
                                                        ll.className = 'hlLoading';
                                                        ll.id = 'FLL-' + feed;
        
@@ -467,7 +467,7 @@ function feedlist_init() {
                        }
                }
 
-               if (getInitParam("theme") == "" || getInitParam("theme") == "darkroom" || 
+               if (getInitParam("theme") == "" || getInitParam("theme") == "lejla" || 
                                getInitParam("theme") == "neon") {
                        setTimeout("hide_footer()", 5000);
                }
index b2bd2a9efc7289dc379d7f893069455b9eeb7efa..7a43212dce3c76dad0fe1765b723453fd913ff40 100644 (file)
@@ -162,13 +162,13 @@ function notify_real(msg, no_hide, n_type) {
                n.className = "notify";
        } else if (n_type == 2) {
                n.className = "notifyProgress";
-               msg = "<img src='images/indicator_white.gif'> " + msg;
+               msg = "<img src='"+getInitParam("sign_progress")+"'> " + msg;
        } else if (n_type == 3) {
                n.className = "notifyError";
-               msg = "<img src='images/sign_excl.gif'> " + msg;
+               msg = "<img src='"+getInitParam("sign_excl")+"'> " + msg;
        } else if (n_type == 4) {
                n.className = "notifyInfo";
-               msg = "<img src='images/sign_info.gif'> " + msg;
+               msg = "<img src='"+getInitParam("sign_info")+"'> " + msg;
        }
 
 //     msg = "<img src='images/live_com_loading.gif'> " + msg;
@@ -526,7 +526,8 @@ function parse_counters(reply, scheduled_call) {
                                                
                                        }
 
-                                       if (row_needs_hl && getInitParam("theme") != 'neon') { 
+                                       if (row_needs_hl && getInitParam("theme") != 'neon' &&
+                                                       getInitParam("theme") != 'lejla') { 
                                                new Effect.Highlight(feedr, {duration: 1, startcolor: "#fff7d5",
                                                        queue: { position:'end', scope: 'EFQ-' + id, limit: 1 } } );
 
index cf78cdf30d4df07298c51578d438a4e41c6ef59e..656cadf7c7c41f22842fea0d552d99c1ff608301 100644 (file)
        }
 
        function theme_image($link, $filename) {
-               $theme_path = get_user_theme_path($link);
+               if ($link) {
+                       $theme_path = get_user_theme_path($link);
 
-               if ($theme_path && is_file($theme_path.$filename)) {
-                       return $theme_path.$filename;
+                       if ($theme_path && is_file($theme_path.$filename)) {
+                               return $theme_path.$filename;
+                       } else {
+                               return $filename;
+                       }
                } else {
                        return $filename;
                }
                print "<param key=\"feeds_frame_refresh\" value=\"" . FEEDS_FRAME_REFRESH . "\"/>";
                print "<param key=\"daemon_refresh_only\" value=\"true\"/>";
 
+               print "<param key=\"sign_progress\" value=\"".
+                       theme_image($link, "images/indicator_white.gif")."\"/>";
+
+               print "<param key=\"sign_excl\" value=\"".
+                       theme_image($link, "images/sign_excl.png")."\"/>";
+
+               print "<param key=\"sign_info\" value=\"".
+                       theme_image($link, "images/sign_info.png")."\"/>";
+
                print "<param key=\"on_catchup_show_next_feed\" value=\"" . 
                        get_pref($link, "ON_CATCHUP_SHOW_NEXT_FEED") . "\"/>";
 
        }
 
        function format_warning($msg, $id = "") {
+               global $link;
                return "<div class=\"warning\" id=\"$id\"> 
-                       <img src=\"images/sign_excl.gif\">$msg</div>";
+                       <img src=\"".theme_image($link, "images/sign_excl.png")."\">$msg</div>";
        }
 
        function format_notice($msg) {
-               return "<div class=\"notice\"> 
-                       <img src=\"images/sign_info.gif\">$msg</div>";
+               global $link;
+               return "<div class=\"notice\" id=\"$id\"> 
+                       <img src=\"".theme_image($link, "images/sign_info.png")."\">$msg</div>";
        }
 
        function format_error($msg) {
-               return "<div class=\"error\"> 
-                       <img src=\"images/sign_excl.gif\">$msg</div>";
+               global $link;
+               return "<div class=\"error\" id=\"$id\"> 
+                       <img src=\"".theme_image($link, "images/sign_excl.png")."\">$msg</div>";
        }
 
        function print_notice($msg) {
 
                                if ($line["last_read"] == "" && !sql_bool_to_bool($line["unread"])) {
        
-                                       $update_pic = "<img id='FUPDPIC-$id' src=\"images/updated.png\" 
+                                       $update_pic = "<img id='FUPDPIC-$id' src=\"".
+                                               theme_image($link, 'images/updated.png')."\" 
                                                alt=\"Updated\">";
                                } else {
                                        $update_pic = "<img id='FUPDPIC-$id' src=\"images/blank_icon.gif\" 
 
                                $score = $line["score"];
 
-                               $score_pic = get_score_pic($score);
+                               $score_pic = theme_image($link, 
+                                       "images/" . get_score_pic($score));
 
 /*                             $score_title = __("(Click to change)");
                                $score_pic = "<img class='hlScorePic' src=\"images/$score_pic\" 
                                        onclick=\"adjustArticleScore($id, $score)\" title=\"$score $score_title\">"; */
 
-                               $score_pic = "<img class='hlScorePic' src=\"images/$score_pic\" 
+                               $score_pic = "<img class='hlScorePic' src=\"$score_pic\" 
                                        title=\"$score\">";
 
                                if ($score > 500) {
                if ($score > 100) { 
                        return "score_high.png"; 
                } else if ($score > 0) { 
-                       return "score_half_high.png"; 
+                       return "score_half_high.png";
                } else if ($score < -100) {
-                       return "score_low.png"; 
+                       return "score_low.png";
                } else if ($score < 0) {
-                       return "score_half_low.png"; 
+                       return "score_half_low.png";
                } else { 
-                       return "score_neutral.png"; 
+                       return "score_neutral.png";
                }
        }
 
diff --git a/images/sign_excl.gif b/images/sign_excl.gif
deleted file mode 100644 (file)
index 72aced5..0000000
Binary files a/images/sign_excl.gif and /dev/null differ
diff --git a/images/sign_excl.png b/images/sign_excl.png
new file mode 100644 (file)
index 0000000..383f53d
Binary files /dev/null and b/images/sign_excl.png differ
diff --git a/images/sign_info.gif b/images/sign_info.gif
deleted file mode 100644 (file)
index 97effe2..0000000
Binary files a/images/sign_info.gif and /dev/null differ
diff --git a/images/sign_info.png b/images/sign_info.png
new file mode 100644 (file)
index 0000000..0d7e7ab
Binary files /dev/null and b/images/sign_info.png differ
diff --git a/images/sign_quest.gif b/images/sign_quest.gif
deleted file mode 100644 (file)
index 335a19f..0000000
Binary files a/images/sign_quest.gif and /dev/null differ
diff --git a/images/sign_quest.png b/images/sign_quest.png
new file mode 100644 (file)
index 0000000..a19f84f
Binary files /dev/null and b/images/sign_quest.png differ
index 066cbd0e80970a54ced766d5244522dde3e1a092..b322df26268bf3adf2e37b30a94ea4f3191b1856 100644 (file)
@@ -35,9 +35,9 @@
       "images/shadow-grid.gif",
       "images/shadow.png",
       "images/shadow_white.png",
-      "images/sign_excl.gif",
-      "images/sign_info.gif",
-      "images/sign_quest.gif",
+      "images/sign_excl.png",
+      "images/sign_info.png",
+      "images/sign_quest.png",
       "images/small_question.png",
       "images/tag.png",
       "images/toolbar.png",
index dbf65bbbc8dd4ba342568c34fe02c01d58112ef3..78bc3ba707a3b6b6605c48790b6c2a326eafcc14 100644 (file)
                        print "
                                <div style='float : right'>
                                <img style='display : none' 
-                                       id='feed_browser_spinner' src='images/indicator_white.gif'>
+                                       id='feed_browser_spinner' src='".
+                                       theme_image($link, 'images/indicator_white.gif')."'>
                                <input name=\"search\" size=\"20\" type=\"search\"
                                        onchange=\"javascript:updateFeedBrowser()\" value=\"$browser_search\">
                                <button onclick=\"javascript:updateFeedBrowser()\">".__('Search')."</button>
index 0a1cc68a5fee8252643be3112c214e254d229124..96e6365d67ee0bc121ed2bf9705d1822cd961f34 100644 (file)
                        <button onclick=\"javascript:updateFilterList()\">".__('Search')."</button>
                        &nbsp;
                        <a class='helpLinkPic' href=\"javascript:displayHelpInfobox(2)\">
-                       <img src='images/sign_quest.gif'></a>
+                       <img style='vertical-align : top;' src='".theme_image($link, "images/sign_quest.png")."'></a>
                </div>";
 
                print "<button onclick=\"return displayDlg('quickAddFilter', false)\">".
                                        $line["action_param"] = "&mdash;";
                                } else if ($line["action_name"] == "score") {
 
-                                       $score_pic = get_score_pic($line["action_param"]);
+                                       $score_pic = theme_image($link,
+                                               "images/" . get_score_pic($line["action_param"]));
 
-                                       $score_pic = "<img class='hlScorePic' src=\"images/$score_pic\">";
+                                       $score_pic = "<img class='hlScorePic' src=\"$score_pic\">";
 
                                        $line["action_param"] = "$score_pic " . $line["action_param"];
 
index 7d1ff3379a53ccb4377cfdf8b6c62aa5d8cb33a4..86c2110464405e6ea781bffe393c778d23ddc0a6 100644 (file)
--- a/prefs.php
+++ b/prefs.php
@@ -99,7 +99,7 @@
 
 <div id="prefTabs">
                <div class='prefKbdHelp'>
-                       <img src="images/small_question.png" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php echo __("Keyboard shortcuts") ?></a>
+                       <img src="<?php echo theme_image($link, 'images/small_question.png') ?>" alt="?"/> <a href='#' onclick="Effect.Appear('hotkey_help_overlay', {duration: 0.3})"><?php echo __("Keyboard shortcuts") ?></a>
                </div>
 
                <div class="firstTab">&nbsp;</div>
diff --git a/themes/neon/images/indicator_white.gif b/themes/neon/images/indicator_white.gif
new file mode 100755 (executable)
index 0000000..93daf4c
Binary files /dev/null and b/themes/neon/images/indicator_white.gif differ
diff --git a/themes/neon/images/label.png b/themes/neon/images/label.png
new file mode 100755 (executable)
index 0000000..3b3a21c
Binary files /dev/null and b/themes/neon/images/label.png differ
diff --git a/themes/neon/images/sign_excl.png b/themes/neon/images/sign_excl.png
new file mode 100755 (executable)
index 0000000..01fd21e
Binary files /dev/null and b/themes/neon/images/sign_excl.png differ
diff --git a/themes/neon/images/sign_info.png b/themes/neon/images/sign_info.png
new file mode 100755 (executable)
index 0000000..06bfc7d
Binary files /dev/null and b/themes/neon/images/sign_info.png differ
diff --git a/themes/neon/images/sign_quest.png b/themes/neon/images/sign_quest.png
new file mode 100755 (executable)
index 0000000..25868ab
Binary files /dev/null and b/themes/neon/images/sign_quest.png differ
diff --git a/themes/neon/images/sign_quest.svg b/themes/neon/images/sign_quest.svg
new file mode 100755 (executable)
index 0000000..038f46e
--- /dev/null
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="32px"
+   height="32px"
+   id="svg2816"
+   version="1.1"
+   inkscape:version="0.47 r22583"
+   inkscape:export-filename="C:\Users\fox\Desktop\small_question.png"
+   inkscape:export-xdpi="50.52"
+   inkscape:export-ydpi="50.52"
+   sodipodi:docname="sign_quest.svg">
+  <defs
+     id="defs2818">
+    <linearGradient
+       id="linearGradient6244">
+      <stop
+         style="stop-color:#b077ec;stop-opacity:1;"
+         offset="0"
+         id="stop6246" />
+      <stop
+         style="stop-color:#3c2c4c;stop-opacity:1;"
+         offset="1"
+         id="stop6248" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient6148">
+      <stop
+         style="stop-color:#dd80f1;stop-opacity:1;"
+         offset="0"
+         id="stop6150" />
+      <stop
+         style="stop-color:#db7dee;stop-opacity:1;"
+         offset="1"
+         id="stop6152" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4018">
+      <stop
+         style="stop-color:#dd80f1;stop-opacity:1;"
+         offset="0"
+         id="stop4020" />
+      <stop
+         id="stop5628"
+         offset="0.49594909"
+         style="stop-color:#dd80f1;stop-opacity:1;" />
+      <stop
+         style="stop-color:#d050eb;stop-opacity:1;"
+         offset="0.49594909"
+         id="stop5644" />
+      <stop
+         style="stop-color:#c320e6;stop-opacity:1;"
+         offset="1"
+         id="stop4022" />
+    </linearGradient>
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 16 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="32 : 16 : 1"
+       inkscape:persp3d-origin="16 : 10.666667 : 1"
+       id="perspective2824" />
+    <mask
+       maskUnits="userSpaceOnUse"
+       id="mask3664">
+      <path
+         transform="translate(-0.982335,-9.019628)"
+         d="m 13.752699,0.1187433 a 13.752699,13.752699 0 1 1 -27.505398,0 13.752699,13.752699 0 1 1 27.505398,0 z"
+         sodipodi:ry="13.752699"
+         sodipodi:rx="13.752699"
+         sodipodi:cy="0.1187433"
+         sodipodi:cx="0"
+         id="path3666"
+         style="fill:#dd80f1;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         sodipodi:type="arc" />
+    </mask>
+    <filter
+       id="filter6120"
+       inkscape:label="Drop shadow"
+       width="1.5"
+       height="1.5"
+       x="-.25"
+       y="-.25">
+      <feGaussianBlur
+         id="feGaussianBlur6122"
+         in="SourceAlpha"
+         stdDeviation="1,000000"
+         result="blur" />
+      <feColorMatrix
+         id="feColorMatrix6124"
+         result="bluralpha"
+         type="matrix"
+         values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0,650000 0 " />
+      <feOffset
+         id="feOffset6126"
+         in="bluralpha"
+         dx="1,000000"
+         dy="1,000000"
+         result="offsetBlur" />
+      <feMerge
+         id="feMerge6128">
+        <feMergeNode
+           id="feMergeNode6130"
+           in="offsetBlur" />
+        <feMergeNode
+           id="feMergeNode6132"
+           in="SourceGraphic" />
+      </feMerge>
+    </filter>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#202020"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="16"
+     inkscape:cx="5.2298075"
+     inkscape:cy="16.407775"
+     inkscape:current-layer="layer1"
+     showgrid="true"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:window-width="1920"
+     inkscape:window-height="1138"
+     inkscape:window-x="-8"
+     inkscape:window-y="-8"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata2821">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <path
+       sodipodi:type="arc"
+       style="fill:#2a0a4a;fill-opacity:1;fill-rule:evenodd;stroke:#b077ec;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+       id="path2826"
+       sodipodi:cx="0"
+       sodipodi:cy="0.1187433"
+       sodipodi:rx="13.752699"
+       sodipodi:ry="13.752699"
+       d="m 13.752699,0.1187433 a 13.752699,13.752699 0 1 1 -27.505398,0 13.752699,13.752699 0 1 1 27.505398,0 z"
+       transform="translate(16,15.881257)" />
+    <text
+       xml:space="preserve"
+       style="font-size:25.01383018px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;fill:#b077ec;fill-opacity:1;stroke:none;font-family:Segoe UI;-inkscape-font-specification:Segoe UI"
+       x="8.2831488"
+       y="25.972761"
+       id="text3668"
+       inkscape:export-xdpi="67"
+       inkscape:export-ydpi="67"
+       transform="scale(1.0422429,0.95946923)"><tspan
+         sodipodi:role="line"
+         id="tspan3670"
+         x="8.2831488"
+         y="25.972761"
+         style="font-size:28px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;text-anchor:start;fill:#b077ec;fill-opacity:1;stroke:none;font-family:Times New Roman;-inkscape-font-specification:Times New Roman Bold">?</tspan></text>
+    <text
+       xml:space="preserve"
+       style="font-size:40px;font-style:normal;font-weight:normal;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans"
+       x="39.561337"
+       y="38.519138"
+       id="text6156"><tspan
+         sodipodi:role="line"
+         id="tspan6158"></tspan></text>
+  </g>
+</svg>
diff --git a/themes/neon/images/small_question.png b/themes/neon/images/small_question.png
new file mode 100755 (executable)
index 0000000..f02f740
Binary files /dev/null and b/themes/neon/images/small_question.png differ
old mode 100644 (file)
new mode 100755 (executable)
index 0ce354e..d7e477a
Binary files a/themes/neon/images/tag.png and b/themes/neon/images/tag.png differ
index 9f67981a36d0f0d08873e1ec716e6f6dc537a326..7c9eb7be2e89f14dfdfd9bbb5b655f62dd3960ef 100644 (file)
@@ -321,7 +321,13 @@ div.notice {
        color : gray;
 }
 
-.notify, .notifyInfo, .notifyProgress {
+div.error, div.warning {
+       background : #3c2c4c;
+       border : 1px solid #404040;
+       color : #b077ec:;
+}
+
+.notify, .notifyInfo, .notifyProgress, .notifyError {
        border-color : #b077ec;
        background-color : #3c2c4c;
        color : gray;
@@ -565,3 +571,8 @@ div.colorPicker {
        color : gray;
 }
 
+ul.feedErrorsList {
+       border : 1px solid #404040;
+       background-color : #303030;
+}
+
index 9d4305fe12ebf42fcdfa0eac6cdf647cd60af68e..0d3186d3499342c06e27ed04ae73e01564d83fde 100644 (file)
        </div>
 
        <img id="newVersionIcon" style="display:none;" onclick="javascript:explainError(2)" 
-               width="13" height="13" src="images/new_version.png" 
+               width="13" height="13" 
+               src="<?php echo theme_image($link, 'images/new_version.png') ?>"
                title="<?php echo __('New version of Tiny Tiny RSS is available!') ?>" 
                alt="new_version_icon"/>
 
index 028ad68f1e00212f23b435265ce18105d2eb8bc5..5421ebd883d293abac40b2fc7c4a2e8dd2cb29ef 100644 (file)
@@ -497,7 +497,7 @@ function view(id) {
                        var upic = $('FUPDPIC-' + id);
 
                        if (upic) {     
-                               upic.src = 'images/indicator_white.gif'; 
+                               upic.src = getInitParam("sign_progress");
                        }
 
                } else if (cached_article && article_is_unread) {