From 84b2e7c30c78cc5f6bac482287536bfb3beb1e02 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Sun, 8 May 2011 02:05:12 +0200 Subject: [PATCH] colorize start/stop button --- src/MainListActivity.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MainListActivity.scala b/src/MainListActivity.scala index 15c7c8f..33f539f 100644 --- a/src/MainListActivity.scala +++ b/src/MainListActivity.scala @@ -38,8 +38,10 @@ class MainListActivity(menuid : Int) extends LoadingListActivity with OnClickLis def setupButtons(running : Boolean) { //singleBtn.setEnabled(!running) if (running) { + startstopBtn.getBackground().setColorFilter(0xffffc0c0, PorterDuff.Mode.MULTIPLY) startstopBtn.setText(R.string.stoplog) } else { + startstopBtn.getBackground().setColorFilter(0xffc0ffc0, PorterDuff.Mode.MULTIPLY) startstopBtn.setText(R.string.startlog) } }