1
0
mirror of https://github.com/moparisthebest/FireTray synced 2024-11-13 04:15:02 -05:00

Reshape icon directories, and fix Makefile.

This commit is contained in:
foudfou 2014-05-25 21:11:07 +02:00
parent 11fb8b23b3
commit 9afa777c65
58 changed files with 38 additions and 38 deletions

View File

@ -92,14 +92,13 @@ chrome_sources := $(chrome_sources_js) \
$(wildcard $(chrome_source_root)/content/*.xul) \
$(wildcard $(chrome_source_root)/content/*.xml) \
$(wildcard $(chrome_source_root)/content/*.css) \
$(wildcard $(chrome_source_root)/skin/*.css) \
$(wildcard $(chrome_source_root)/skin/*.gif) \
$(wildcard $(chrome_source_root)/skin/*.png) \
$(wildcard $(chrome_source_root)/skin/*.svg) \
$(wildcard $(chrome_source_root)/skin/linux/icons/hicolor/22x22/apps/*.png) \
$(wildcard $(chrome_source_root)/skin/linux/icons/gnome/22x22/status/*.png) \
$(wildcard $(chrome_source_root)/skin/winnt/*.bmp) \
$(wildcard $(chrome_source_root)/skin/winnt/*.ico) \
$(wildcard $(chrome_source_root)/skin/icons/*.css) \
$(wildcard $(chrome_source_root)/skin/icons/*.gif) \
$(wildcard $(chrome_source_root)/skin/icons/*.png) \
$(wildcard $(chrome_source_root)/skin/icons/*.svg) \
$(wildcard $(chrome_source_root)/skin/icons/linux/hicolor/22x22/*/*.png) \
$(wildcard $(chrome_source_root)/skin/icons/winnt/*.bmp) \
$(wildcard $(chrome_source_root)/skin/icons/winnt/*.ico) \
$(wildcard $(chrome_source_root)/locale/*/*.dtd) \
$(wildcard $(chrome_source_root)/locale/*/*.properties)

View File

@ -18,7 +18,7 @@
</broadcasterset>
<prefpane id="pref-pane-windows" label="&windows_options;"
image="chrome://firetray/skin/pref-windows.svg">
image="chrome://firetray/skin/icons/pref-windows.svg">
<preferences>
<preference id="pref_hides_on_close" name="extensions.firetray.hides_on_close" type="bool"/>
@ -63,7 +63,7 @@
</prefpane>
<prefpane id="pref-pane-icon" label="&icon_options;"
image="chrome://firetray/skin/pref-icon.svg">
image="chrome://firetray/skin/icons/pref-icon.svg">
<preferences>
<preference id="pref_app_icon_type" name="extensions.firetray.app_icon_type" type="int"/>
@ -125,7 +125,7 @@
</prefpane>
<prefpane id="pref-pane-mail" label="&mail_options;"
image="chrome://firetray/skin/pref-mail.svg">
image="chrome://firetray/skin/icons/pref-mail.svg">
<preferences>
<preference id="pref_mail_notification_enabled" name="extensions.firetray.mail_notification_enabled" type="bool" />
@ -315,7 +315,7 @@
</prefpane>
<prefpane id="pref-pane-chat" label="&chat_options;"
image="chrome://firetray/skin/pref-chat.svg">
image="chrome://firetray/skin/icons/pref-chat.svg">
<preferences>
<preference id="pref_chat_icon_enable" name="extensions.firetray.chat_icon_enable" type="bool" />

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 54 B

After

Width:  |  Height:  |  Size: 54 B

View File

Before

Width:  |  Height:  |  Size: 59 B

After

Width:  |  Height:  |  Size: 59 B

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View File

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -0,0 +1 @@
../../../../img/chatzilla22.png

View File

@ -0,0 +1 @@
../../../../img/firefox22.png

View File

@ -0,0 +1 @@
../../../../img/seamonkey22.png

View File

@ -0,0 +1 @@
../../../../img/thunderbird22.png

View File

@ -0,0 +1 @@
../../../../img/zotero22.png

View File

@ -0,0 +1 @@
../../../../img/mail-unread.png

View File

@ -0,0 +1 @@
../../../../img/pidgin-tray-available.png

View File

@ -0,0 +1 @@
../../../../img/pidgin-tray-away.png

View File

@ -0,0 +1 @@
../../../../img/pidgin-tray-busy.png

View File

@ -0,0 +1 @@
../../../../img/pidgin-tray-offline.png

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -1 +0,0 @@
../../../../../img/chatzilla22.png

View File

@ -1 +0,0 @@
../../../../../img/firefox22.png

View File

@ -1 +0,0 @@
../../../../../img/seamonkey22.png

View File

@ -1 +0,0 @@
../../../../../img/thunderbird22.png

View File

@ -1 +0,0 @@
../../../../../img/zotero22.png

View File

@ -1 +0,0 @@
../../../../../img/mail-unread.png

View File

@ -1 +0,0 @@
../../../../../img/pidgin-tray-available.png

View File

@ -1 +0,0 @@
../../../../../img/pidgin-tray-away.png

View File

@ -1 +0,0 @@
../../../../../img/pidgin-tray-busy.png

View File

@ -1 +0,0 @@
../../../../../img/pidgin-tray-offline.png

View File

@ -5,12 +5,12 @@ treechildren::-moz-tree-checkbox {
treechildren::-moz-tree-checkbox(checked) {
/* css for checked cells */
list-style-image: url("chrome://firetray/skin/cbox-check.gif");
list-style-image: url("chrome://firetray/skin/icons/cbox-check.gif");
}
treechildren::-moz-tree-checkbox(checked, disabled) {
/* css for disabled checkboxes */
list-style-image: url("chrome://firetray/skin/cbox-disabled.gif");
list-style-image: url("chrome://firetray/skin/icons/cbox-disabled.gif");
}
/* properties="disabled" */

