From 1154cae8e52146408aa1fff10b366b248e89c240 Mon Sep 17 00:00:00 2001 From: serso Date: Sun, 8 Feb 2015 17:36:00 +0100 Subject: [PATCH] Tablet UI fixes --- .../plot/AbstractCalculatorPlotFragment.java | 2 +- .../res/drawable/material_blue_button.xml | 35 +++++++++++++++++++ .../res/drawable/material_button_dark.xml | 35 +++++++++++++++++++ .../res/drawable/material_button_light.xml | 34 ++++++++++++++++++ .../material_button_light_primary.xml | 35 +++++++++++++++++++ .../{pane_background.xml => pane.xml} | 2 +- .../src/main/res/drawable/pane_light.xml | 26 ++++++++++++++ .../layout/cpp_wizard_step_choose_mode.xml | 3 +- .../src/main/res/values/attributes.xml | 1 + android-app/src/main/res/values/colors.xml | 7 ++-- android-app/src/main/res/values/dimens.xml | 2 +- android-app/src/main/res/values/styles.xml | 21 +++-------- android-app/src/main/res/values/theme.xml | 12 ++++--- 13 files changed, 188 insertions(+), 27 deletions(-) create mode 100644 android-app/src/main/res/drawable/material_blue_button.xml create mode 100644 android-app/src/main/res/drawable/material_button_dark.xml create mode 100644 android-app/src/main/res/drawable/material_button_light.xml create mode 100644 android-app/src/main/res/drawable/material_button_light_primary.xml rename android-app/src/main/res/drawable/{pane_background.xml => pane.xml} (95%) create mode 100644 android-app/src/main/res/drawable/pane_light.xml diff --git a/android-app/src/main/java/org/solovyev/android/calculator/plot/AbstractCalculatorPlotFragment.java b/android-app/src/main/java/org/solovyev/android/calculator/plot/AbstractCalculatorPlotFragment.java index 1fe3c14f..cce737de 100644 --- a/android-app/src/main/java/org/solovyev/android/calculator/plot/AbstractCalculatorPlotFragment.java +++ b/android-app/src/main/java/org/solovyev/android/calculator/plot/AbstractCalculatorPlotFragment.java @@ -110,7 +110,7 @@ public abstract class AbstractCalculatorPlotFragment extends CalculatorFragment super.onCreate(in); if (isPaneFragment()) { - this.bgColor = getResources().getColor(R.color.cpp_pane_background); + this.bgColor = getResources().getColor(R.color.cpp_pane_bg); } else { this.bgColor = getResources().getColor(android.R.color.transparent); } diff --git a/android-app/src/main/res/drawable/material_blue_button.xml b/android-app/src/main/res/drawable/material_blue_button.xml new file mode 100644 index 00000000..7ed947d8 --- /dev/null +++ b/android-app/src/main/res/drawable/material_blue_button.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android-app/src/main/res/drawable/material_button_dark.xml b/android-app/src/main/res/drawable/material_button_dark.xml new file mode 100644 index 00000000..bb98c45d --- /dev/null +++ b/android-app/src/main/res/drawable/material_button_dark.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android-app/src/main/res/drawable/material_button_light.xml b/android-app/src/main/res/drawable/material_button_light.xml new file mode 100644 index 00000000..569abf86 --- /dev/null +++ b/android-app/src/main/res/drawable/material_button_light.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android-app/src/main/res/drawable/material_button_light_primary.xml b/android-app/src/main/res/drawable/material_button_light_primary.xml new file mode 100644 index 00000000..ff384506 --- /dev/null +++ b/android-app/src/main/res/drawable/material_button_light_primary.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android-app/src/main/res/drawable/pane_background.xml b/android-app/src/main/res/drawable/pane.xml similarity index 95% rename from android-app/src/main/res/drawable/pane_background.xml rename to android-app/src/main/res/drawable/pane.xml index 9926010f..1c594d5b 100644 --- a/android-app/src/main/res/drawable/pane_background.xml +++ b/android-app/src/main/res/drawable/pane.xml @@ -21,6 +21,6 @@ --> - + \ No newline at end of file diff --git a/android-app/src/main/res/drawable/pane_light.xml b/android-app/src/main/res/drawable/pane_light.xml new file mode 100644 index 00000000..1276a008 --- /dev/null +++ b/android-app/src/main/res/drawable/pane_light.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/android-app/src/main/res/layout/cpp_wizard_step_choose_mode.xml b/android-app/src/main/res/layout/cpp_wizard_step_choose_mode.xml index 203ea75c..a2371790 100644 --- a/android-app/src/main/res/layout/cpp_wizard_step_choose_mode.xml +++ b/android-app/src/main/res/layout/cpp_wizard_step_choose_mode.xml @@ -23,6 +23,7 @@ --> - + diff --git a/android-app/src/main/res/values/colors.xml b/android-app/src/main/res/values/colors.xml index 4557a146..9df54cf1 100644 --- a/android-app/src/main/res/values/colors.xml +++ b/android-app/src/main/res/values/colors.xml @@ -33,14 +33,13 @@ #ffffffff #ffffff99 #101010 - #fff6f1ef + #fff6f1ef #FAFAFA #9E9E9E #FAFAFA #424242 #616161 #757575 - @color/cpp_material_grey #ff000000 @color/cpp_material_grey @color/cpp_material_grey_light @@ -61,4 +60,8 @@ #393939 @color/cpp_material_grey @color/cpp_material_grey_light + + @color/cpp_material_grey + #ffeae5e3 + \ No newline at end of file diff --git a/android-app/src/main/res/values/dimens.xml b/android-app/src/main/res/values/dimens.xml index 2aac1c0b..08171cd9 100644 --- a/android-app/src/main/res/values/dimens.xml +++ b/android-app/src/main/res/values/dimens.xml @@ -22,7 +22,7 @@ 25sp 25sp - 5dp + 3dp 0dp 16sp 14sp diff --git a/android-app/src/main/res/values/styles.xml b/android-app/src/main/res/values/styles.xml index c794fda1..c2fbd64f 100644 --- a/android-app/src/main/res/values/styles.xml +++ b/android-app/src/main/res/values/styles.xml @@ -22,20 +22,6 @@ - - - - - @@ -193,7 +179,7 @@ @@ -201,8 +187,10 @@