From 883fee8df09668f268fc95a724fa01e77f02fbd4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 14 Jan 2010 23:09:23 +0300 Subject: neon updates; make more icons themeable; misc fixes --- feedlist.js | 6 +- functions.js | 9 +- functions.php | 48 ++++++--- images/sign_excl.gif | Bin 775 -> 0 bytes images/sign_excl.png | Bin 0 -> 966 bytes images/sign_info.gif | Bin 1200 -> 0 bytes images/sign_info.png | Bin 0 -> 1405 bytes images/sign_quest.gif | Bin 1215 -> 0 bytes images/sign_quest.png | Bin 0 -> 1415 bytes manifest.json.php | 6 +- modules/popup-dialog.php | 3 +- modules/pref-filters.php | 7 +- prefs.php | 2 +- themes/neon/images/indicator_white.gif | Bin 0 -> 1849 bytes themes/neon/images/label.png | Bin 0 -> 1251 bytes themes/neon/images/sign_excl.png | Bin 0 -> 930 bytes themes/neon/images/sign_info.png | Bin 0 -> 914 bytes themes/neon/images/sign_quest.png | Bin 0 -> 1075 bytes themes/neon/images/sign_quest.svg | 187 +++++++++++++++++++++++++++++++++ themes/neon/images/small_question.png | Bin 0 -> 712 bytes themes/neon/images/tag.png | Bin 185 -> 1247 bytes themes/neon/theme.css | 13 ++- tt-rss.php | 3 +- viewfeed.js | 2 +- 24 files changed, 253 insertions(+), 33 deletions(-) delete mode 100644 images/sign_excl.gif create mode 100644 images/sign_excl.png delete mode 100644 images/sign_info.gif create mode 100644 images/sign_info.png delete mode 100644 images/sign_quest.gif create mode 100644 images/sign_quest.png create mode 100755 themes/neon/images/indicator_white.gif create mode 100755 themes/neon/images/label.png create mode 100755 themes/neon/images/sign_excl.png create mode 100755 themes/neon/images/sign_info.png create mode 100755 themes/neon/images/sign_quest.png create mode 100755 themes/neon/images/sign_quest.svg create mode 100755 themes/neon/images/small_question.png mode change 100644 => 100755 themes/neon/images/tag.png diff --git a/feedlist.js b/feedlist.js index 48385664c..19721686f 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); } diff --git a/functions.js b/functions.js index b2bd2a9ef..7a43212dc 100644 --- a/functions.js +++ b/functions.js @@ -162,13 +162,13 @@ function notify_real(msg, no_hide, n_type) { n.className = "notify"; } else if (n_type == 2) { n.className = "notifyProgress"; - msg = " " + msg; + msg = " " + msg; } else if (n_type == 3) { n.className = "notifyError"; - msg = " " + msg; + msg = " " + msg; } else if (n_type == 4) { n.className = "notifyInfo"; - msg = " " + msg; + msg = " " + msg; } // msg = " " + 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 } } ); diff --git a/functions.php b/functions.php index cf78cdf30..656cadf7c 100644 --- a/functions.php +++ b/functions.php @@ -1992,10 +1992,14 @@ } 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; } @@ -3133,6 +3137,15 @@ print ""; print ""; + print ""; + + print ""; + + print ""; + print ""; @@ -4581,18 +4594,21 @@ } function format_warning($msg, $id = "") { + global $link; return "
- $msg
"; + $msg"; } function format_notice($msg) { - return "
- $msg
"; + global $link; + return "
+ $msg
"; } function format_error($msg) { - return "
- $msg
"; + global $link; + return "
+ $msg
"; } function print_notice($msg) { @@ -5079,7 +5095,8 @@ if ($line["last_read"] == "" && !sql_bool_to_bool($line["unread"])) { - $update_pic = "\"Updated\""; } else { $update_pic = ""; */ - $score_pic = ""; if ($score > 500) { @@ -5866,13 +5884,13 @@ 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 index 72aced5ff..000000000 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 index 000000000..383f53dd2 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 index 97effe2c8..000000000 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 index 000000000..0d7e7abde 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 index 335a19fbf..000000000 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 index 000000000..a19f84f3b Binary files /dev/null and b/images/sign_quest.png differ diff --git a/manifest.json.php b/manifest.json.php index 066cbd0e8..b322df262 100644 --- a/manifest.json.php +++ b/manifest.json.php @@ -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", diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index dbf65bbbc..78bc3ba70 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -316,7 +316,8 @@ print "
+ id='feed_browser_spinner' src='". + theme_image($link, 'images/indicator_white.gif')."'> diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 0a1cc68a5..96e6365d6 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -300,7 +300,7 @@   - +
"; print "