From 3751c535b6d547a74ab7fd3d06b8a1aada98769d Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 27 Oct 2014 11:51:46 -0600 Subject: [PATCH] More prettiness --- Makefile | 15 ++++++++++++++- app/background.js | 7 ++++++- app/manifest.json | 8 +++++++- app/wirc.js | 2 +- app/wirc.png | Bin 3504 -> 0 bytes chat.svg | 18 +++++++++--------- 6 files changed, 37 insertions(+), 13 deletions(-) delete mode 100644 app/wirc.png 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 372b05c7b04ce9b76c77ae9d15e1c2a45468856d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3504 zcmV;h4NvlkP)WdJfTFgPtRGA%JVR536*F)%tcHt>ZS?EnA(M|4G4bW?A2a${uxXmoUN zb2=|CZ*XO9V{B<~VRCdXZ*pfZWMy<=X>2bsG&DCgFJobBY;SdREn{e5bS+|eEoE|P zV{Bz@WpZSB9`vbs0000b7gZcaCKsAX=7w>ZDDC{FImI>$^ZZiI!Q!9 zRCt`#n`?BF$C<}}^XlTejWN`Kjq%-JgYk_!SzHJuB&3`Gwv+B|KXlWRZgz8evYXTH zNgGtrlXlbQG);3zO4~H24T0d?8cZN%X#yc3;2Yos5+P(e#y0qVmu*?n><1ws8{0^- zPQ7m|M$ zuoY1IxruV%FIss0lumZ~q97mytkjE0D?AK50;G>uMx)UX9~aN;*|P}_2_`r=n2_KQ zfS zqSJ2#6zD|)up8LooT4wgBvQJ4U0CbLY-sFc`2)yZg`WLhx|K zPWkSw^!SB<{9U3%NL~h9J&cWwW#h(;q@<)E5L0erGPJd~aqQSJ3v0~_DNt{rB1ewS7%BD z6zIiHK<|_j5)#<9Z5uP9X85dgs<2wE9654?s_H8D?5f}pzWMQwWZ&5GJ`+%&7kXf) zQ_jf9plC-CYPG*tI^R%JQ$tx<86(yaXV!;3Gudo>Ob)x3^J$Fc?GhV+r<`(5P7Wo- zCAUrI0kX5RDJdyIrKp@)-<;9OK7knJkh~@!@0Vh>B6$@Yo-Jo-4qLZwo%Z?e2~ty2 z*|vQf;(DJYY|G!pciqc)ZM9--gj@nz5G;=m6^qc4I6G`NPd;87cM8| z6#>_W{(S%{MaA~*+tF&Yelj(1SiNdBv9YmE@f#|5+9`NNfFgO!nO?JY4fE#Co2>Y4 z14U8TvSo|=NPVQ>7h*1WK|tQqVgc88c`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