From 613e068aee91a34aaa1465a16354d428af877d9e Mon Sep 17 00:00:00 2001 From: Peter Osterlund Date: Fri, 1 Jan 2016 18:21:42 +0100 Subject: [PATCH] DroidFish: Use different background color for move list and thinking output. --- DroidFish/res/layout-land/main.xml | 1 + DroidFish/res/layout/main.xml | 1 + DroidFish/res/layout/main_left_handed.xml | 1 + DroidFish/src/org/petero/droidfish/Util.java | 10 +++++++++- 4 files changed, 12 insertions(+), 1 deletion(-) diff --git a/DroidFish/res/layout-land/main.xml b/DroidFish/res/layout-land/main.xml index e0da02e..c1f108e 100644 --- a/DroidFish/res/layout-land/main.xml +++ b/DroidFish/res/layout-land/main.xml @@ -100,6 +100,7 @@ android:layout_height="wrap_content"> 0.5f ? -0.1f : 0.1f; + c = Color.HSVToColor(Color.alpha(c), hsv); + } + v.setBackgroundColor(c); } if (v instanceof ListView) ((ListView) v).setCacheColorHint(bg);