diff --git a/.idea/misc.xml b/.idea/misc.xml
index aa89dc92..c27c7ebd 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -74,7 +74,7 @@
-
+
diff --git a/android-app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java b/android-app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java
index 92b49172..6587587a 100644
--- a/android-app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java
+++ b/android-app/src/main/java/org/solovyev/android/calculator/AndroidCalculatorDisplayView.java
@@ -128,7 +128,7 @@ public class AndroidCalculatorDisplayView extends AutoResizeTextView implements
AndroidCalculatorDisplayView.this.state = state;
if (state.isValid()) {
- setTextColor(getResources().getColor(R.color.cpp_default_text_color));
+ setTextColor(getResources().getColor(R.color.cpp_text));
setText(text);
adjustTextSize();
@@ -136,7 +136,7 @@ public class AndroidCalculatorDisplayView extends AutoResizeTextView implements
} else {
// update text in order to get rid of HTML tags
setText(getText().toString());
- setTextColor(getResources().getColor(R.color.cpp_display_error_text_color));
+ setTextColor(getResources().getColor(R.color.cpp_text_error));
// error messages are never shown -> just greyed out text (error message will be shown on click)
//setText(state.getErrorMessage());
diff --git a/android-app/src/main/java/org/solovyev/android/calculator/view/AngleUnitsButton.java b/android-app/src/main/java/org/solovyev/android/calculator/view/AngleUnitsButton.java
index 80244601..c138de07 100644
--- a/android-app/src/main/java/org/solovyev/android/calculator/view/AngleUnitsButton.java
+++ b/android-app/src/main/java/org/solovyev/android/calculator/view/AngleUnitsButton.java
@@ -67,9 +67,9 @@ public class AngleUnitsButton extends DirectionDragButton {
final int color;
final Resources resources = getResources();
if (isCurrentAngleUnits(directionText)) {
- color = resources.getColor(R.color.cpp_selected_angle_unit_text_color);
+ color = resources.getColor(R.color.cpp_selected_angle_unit_text);
} else {
- color = resources.getColor(R.color.cpp_default_text_color);
+ color = resources.getColor(R.color.cpp_text);
}
return color;
}
diff --git a/android-app/src/main/java/org/solovyev/android/calculator/view/NumeralBasesButton.java b/android-app/src/main/java/org/solovyev/android/calculator/view/NumeralBasesButton.java
index 0ae944b2..d2640977 100644
--- a/android-app/src/main/java/org/solovyev/android/calculator/view/NumeralBasesButton.java
+++ b/android-app/src/main/java/org/solovyev/android/calculator/view/NumeralBasesButton.java
@@ -65,9 +65,9 @@ public class NumeralBasesButton extends DirectionDragButton {
int getDirectionTextColor(@Nonnull String directionText) {
final int color;
if (isCurrentNumberBase(directionText)) {
- color = getResources().getColor(R.color.cpp_selected_angle_unit_text_color);
+ color = getResources().getColor(R.color.cpp_selected_angle_unit_text);
} else {
- color = getResources().getColor(R.color.cpp_default_text_color);
+ color = getResources().getColor(R.color.cpp_text);
}
return color;
}
diff --git a/android-app/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java b/android-app/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java
index f80ea8b0..4e53e0fb 100644
--- a/android-app/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java
+++ b/android-app/src/main/java/org/solovyev/android/calculator/widget/AbstractCalculatorWidgetProvider.java
@@ -95,7 +95,7 @@ abstract class AbstractCalculatorWidgetProvider extends AppWidgetProvider {
@Nonnull
private String getCursorColor(@Nonnull Context context) {
if (cursorColor == null) {
- cursorColor = Integer.toHexString(context.getResources().getColor(R.color.cpp_widget_cursor_color)).substring(2);
+ cursorColor = Integer.toHexString(context.getResources().getColor(R.color.cpp_widget_cursor)).substring(2);
}
return cursorColor;
}
@@ -198,9 +198,9 @@ abstract class AbstractCalculatorWidgetProvider extends AppWidgetProvider {
private void updateDisplayState(@Nonnull Context context, @Nonnull RemoteViews views, @Nonnull CalculatorDisplayViewState displayState) {
if (displayState.isValid()) {
views.setTextViewText(R.id.calculator_display, displayState.getText());
- views.setTextColor(R.id.calculator_display, context.getResources().getColor(R.color.cpp_default_text_color));
+ views.setTextColor(R.id.calculator_display, context.getResources().getColor(R.color.cpp_text));
} else {
- views.setTextColor(R.id.calculator_display, context.getResources().getColor(R.color.cpp_display_error_text_color));
+ views.setTextColor(R.id.calculator_display, context.getResources().getColor(R.color.cpp_text_error));
}
}
diff --git a/android-app/src/main/res/drawable/metro_button_dark_shape.xml b/android-app/src/main/res/drawable/metro_button_dark_shape.xml
index 2165b29a..c51c55ac 100644
--- a/android-app/src/main/res/drawable/metro_button_dark_shape.xml
+++ b/android-app/src/main/res/drawable/metro_button_dark_shape.xml
@@ -21,6 +21,6 @@
-->
-
+
\ No newline at end of file
diff --git a/android-app/src/main/res/drawable/metro_button_green_shape.xml b/android-app/src/main/res/drawable/metro_button_green_shape.xml
index 2887709b..d9f9f488 100644
--- a/android-app/src/main/res/drawable/metro_button_green_shape.xml
+++ b/android-app/src/main/res/drawable/metro_button_green_shape.xml
@@ -21,6 +21,6 @@
-->
-
+
\ No newline at end of file
diff --git a/android-app/src/main/res/drawable/metro_button_light_shape.xml b/android-app/src/main/res/drawable/metro_button_light_shape.xml
index 78e13a77..36d69510 100644
--- a/android-app/src/main/res/drawable/metro_button_light_shape.xml
+++ b/android-app/src/main/res/drawable/metro_button_light_shape.xml
@@ -21,6 +21,6 @@
-->
-
+
diff --git a/android-app/src/main/res/drawable/metro_button_purple_shape.xml b/android-app/src/main/res/drawable/metro_button_purple_shape.xml
index a994ce3b..1ffbb8fd 100644
--- a/android-app/src/main/res/drawable/metro_button_purple_shape.xml
+++ b/android-app/src/main/res/drawable/metro_button_purple_shape.xml
@@ -21,6 +21,6 @@
-->
-
+
\ No newline at end of file
diff --git a/android-app/src/main/res/drawable/metro_green_list_item.xml b/android-app/src/main/res/drawable/metro_green_list_item.xml
index 0ba94d5a..06ddd49f 100644
--- a/android-app/src/main/res/drawable/metro_green_list_item.xml
+++ b/android-app/src/main/res/drawable/metro_green_list_item.xml
@@ -28,25 +28,25 @@
+ a:drawable="@color/cpp_metro_green"/>
+ a:drawable="@color/cpp_metro_green"/>
+ a:drawable="@color/cpp_metro_green"/>
+ a:drawable="@color/cpp_metro_green"/>
+ a:drawable="@color/cpp_metro_green"/>
+ a:drawable="@color/cpp_metro_green"/>
+ a:drawable="@color/cpp_metro_green"/>
diff --git a/android-app/src/main/res/drawable/metro_purple_list_item.xml b/android-app/src/main/res/drawable/metro_purple_list_item.xml
index 0c54af47..973b7a24 100644
--- a/android-app/src/main/res/drawable/metro_purple_list_item.xml
+++ b/android-app/src/main/res/drawable/metro_purple_list_item.xml
@@ -28,24 +28,24 @@
+ a:drawable="@color/cpp_metro_purple"/>
+ a:drawable="@color/cpp_metro_purple"/>
+ a:drawable="@color/cpp_metro_purple"/>
+ a:drawable="@color/cpp_metro_purple"/>
+ a:drawable="@color/cpp_metro_purple"/>
+ a:drawable="@color/cpp_metro_purple"/>
+ a:drawable="@color/cpp_metro_purple"/>
diff --git a/android-app/src/main/res/layout/history_fragment.xml b/android-app/src/main/res/layout/history_fragment.xml
index e2f83f45..c81825d1 100644
--- a/android-app/src/main/res/layout/history_fragment.xml
+++ b/android-app/src/main/res/layout/history_fragment.xml
@@ -50,8 +50,8 @@
a:layout_gravity="bottom|right"
a:layout_margin="16dp"
a:src="@drawable/ic_delete_white_36dp"
- fab:fab_colorNormal="@color/cpp_metro_button_background"
- fab:fab_colorPressed="@color/cpp_metro_button_background"
+ fab:fab_colorNormal="@color/cpp_metro_button"
+ fab:fab_colorPressed="@color/cpp_metro_button"
fab:fab_colorRipple="?attr/colorControlHighlight" />
\ No newline at end of file
diff --git a/android-app/src/main/res/values-v21/theme.xml b/android-app/src/main/res/values-v21/theme.xml
new file mode 100644
index 00000000..dc7c52e0
--- /dev/null
+++ b/android-app/src/main/res/values-v21/theme.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-app/src/main/res/values/colors.xml b/android-app/src/main/res/values/colors.xml
index 04b048dc..48dc0cf6 100644
--- a/android-app/src/main/res/values/colors.xml
+++ b/android-app/src/main/res/values/colors.xml
@@ -1,5 +1,4 @@
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/android-app/src/main/res/values/theme_gray.xml b/android-app/src/main/res/values/theme_gray.xml
index 36166b77..df637b03 100644
--- a/android-app/src/main/res/values/theme_gray.xml
+++ b/android-app/src/main/res/values/theme_gray.xml
@@ -40,7 +40,7 @@
-
-