Commits

Christian Fischer committed 0c88714

LogCat: more eye-friendly colors, nice buttons

Comments (0)

Files changed (2)

logcat_colors.patch

+# HG changeset patch
+# Parent 117ee76294e18098701f50eda65d46bf30ab3fef
+LogCat: more eye-friendly colors, nice buttons
+
+diff --git a/logcat/src/org/nyerel/nbandroid/logcat/logtable/LogTableCellRenderer.java b/logcat/src/org/nyerel/nbandroid/logcat/logtable/LogTableCellRenderer.java
+--- a/logcat/src/org/nyerel/nbandroid/logcat/logtable/LogTableCellRenderer.java
++++ b/logcat/src/org/nyerel/nbandroid/logcat/logtable/LogTableCellRenderer.java
+@@ -29,6 +29,13 @@
+  * @author NYEREL
+  */
+ public class LogTableCellRenderer extends DefaultTableCellRenderer {
++    
++    public final static Color COLOR_ASSERT      = new Color(0x880000);
++    public final static Color COLOR_ERROR       = new Color(0xee0000);
++    public final static Color COLOR_WARN        = new Color(0xee8000);
++    public final static Color COLOR_INFO        = new Color(0x00bb00);
++    public final static Color COLOR_DEBUG       = new Color(0x0000cc);
++    public final static Color COLOR_VERBOSE     = new Color(0x4d4d4d);
+ 
+     @Override
+     public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
+@@ -88,22 +95,22 @@
+         
+         switch (level) {
+             case ASSERT:
+-                color = Color.LIGHT_GRAY;
++                color = COLOR_ASSERT;
+                 break;
+             case DEBUG:
+-                color = Color.BLUE;
++                color = COLOR_DEBUG;
+                 break;
+             case ERROR:
+-                color = Color.RED;
++                color = COLOR_ERROR;
+                 break;
+-            case VERBOSE:
+-                color = Color.GREEN;
++            case INFO:
++                color = COLOR_INFO;
+                 break;
+             case WARN:
+-                color = Color.MAGENTA;
++                color = COLOR_WARN;
+                 break;
+             default:
+-                color = Color.DARK_GRAY;
++                color = COLOR_VERBOSE;
+         }
+         c.setForeground(color);
+         return c;
+diff --git a/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_assert.png b/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_assert.png
+index aeaba03130c2af556f48fb5299e9f00a12ac7df0..0648dafe78875621fb566a2e63747f507d49dd75
+GIT binary patch
+literal 410
+zc%17D@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^PXN
+zr}OT5AjMhW5n0T@z%2~Ij105pNB{-dOFVsD*>AIRFqmuqXL@}cXo{4li(`nz>Doz-
+zen$*=T<1?d*Y=R<ar7o_10g9E4lx~p@`U4_ZcLp!ox|oZG@WAF{V76p+MQ#)|G%I2
+zZx#7&@X^0VVdFH_2kZfjq6QJ`8hGn{g$oiRIv><B=m`G!b;M(x1Ka#v<^daPvfg?;
+z@)O<o%UbT>^8L~qn9g&)c^!Q<^62zh{kmrwcOS=0UHd9#`h?}nQVz%onR#wyVdDJx
+z_;2B_<ZO<Dm0nxln=ebsd3$2HE32Hd!B#a<)ftuv;Vw!$%#@3#JP1C|rDA#BN!E8B
+zr`dt@th#`?Ps1LZ+4FH;^IxA-mYGcx?Y62FZ=S@rr-9>utj}Galh?y1<usV@J`}Fb
+ya6{6Q{Tic;x_r)l>57xe#}=sVtDYeHyPnZg-Ys9L*me&nR6Sk&T-G@yGywq5HkzLR
+
+diff --git a/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_debug.png b/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_debug.png
+index 7ba91d2464f5cf2789ea1e62daf86b0a9788b343..739636586290b70462c9199fe5cd4a33dfe1c51f
+GIT binary patch
+literal 436
+zc%17D@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^PXN
+zr}OT5AjMhW5n0T@z%2~Ij105pNB{-dOFVsD*>AIRFjyF8f6I>pnquPV;uvCax^}X)
+z-w_9%w*510wz&lCdd}ui(!r(m&S|&l^#=?g97`OSO+-RW3Rt=<52uN%iflALr*ddg
+zYNgHp_s1)kjDNoQ8SdBg{gBZI))fs?v(|o-c+tpb!P|G>0DslSpn$o8H*Pix&223@
+z^NS;7Ny%JM^N5LT9j~@mhsbQcKC6<i&A}`DmAKay##wfL)$0Uz-rd}NN3rO=hn|Q`
+zqw)gPzME^y<6SvLI&60DbYE^=!lunDwkm9w;56e)j^<)3O(jedrt`*F1<g;HEgW$m
+zJU}lb;or6G0!BjLrUzS<8yD#NdrQp!$lkG}Waowz+qmOzsU48MAlQEQ-Q8)eYj~OK
+ztv>|Vt;rR(jy*3nk>A{B^V2W4Kd}6HHvi>b`H1KT7aDCph~CKjHhY5L43oZ$lk3!H
+Z*voOc&b{#L!dy^zd%F6$taD0e0st~prxO4G
+
+diff --git a/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_error.png b/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_error.png
+index 9660cfb25fcaa131324d9f8045c592cfd2366973..cadf28365b302cfdc42657f730a1769d34f4af22
+GIT binary patch
+literal 420
+zc%17D@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^PXN
+zr}OT5AjMhW5n0T@z%2~Ij105pNB{-dOFVsD*>AIRFj%mAIn90zG)2YJ#WBR<bnRqo
+zzrzj!ZTn-_zZG({tj!bX>@zBVAhu=YPA+x^&43Rcj*hO=r2}SYA7MKxawe)itZic0
+z=H0XY8_p|T&`~b&Q+=Ai7nx@b{tmob_DP-RuIuJIurs;2DSz*VvVdTLC%c8!cQs7d
+z^lC2i`d#l%%zDO<bN0p3))`l&)qil$S<Ixgf!)kN?X9Kf$KIP)y0%@hI4Jqy<&2j`
+zT|u8hJ=ZPKV~U@-K(zYi!PM)%zuh-?I-LCWN<oBg%l{CIQ%=sF3;5*D^fi<^wg_!8
+zTDB&t`>6>t+l$YYj5QV9GgDOWI~?C(%>3YJd`gUyM5;^TF<#@}j1kYLSA2MWlQ}=l
+zMKUt<2HOtyecqSCCD_$1MK`Rn`~8OfK~%k3Z?C}Fr=^WQ881cKncS?M`wSGmp00i_
+I>zopr00cp#c>n+a
+
+diff --git a/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_info.png b/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_info.png
+index 1ce8991cea1ab0dde7e5254c35423ffc8bdb4aff..da02fa28225b19aa61471996c907b67ae2236b1e
+GIT binary patch
+literal 419
+zc%17D@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^PXN
+zr}OT5AjMhW5n0T@z%2~Ij105pNB{-dOFVsD*>AIRFj&Y(>M`#HnxgFK;uvCax^}Xm
+z-w^`=*ZUUtmbe7$dd{Yu+kPZ<$Kh)+Ey_AUD;nCw&P_DVVY(Gip(Z(-!+T<K_P^Qr
+z=Ob1e7dQUjYx`*WCe0ewGKb~yt3T@+FpEE!ur;W|Uus8iU^HXSdoRawkC;t%t2Zzz
+z@$fr8H2lihwC?y<j>MDqv=q`js=QYJm|_%R;>d8$;k-<jvGfrKGoO@VhP+Lacck#^
+zX;?L^S;ytTuupeQ@k}Z9jZ#Om?*BV~uhD}2Y+G|gC+m!?hW#sU9bCuskZ~@XcWGiY
+z-=C*_mL}y9yDz#tJ23smw|kqL56C6{yIpzs?=6qRi6<H!Z1O*F(dy%(x0dTvz2>jf
+zSzYg>f589m47(XKMT*|OJIH;%=<Un~_y05gypYYvwwpF9zGtp=_3e+nJ3ztf>FVdQ
+I&MBb@0FaKS3jhEB
+
+diff --git a/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_verbose.png b/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_verbose.png
+index acfa088e2b9e6718badec20aca7b4997b9db85b3..fd2668f1bd4e1c5bd29cdbf751fd8f7b4da01369
+GIT binary patch
+literal 433
+zc%17D@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^PXN
+zr}OT5AjMhW5n0T@z%2~Ij105pNB{-dOFVsD*>AIRFj(>&=`L0Rnquhb;uvCax;5Ck
+zuh~GL)|hXKr6{lKswo|J_!YG#c<@bB3Rjrq@9_Gg*qff7!)flD4piJrmvcDrs%WQ6
+z&B{U<&AXQcFI4lVu^At>Ouzp5XOG18ZJD!9aER>D>1GTr@Cy-PWk{Hpo)j88jn$>)
+z_~XXkfBBSdtxc4;@ZFX{p`}59iJ>7hc527Am0#kfpZ&92Treb5)N;OM{-5pzI^Hb;
+z1zuM#{W{;c%i`(T%w(w-f{m61=WZ^XR(#H5pXCD+hqPl~tF~Sdy;Ca7upsyL+{Nqp
+zKIQa%5)hoQ?^tPUIq#}f38B}E-~UxJ>Qg={VZU$Jvdo?jWxH!r6qPFM=9gSzcMWuK
+zDJ#3ZZL7lNs{QxB`Aek6UN>xE5Oj>3)^1$=UQtOva8I26Ey0Y?&{UV7p}EWd+8f`Q
+Vx+V3__f}9~d%F6$taD0e0syPUsPzB<
+
+diff --git a/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_warn.png b/logcat/src/org/nyerel/nbandroid/logcat/resources/log_level_warn.png
+index 5c661f0497b377f21b8eef39ff2a344833d39df3..45d5f025e9610108d37622bdd0f3097d23dad811
+GIT binary patch
+literal 533
+zc$@(h0_y#VP)<h;3K|Lk000e1NJLTq000mG000mO1^@s6AM^iV00001b5ch_0Itp)
+z=>Px#24YJ`L;wH)0002_L%V+f000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2ipe-
+z05=srWA<zS00EUrL_t(I%YBnUYZO5cg}>_RnaQ#zg8`X?<er=0zwwr<2ss8JY&OW^
+z#b1z{UIam0|Hpz$6oi}vmw+JTlo@x{_E6n3y-Tp5C}yem>b>e(VJCi12>d7ZCrJJ+
+z_W?g%LFFw+9?Dpc9zh83H^9Nvu#$t{E@00?sRO~@POUsV7#Y#y8RFB_cMAhPyIcYA
+z`FV{Bh=3D#I$I&Y_w$-&Jy>vQdgY<e!B?T+ouy{3)mh$kusk8S<hfL+l-^ho8-1)j
+zK~!`whGq>O%%2l*&cFhA-Byu^)mg6!{Mkf;%9~e};aN(xEMoS=nX0>7L0VRtRB2S<
+zEG654ch=u__b5n{3WX=H>_x6G>S4Lghyj{zM}cG(DnF2w`EqqwXxo7UyRdXDQ3OZR
+zRZn*Ka@CVb{Bi!x6uA8f62fq0*B5oK<masB=5^hJZ{O5g(~mzyzF%jAri+r|GBqBM
+z&pfAi{{_|?crot<!H-iy+nKC~V*{%r>wr&R?d{vnz+3;u6w8xHw1#$LHK}W&?7aUU
+X=528=1?*8K00000NkvXXu0mjf*hT2w
+
 logcat_stacktrace.patch
 logcat_persistent_tabs.patch
 logcat_multiple_devices.patch
+logcat_colors.patch