diff --git a/Makefile b/Makefile index 98d0a4c..5e502b1 100644 --- a/Makefile +++ b/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=$* $< diff --git a/app/background.js b/app/background.js index 31c2421..78df071 100644 --- a/app/background.js +++ b/app/background.js @@ -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' }) }) diff --git a/app/manifest.json b/app/manifest.json index 227be33..aa8e692 100644 --- a/app/manifest.json +++ b/app/manifest.json @@ -6,7 +6,13 @@ "short_name": "__MSG_appShortName__", "description": "__MSG_appDesc__", "author": "Neale Pickett ", - "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"] diff --git a/app/wirc.js b/app/wirc.js index 007e9a4..25c35bd 100644 --- a/app/wirc.js +++ b/app/wirc.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) diff --git a/app/wirc.png b/app/wirc.png deleted file mode 100644 index 372b05c..0000000 Binary files a/app/wirc.png and /dev/null differ diff --git a/chat.svg b/chat.svg index f8841d1..d774235 100644 --- a/chat.svg +++ b/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" /> Openclipart - + 2008-02-19T10:10:56 https://openclipart.org/detail/14475/callout-chat-by-ericlemerdy