diff --git a/DroidFish/res/raw/analyze.svg b/DroidFish/res/raw/analyze.svg new file mode 100644 index 0000000..6dcf548 --- /dev/null +++ b/DroidFish/res/raw/analyze.svg @@ -0,0 +1,280 @@ + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DroidFish/res/raw/book.svg b/DroidFish/res/raw/book.svg new file mode 100644 index 0000000..e92c817 --- /dev/null +++ b/DroidFish/res/raw/book.svg @@ -0,0 +1,201 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + diff --git a/DroidFish/res/raw/comment.svg b/DroidFish/res/raw/comment.svg new file mode 100644 index 0000000..e2cd911 --- /dev/null +++ b/DroidFish/res/raw/comment.svg @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DroidFish/res/raw/header.svg b/DroidFish/res/raw/header.svg new file mode 100644 index 0000000..025a9c8 --- /dev/null +++ b/DroidFish/res/raw/header.svg @@ -0,0 +1,493 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/DroidFish/res/raw/magnify.svg b/DroidFish/res/raw/magnify.svg new file mode 100644 index 0000000..635467a --- /dev/null +++ b/DroidFish/res/raw/magnify.svg @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DroidFish/res/raw/thinking.svg b/DroidFish/res/raw/thinking.svg new file mode 100644 index 0000000..ee316c0 --- /dev/null +++ b/DroidFish/res/raw/thinking.svg @@ -0,0 +1,451 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + diff --git a/DroidFish/res/raw/variation.svg b/DroidFish/res/raw/variation.svg new file mode 100644 index 0000000..311943f --- /dev/null +++ b/DroidFish/res/raw/variation.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/DroidFish/src/com/larvalabs/svgandroid/SVGParser.java b/DroidFish/src/com/larvalabs/svgandroid/SVGParser.java index e99ab87..6da7b44 100644 --- a/DroidFish/src/com/larvalabs/svgandroid/SVGParser.java +++ b/DroidFish/src/com/larvalabs/svgandroid/SVGParser.java @@ -3,7 +3,6 @@ package com.larvalabs.svgandroid; import android.content.res.AssetManager; import android.content.res.Resources; import android.graphics.*; -import android.util.Log; import org.xml.sax.Attributes; import org.xml.sax.InputSource; import org.xml.sax.SAXException; diff --git a/DroidFish/src/org/petero/droidfish/DroidFish.java b/DroidFish/src/org/petero/droidfish/DroidFish.java index 445a4d8..9655fa6 100644 --- a/DroidFish/src/org/petero/droidfish/DroidFish.java +++ b/DroidFish/src/org/petero/droidfish/DroidFish.java @@ -225,7 +225,7 @@ public class DroidFish extends Activity implements GUIInterface { addAction(new UIAction() { public String getId() { return "showThinking"; } public int getName() { return R.string.toggle_show_thinking; } - public int getIcon() { return -1; } + public int getIcon() { return R.raw.thinking; } public boolean enabled() { return true; } public void run() { mShowThinking = toggleBooleanPref("showThinking"); @@ -235,7 +235,7 @@ public class DroidFish extends Activity implements GUIInterface { addAction(new UIAction() { public String getId() { return "bookHints"; } public int getName() { return R.string.toggle_book_hints; } - public int getIcon() { return -1; } + public int getIcon() { return R.raw.book; } public boolean enabled() { return true; } public void run() { mShowBookHints = toggleBooleanPref("bookHints"); @@ -245,7 +245,7 @@ public class DroidFish extends Activity implements GUIInterface { addAction(new UIAction() { public String getId() { return "viewVariations"; } public int getName() { return R.string.toggle_pgn_variations; } - public int getIcon() { return -1; } + public int getIcon() { return R.raw.variation; } public boolean enabled() { return true; } public void run() { pgnOptions.view.variations = toggleBooleanPref("viewVariations"); @@ -256,7 +256,7 @@ public class DroidFish extends Activity implements GUIInterface { addAction(new UIAction() { public String getId() { return "viewComments"; } public int getName() { return R.string.toggle_pgn_comments; } - public int getIcon() { return -1; } + public int getIcon() { return R.raw.comment; } public boolean enabled() { return true; } public void run() { pgnOptions.view.comments = toggleBooleanPref("viewComments"); @@ -267,7 +267,7 @@ public class DroidFish extends Activity implements GUIInterface { addAction(new UIAction() { public String getId() { return "viewHeaders"; } public int getName() { return R.string.toggle_pgn_headers; } - public int getIcon() { return -1; } + public int getIcon() { return R.raw.header; } public boolean enabled() { return true; } public void run() { pgnOptions.view.headers = toggleBooleanPref("viewHeaders"); @@ -278,7 +278,7 @@ public class DroidFish extends Activity implements GUIInterface { addAction(new UIAction() { public String getId() { return "toggleAnalysis"; } public int getName() { return R.string.toggle_analysis; } - public int getIcon() { return -1; } + public int getIcon() { return R.raw.analyze; } public boolean enabled() { return true; } public void run() { int gameModeType = ctrl.analysisMode() ? GameMode.EDIT_GAME : GameMode.ANALYSIS; @@ -294,7 +294,7 @@ public class DroidFish extends Activity implements GUIInterface { addAction(new UIAction() { public String getId() { return "largeButtons"; } public int getName() { return R.string.toggle_large_buttons; } - public int getIcon() { return -1; } + public int getIcon() { return R.raw.magnify; } public boolean enabled() { return true; } public void run() { pgnOptions.view.headers = toggleBooleanPref("largeButtons");