Initial setup

This commit is contained in:
Ximi1970
2020-01-04 00:06:41 +01:00
parent a848be0ae2
commit d2e92374a2
6 changed files with 54 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.xpi

15
Makefile Normal file
View File

@@ -0,0 +1,15 @@
.PHONY: clean \
systray-x-xpi
all: systray-x-xpi
clean:
echo "Deleting all XPI"
@rm -f *.xpi
systray-x-xpi:
@echo "Creating systray-x.xpi" ;\
rm -f systray-x.xpi ;\
cd webext ;\
zip ../systray-x.xpi -qr * ;\
cd ..

1
webext/background.js Normal file
View File

@@ -0,0 +1 @@
console.log("Hello world!");

1
webext/icons/LICENSE Normal file
View File

@@ -0,0 +1 @@
The icon used here is taken from the "Miscellany Web icons" set by Maria & Guillem (https://www.iconfinder.com/andromina), and is used under the Creative Commons (Attribution 3.0 Unported) license.

8
webext/icons/message.svg Normal file
View File

@@ -0,0 +1,8 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg height="143px" style="enable-background:new 0 0 143 128;" version="1.1" viewBox="0 0 143 128" width="143px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style type="text/css">
<![CDATA[
.st0{fill:#EF3E42;}
.st1{fill:#FFFFFF;}
.st2{fill:none;}
.st3{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}
]]>
</style><defs/><path d="M132.2,105.3L96.1,69l36.2-36.1V105.3L132.2,105.3z M14.9,112.1l36.4-36.4l8,7.9c3,3,6.6,5,11,5s8-2,11-5l8-7.9l36.4,36.4 H14.9L14.9,112.1z M125.9,25.3L74,77.4c-1,1-1.9,1.6-3.7,1.6s-2.7-0.6-3.7-1.6L14.7,25.3H125.9L125.9,25.3z M8.4,32.9L44.6,69 L8.4,105.3V32.9L8.4,32.9z"/><rect class="st2" height="128" id="_x3C_Slice_x3E__100_" width="143"/></svg>

After

Width:  |  Height:  |  Size: 860 B

27
webext/manifest.json Normal file
View File

@@ -0,0 +1,27 @@
{
"manifest_version": 2,
"name": "SysTray-X",
"description": "System tray control add-on",
"version": "0.1",
"author": "Maxime Rijnders",
"homepage_url": "https://github.com/Ximi1970/systray-x",
"applications": {
"gecko": {
"id": "systray-x@Ximi1970",
"strict_min_version": "68.0"
}
},
"icons": {
"48": "icons/message.svg"
},
"background": {
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": "icons/message.svg"
}
}