View File

@ -12,8 +12,8 @@
<em:homepageURL>https://github.com/foudfou/firetray</em:homepageURL>
<em:description>A system tray extension for linux.</em:description>
<em:optionsURL>chrome://firetray/content/options.xul</em:optionsURL>
<em:iconURL>chrome://firetray/skin/firetray48.png</em:iconURL>
<em:icon64URL>chrome://firetray/skin/firetray64.png</em:icon64URL>
<em:iconURL>chrome://firetray/skin/icons/firetray48.png</em:iconURL>
<em:icon64URL>chrome://firetray/skin/icons/firetray64.png</em:icon64URL>
<em:targetPlatform>Linux</em:targetPlatform>
<em:targetPlatform>WINNT</em:targetPlatform>

View File

@ -39,7 +39,7 @@ firetray.GtkIcons = {
},
loadDefaultTheme: function() {
this.GTK_THEME_ICON_PATH = firetray.Utils.chromeToPath("chrome://firetray/skin/linux/icons");
this.GTK_THEME_ICON_PATH = firetray.Utils.chromeToPath("chrome://firetray/skin/icons/linux");
log.debug(this.GTK_THEME_ICON_PATH);
let gtkIconTheme = gtk.gtk_icon_theme_get_default();
log.debug("gtkIconTheme="+gtkIconTheme);

View File

@ -41,7 +41,7 @@ firetray.StatusIcon = {
init: function() {
this.FILENAME_BLANK = firetray.Utils.chromeToPath(
"chrome://firetray/skin/blank-icon.png");
"chrome://firetray/skin/icons/blank-icon.png");
Cu.import("resource://firetray/linux/FiretrayGtkIcons.jsm");
firetray.GtkIcons.init();

View File

@ -27,15 +27,16 @@ let log = firetray.Logging.getLogger("firetray.StatusIcon");
if ("undefined" == typeof(firetray.Handler))
log.error("This module MUST be imported from/after FiretrayHandler !");
const ICON_CHROME_PATHS = {
'blank-icon': "chrome://firetray/skin/winnt/blank-icon.bmp",
'mail-unread': "chrome://firetray/skin/winnt/mail-unread.ico",
const ICON_CHROME_PATH = "chrome://firetray/skin/icons/winnt";
const ICON_CHROME_FILES = {
'blank-icon': ICON_CHROME_PATH+"/blank-icon.bmp",
'mail-unread': ICON_CHROME_PATH+"/mail-unread.ico",
// these are for the popup menu:
'prefs': "chrome://firetray/skin/winnt/gtk-preferences.bmp",
'quit': "chrome://firetray/skin/winnt/application-exit.bmp",
'new-wnd': "chrome://firetray/skin/winnt/document-new.bmp",
'new-msg': "chrome://firetray/skin/winnt/gtk-edit.bmp",
'reset': "chrome://firetray/skin/winnt/gtk-apply.bmp"
'prefs': ICON_CHROME_PATH+"/gtk-preferences.bmp",
'quit': ICON_CHROME_PATH+"/application-exit.bmp",
'new-wnd': ICON_CHROME_PATH+"/document-new.bmp",
'new-msg': ICON_CHROME_PATH+"/gtk-edit.bmp",
'reset': ICON_CHROME_PATH+"/gtk-apply.bmp"
};
@ -94,8 +95,8 @@ firetray.StatusIcon = {
/* we'll take the first icon in the .ico file. To get the icon count in the
file, pass ctypes.cast(ctypes.int(-1), win32.UINT); */
for (let imgName in ICON_CHROME_PATHS) {
let path = firetray.Utils.chromeToPath(ICON_CHROME_PATHS[imgName]);
for (let imgName in ICON_CHROME_FILES) {
let path = firetray.Utils.chromeToPath(ICON_CHROME_FILES[imgName]);
let img = this.loadImageFromFile(path);
if (img)
this[this.IMG_TYPES[img['type']]['map']].insert(imgName, img['himg']);