mirror of https://github.com/nealey/spongy
More prettiness
This commit is contained in:
parent
f96c870be3
commit
3751c535b6
15
Makefile
15
Makefile
|
@ -1,2 +1,15 @@
|
|||
all:
|
||||
ICONS += app/icon-16.png
|
||||
ICONS += app/icon-32.png
|
||||
ICONS += app/icon-48.png
|
||||
ICONS += app/icon-128.png
|
||||
ICONS += app/icon-256.png
|
||||
|
||||
all: icons serverside
|
||||
|
||||
serverside:
|
||||
GOPATH=$(CURDIR) go build -v all
|
||||
|
||||
icons: $(ICONS)
|
||||
|
||||
app/icon-%.png: chat.svg
|
||||
inkscape --export-png=$@ --export-width=$* $<
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
chrome.app.runtime.onLaunched.addListener(function() {
|
||||
chrome.app.window.create('wirc.html', {
|
||||
'state': 'normal'
|
||||
state: 'normal',
|
||||
width: 775,
|
||||
height: 400,
|
||||
minWidth: 320,
|
||||
minHeight: 160,
|
||||
id: 'spongy'
|
||||
})
|
||||
})
|
||||
|
|
|
@ -6,7 +6,13 @@
|
|||
"short_name": "__MSG_appShortName__",
|
||||
"description": "__MSG_appDesc__",
|
||||
"author": "Neale Pickett <neale@woozle.org>",
|
||||
"icons": {"128": "wirc.png"},
|
||||
"icons": {
|
||||
"16": "icon-16.png",
|
||||
"32": "icon-32.png",
|
||||
"48": "icon-48.png",
|
||||
"128": "icon-128.png",
|
||||
"256": "icon-256.png"
|
||||
},
|
||||
"app": {
|
||||
"background": {
|
||||
"scripts": ["background.js"]
|
||||
|
|
|
@ -159,7 +159,7 @@ function addMessage(timestamp, fullSender, command, sender, forum, args, msg) {
|
|||
var sourcee = msge.getElementsByClassName("source")[0];
|
||||
var contente = msge.getElementsByClassName("content")[0];
|
||||
|
||||
var senderhash = djbhash(sender) % 30;
|
||||
var senderhash = djbhash(sender) % 31;
|
||||
sourcee.setAttribute("colornumber", senderhash)
|
||||
|
||||
|
||||
|
|
BIN
app/wirc.png
BIN
app/wirc.png
Binary file not shown.
Before Width: | Height: | Size: 3.4 KiB |
18
chat.svg
18
chat.svg
|
@ -30,23 +30,23 @@
|
|||
inkscape:zoom="1.26"
|
||||
inkscape:current-layer="g3182"
|
||||
inkscape:cx="258.38604"
|
||||
inkscape:cy="234.12698"
|
||||
inkscape:cy="174.57475"
|
||||
inkscape:window-width="1280"
|
||||
showgrid="false"
|
||||
inkscape:window-height="738"
|
||||
inkscape:window-height="751"
|
||||
inkscape:window-maximized="1" />
|
||||
<g
|
||||
id="g3182"
|
||||
transform="translate(14.44,59.9282)">
|
||||
<path
|
||||
id="path779"
|
||||
style="fill:#660080;fill-rule:evenodd;stroke:#dd55ff;stroke-width:15;stroke-linecap:round;stroke-linejoin:round"
|
||||
d="m 132.35508,161.83857 c -64.776001,1.05 -121.910001,37.14 -134.0400006,88.35 -13.8580004,58.5 36.2389996,114.67 111.8400006,125.43 0.01,0.09 -0.01,0.22 -0.02,0.35 l -0.43,0.02 -58.912001,54.78 121.030001,-56.86 -1.19,0.04 0.78,-0.6 1.73,-0.05 -1.32,0.61 1.66,-0.06 v -0.57 h 0.02 c 52.37,-11.54 89.09,-42.8 98.91,-84.23 13.86,-58.52 -36.3,-114.72 -111.95,-125.44 -9.46,-1.34 -18.86,-1.91 -28.11,-1.77 z"
|
||||
id="path2391"
|
||||
style="fill:#ffcc00;fill-rule:evenodd"
|
||||
d="m 276.28812,-45.717333 c 92.80208,1.491258 174.6675,53.2102445 192.04083,126.580393 19.85687,83.81352 -51.91493,164.28908 -160.23339,179.70292 -0.0228,0.12532 0.0114,0.31899 0.0228,0.50127 l 0.62657,0.0342 84.39453,78.49328 -173.40295,-81.47808 1.69746,0.057 -1.10506,-0.85442 -2.48353,-0.0798 1.89113,0.87721 -2.381,-0.0798 v -0.82025 h -0.0342 C 142.29131,240.68634 89.68144,195.90301 75.623281,136.53748 55.755024,52.688641 127.61796,-27.831345 236.01617,-43.199624 c 13.5455,-1.916193 27.01126,-2.731885 40.27195,-2.518848 z"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
id="path2391"
|
||||
style="fill:#b3ff80;fill-rule:evenodd;stroke:#338000;stroke-width:22.78469849000000025;stroke-linecap:round;stroke-linejoin:round"
|
||||
d="m 276.28812,-45.717333 c 92.80208,1.491258 174.6675,53.2102445 192.04083,126.580393 19.85687,83.81352 -51.91493,164.28908 -160.23339,179.70292 -0.0228,0.12532 0.0114,0.31899 0.0228,0.50127 l 0.62657,0.0342 84.39453,78.49328 -173.40295,-81.47808 1.69746,0.057 -1.10506,-0.85442 -2.48353,-0.0798 1.89113,0.87721 -2.381,-0.0798 v -0.82025 h -0.0342 C 142.29131,240.68634 89.68144,195.90301 75.623281,136.53748 55.755024,52.688641 127.61796,-27.831345 236.01617,-43.199624 c 13.5455,-1.916193 27.01126,-2.731885 40.27195,-2.518848 z"
|
||||
id="path779"
|
||||
style="fill:#660080;fill-rule:evenodd;"
|
||||
d="m 132.35508,161.83857 c -64.776001,1.05 -121.910001,37.14 -134.0400006,88.35 -13.8580004,58.5 36.2389996,114.67 111.8400006,125.43 0.01,0.09 -0.01,0.22 -0.02,0.35 l -0.43,0.02 -58.912001,54.78 121.030001,-56.86 -1.19,0.04 0.78,-0.6 1.73,-0.05 -1.32,0.61 1.66,-0.06 v -0.57 h 0.02 c 52.37,-11.54 89.09,-42.8 98.91,-84.23 13.86,-58.52 -36.3,-114.72 -111.95,-125.44 -9.46,-1.34 -18.86,-1.91 -28.11,-1.77 z"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
<metadata
|
||||
|
@ -64,7 +64,7 @@
|
|||
<dc:title>Openclipart</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:publisher>
|
||||
<dc:title></dc:title>
|
||||
<dc:title />
|
||||
<dc:date>2008-02-19T10:10:56</dc:date>
|
||||
<dc:description />
|
||||
<dc:source>https://openclipart.org/detail/14475/callout-chat-by-ericlemerdy</dc:source>
|
||||
|
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 3.9 KiB |
Loading…
Reference in New Issue