diff --git a/Habitica/build.gradle b/Habitica/build.gradle
index 52c787764..d0a530e0d 100644
--- a/Habitica/build.gradle
+++ b/Habitica/build.gradle
@@ -18,7 +18,7 @@ buildscript {
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
- classpath 'com.android.tools.build:gradle:4.0.0'
+ classpath 'com.android.tools.build:gradle:4.0.1'
classpath('com.noveogroup.android:check:1.2.5') {
exclude module: 'checkstyle'
exclude module: 'pmd-java'
@@ -162,7 +162,7 @@ android {
multiDexEnabled true
resConfigs "en", "bg", "de", "en-rGB", "es", "fr", "hr-rHR", "in", "it", "iw", "ja", "ko", "lt", "nl", "pl", "pt-rBR", "pt-rPT", "ru", "tr", "zh", "zh-rTW"
- versionCode 2509
+ versionCode 2514
versionName "2.8"
}
diff --git a/Habitica/res/drawable-hdpi/habit_minus.webp b/Habitica/res/drawable-hdpi/habit_minus.webp
deleted file mode 100644
index c184aad6b..000000000
Binary files a/Habitica/res/drawable-hdpi/habit_minus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-hdpi/habit_minus_disabled.webp b/Habitica/res/drawable-hdpi/habit_minus_disabled.webp
deleted file mode 100644
index 3398ab376..000000000
Binary files a/Habitica/res/drawable-hdpi/habit_minus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-hdpi/habit_minus_yellow.webp b/Habitica/res/drawable-hdpi/habit_minus_yellow.webp
deleted file mode 100644
index 40dbf6560..000000000
Binary files a/Habitica/res/drawable-hdpi/habit_minus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable-hdpi/habit_plus.webp b/Habitica/res/drawable-hdpi/habit_plus.webp
deleted file mode 100644
index af314d511..000000000
Binary files a/Habitica/res/drawable-hdpi/habit_plus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-hdpi/habit_plus_disabled.webp b/Habitica/res/drawable-hdpi/habit_plus_disabled.webp
deleted file mode 100644
index 9b75b144f..000000000
Binary files a/Habitica/res/drawable-hdpi/habit_plus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-hdpi/habit_plus_yellow.webp b/Habitica/res/drawable-hdpi/habit_plus_yellow.webp
deleted file mode 100644
index eb325b501..000000000
Binary files a/Habitica/res/drawable-hdpi/habit_plus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable-mdpi/habit_minus.png b/Habitica/res/drawable-mdpi/habit_minus.png
new file mode 100644
index 000000000..9bcc01f97
Binary files /dev/null and b/Habitica/res/drawable-mdpi/habit_minus.png differ
diff --git a/Habitica/res/drawable-mdpi/habit_minus.webp b/Habitica/res/drawable-mdpi/habit_minus.webp
deleted file mode 100644
index 00f38ae65..000000000
Binary files a/Habitica/res/drawable-mdpi/habit_minus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-mdpi/habit_minus_disabled.webp b/Habitica/res/drawable-mdpi/habit_minus_disabled.webp
deleted file mode 100644
index 74a4c05ba..000000000
Binary files a/Habitica/res/drawable-mdpi/habit_minus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-mdpi/habit_minus_yellow.webp b/Habitica/res/drawable-mdpi/habit_minus_yellow.webp
deleted file mode 100644
index 50f9af409..000000000
Binary files a/Habitica/res/drawable-mdpi/habit_minus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable-mdpi/habit_plus.webp b/Habitica/res/drawable-mdpi/habit_plus.webp
deleted file mode 100644
index 0bcec4fa5..000000000
Binary files a/Habitica/res/drawable-mdpi/habit_plus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-mdpi/habit_plus_disabled.webp b/Habitica/res/drawable-mdpi/habit_plus_disabled.webp
deleted file mode 100644
index 7db85c0fd..000000000
Binary files a/Habitica/res/drawable-mdpi/habit_plus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-mdpi/habit_plus_yellow.webp b/Habitica/res/drawable-mdpi/habit_plus_yellow.webp
deleted file mode 100644
index 3646a02d1..000000000
Binary files a/Habitica/res/drawable-mdpi/habit_plus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xhdpi/habit_minus.png b/Habitica/res/drawable-xhdpi/habit_minus.png
new file mode 100644
index 000000000..ba3194419
Binary files /dev/null and b/Habitica/res/drawable-xhdpi/habit_minus.png differ
diff --git a/Habitica/res/drawable-xhdpi/habit_minus.webp b/Habitica/res/drawable-xhdpi/habit_minus.webp
deleted file mode 100644
index 6babc15b9..000000000
Binary files a/Habitica/res/drawable-xhdpi/habit_minus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xhdpi/habit_minus_disabled.webp b/Habitica/res/drawable-xhdpi/habit_minus_disabled.webp
deleted file mode 100644
index d45440bb9..000000000
Binary files a/Habitica/res/drawable-xhdpi/habit_minus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xhdpi/habit_minus_yellow.webp b/Habitica/res/drawable-xhdpi/habit_minus_yellow.webp
deleted file mode 100644
index e6cf2c554..000000000
Binary files a/Habitica/res/drawable-xhdpi/habit_minus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xhdpi/habit_plus.png b/Habitica/res/drawable-xhdpi/habit_plus.png
new file mode 100644
index 000000000..7fcfd8086
Binary files /dev/null and b/Habitica/res/drawable-xhdpi/habit_plus.png differ
diff --git a/Habitica/res/drawable-xhdpi/habit_plus.webp b/Habitica/res/drawable-xhdpi/habit_plus.webp
deleted file mode 100644
index e4da25a8e..000000000
Binary files a/Habitica/res/drawable-xhdpi/habit_plus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xhdpi/habit_plus_disabled.webp b/Habitica/res/drawable-xhdpi/habit_plus_disabled.webp
deleted file mode 100644
index 4f769a6dd..000000000
Binary files a/Habitica/res/drawable-xhdpi/habit_plus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xhdpi/habit_plus_yellow.webp b/Habitica/res/drawable-xhdpi/habit_plus_yellow.webp
deleted file mode 100644
index 154bc1279..000000000
Binary files a/Habitica/res/drawable-xhdpi/habit_plus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_minus.png b/Habitica/res/drawable-xxhdpi/habit_minus.png
new file mode 100644
index 000000000..1c41037cb
Binary files /dev/null and b/Habitica/res/drawable-xxhdpi/habit_minus.png differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_minus.webp b/Habitica/res/drawable-xxhdpi/habit_minus.webp
deleted file mode 100644
index 0d9ff3d5a..000000000
Binary files a/Habitica/res/drawable-xxhdpi/habit_minus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_minus_disabled.webp b/Habitica/res/drawable-xxhdpi/habit_minus_disabled.webp
deleted file mode 100644
index f726b7f92..000000000
Binary files a/Habitica/res/drawable-xxhdpi/habit_minus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_minus_yellow.webp b/Habitica/res/drawable-xxhdpi/habit_minus_yellow.webp
deleted file mode 100644
index cc74edb2a..000000000
Binary files a/Habitica/res/drawable-xxhdpi/habit_minus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_plus.png b/Habitica/res/drawable-xxhdpi/habit_plus.png
new file mode 100644
index 000000000..7d13f6010
Binary files /dev/null and b/Habitica/res/drawable-xxhdpi/habit_plus.png differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_plus.webp b/Habitica/res/drawable-xxhdpi/habit_plus.webp
deleted file mode 100644
index ecb242c12..000000000
Binary files a/Habitica/res/drawable-xxhdpi/habit_plus.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_plus_disabled.webp b/Habitica/res/drawable-xxhdpi/habit_plus_disabled.webp
deleted file mode 100644
index 2b49dc939..000000000
Binary files a/Habitica/res/drawable-xxhdpi/habit_plus_disabled.webp and /dev/null differ
diff --git a/Habitica/res/drawable-xxhdpi/habit_plus_yellow.webp b/Habitica/res/drawable-xxhdpi/habit_plus_yellow.webp
deleted file mode 100644
index e10ee4ca7..000000000
Binary files a/Habitica/res/drawable-xxhdpi/habit_plus_yellow.webp and /dev/null differ
diff --git a/Habitica/res/drawable/habit_circle.xml b/Habitica/res/drawable/habit_circle.xml
new file mode 100644
index 000000000..ce45c3c12
--- /dev/null
+++ b/Habitica/res/drawable/habit_circle.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Habitica/res/drawable/habit_circle_disabled.xml b/Habitica/res/drawable/habit_circle_disabled.xml
new file mode 100644
index 000000000..a28001791
--- /dev/null
+++ b/Habitica/res/drawable/habit_circle_disabled.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Habitica/res/drawable/task_background.xml b/Habitica/res/drawable/task_background.xml
new file mode 100644
index 000000000..b803f0bfa
--- /dev/null
+++ b/Habitica/res/drawable/task_background.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/Habitica/res/layout/activity_main.xml b/Habitica/res/layout/activity_main.xml
index 5af821060..b6f799d88 100644
--- a/Habitica/res/layout/activity_main.xml
+++ b/Habitica/res/layout/activity_main.xml
@@ -7,7 +7,7 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.habitrpg.android.habitica.ui.activities.MainActivity"
- android:background="@color/gray_700">
+ android:background="@color/white">
@@ -32,7 +32,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:titleEnabled="false"
- app:contentScrim="?attr/colorPrimaryDark"
+ app:contentScrim="?attr/headerBackgroundColor"
app:expandedTitleMarginEnd="?attr/actionBarSize"
app:expandedTitleMarginStart="0dp"
app:layout_scrollFlags="scroll|exitUntilCollapsed">
@@ -50,8 +50,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize"
- android:theme="@style/Toolbar"
- android:background="?attr/colorPrimaryDark"
+ android:theme="@style/Toolbar.Modern"
+ android:background="?attr/headerBackgroundColor"
app:layout_collapseMode="pin"
app:popupTheme="@style/Theme.AppCompat.Light">
@@ -75,7 +78,7 @@
android:layout_height="36dp"
android:drawablePadding="6dp"
android:gravity="center"
- android:textColor="?textColorSecondaryDark"
+ android:textColor="?headerTextColor"
android:textSize="14sp"
tools:text="Lvl 12 Warrior"/>
@@ -96,6 +99,6 @@
android:id="@+id/currencyView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- app:hasLightBackground="false"/>
+ app:hasLightBackground="true"/>
\ No newline at end of file
diff --git a/Habitica/res/layout/checklist_indicator.xml b/Habitica/res/layout/checklist_indicator.xml
new file mode 100644
index 000000000..eee81a585
--- /dev/null
+++ b/Habitica/res/layout/checklist_indicator.xml
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Habitica/res/layout/daily_item_card.xml b/Habitica/res/layout/daily_item_card.xml
index 3545c3151..0b58c3ff6 100644
--- a/Habitica/res/layout/daily_item_card.xml
+++ b/Habitica/res/layout/daily_item_card.xml
@@ -9,226 +9,63 @@
android:orientation="vertical">
-
+ android:layout_height="wrap_content"
+ android:layout_marginHorizontal="@dimen/task_spacing_horizontal"
+ android:layout_marginVertical="@dimen/task_spacing_vertical"
+ android:background="@drawable/task_background"
+ android:clipChildren="true"
+ android:minHeight="@dimen/task_min_height">
-
-
-
-
-
-
-
-
+ android:orientation="vertical">
+ android:orientation="horizontal"
+ android:baselineAligned="false"
+ android:minHeight="@dimen/task_min_height">
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:layout_gravity="center_vertical"
+ android:background="@color/transparent"
+ android:src="@drawable/ic_warning_black"
+ android:layout_marginLeft="@dimen/spacing_small"
+ android:layout_marginRight="@dimen/spacing_small"/>
+
-
-
-
-
-
-
-
-
-
-
+ android:id="@+id/checklistView"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical" />
-
-
-
-
-
-
-
-
-
diff --git a/Habitica/res/layout/dialog_yesterdaily_task.xml b/Habitica/res/layout/dialog_yesterdaily_task.xml
index 85f60e087..60884e21a 100644
--- a/Habitica/res/layout/dialog_yesterdaily_task.xml
+++ b/Habitica/res/layout/dialog_yesterdaily_task.xml
@@ -4,7 +4,7 @@
android:minHeight="60dp"
android:elevation="2dp"
android:layout_margin="4dp"
- android:background="@drawable/layout_rounded_bg"
+ android:background="@drawable/task_background"
android:orientation="vertical"
android:padding="0dp">
-
-
-
+ android:layout_height="wrap_content"
+ android:background="@color/white">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
diff --git a/Habitica/res/layout/reward_item_card.xml b/Habitica/res/layout/reward_item_card.xml
index 1a84a1846..32987d455 100644
--- a/Habitica/res/layout/reward_item_card.xml
+++ b/Habitica/res/layout/reward_item_card.xml
@@ -6,62 +6,18 @@
android:background="@color/white">
+ android:orientation="horizontal"
+ android:layout_marginHorizontal="@dimen/task_spacing_horizontal"
+ android:layout_marginVertical="@dimen/task_spacing_vertical"
+ android:background="@drawable/task_background"
+ android:clipChildren="true"
+ android:minHeight="@dimen/task_min_height">
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -91,7 +47,7 @@
android:id="@+id/gold_icon"
android:layout_width="22dp"
android:layout_height="22dp"
- android:paddingBottom="8dp"/>
+ android:paddingBottom="2dp"/>
-
-
\ No newline at end of file
diff --git a/Habitica/res/layout/task_main_content.xml b/Habitica/res/layout/task_main_content.xml
new file mode 100644
index 000000000..9b84653ab
--- /dev/null
+++ b/Habitica/res/layout/task_main_content.xml
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Habitica/res/layout/todo_item_card.xml b/Habitica/res/layout/todo_item_card.xml
index dde8814f9..963544f5f 100644
--- a/Habitica/res/layout/todo_item_card.xml
+++ b/Habitica/res/layout/todo_item_card.xml
@@ -1,7 +1,5 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ android:layout_marginHorizontal="@dimen/task_spacing_horizontal"
+ android:layout_marginVertical="@dimen/task_spacing_vertical"
+ android:background="@drawable/task_background"
+ android:clipChildren="true"
+ android:minHeight="@dimen/task_min_height">
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Habitica/res/values/attrs.xml b/Habitica/res/values/attrs.xml
index 9626196e1..0ecb2be9b 100644
--- a/Habitica/res/values/attrs.xml
+++ b/Habitica/res/values/attrs.xml
@@ -23,6 +23,9 @@
+
+
+
diff --git a/Habitica/res/values/dimens.xml b/Habitica/res/values/dimens.xml
index c4ac4e1b8..222be44ee 100644
--- a/Habitica/res/values/dimens.xml
+++ b/Habitica/res/values/dimens.xml
@@ -32,20 +32,20 @@
- 54dp
- 50dp
+ 40dp
+ 36dp
0.5dp
14dp
- 36dp
+ 24dp
50dp
2dp
- 30dp
- 25dp
+ 24dp
+ 20dp
- 16dp
- 16dp
+ 10dp
+ 8dp
8dp
6dp
90dp
@@ -65,7 +65,7 @@
99dp
124dp
4dp
- 16dp
+ 15dp
9dp
13dp
@@ -96,7 +96,7 @@
24dp
24dp
84dp
- 60dp
+ 50dp
@@ -119,4 +119,6 @@
16dp
12dp
5dp
+ 4dp
+ 10dp
diff --git a/Habitica/res/values/styles.xml b/Habitica/res/values/styles.xml
index 502f84545..1e494a552 100644
--- a/Habitica/res/values/styles.xml
+++ b/Habitica/res/values/styles.xml
@@ -50,6 +50,12 @@
- @style/SearchViewStyle
- @color/white
- @color/brand_50
+ - @color/white
+ - @color/gray_700
+ - @color/gray_10
+
+
+
@@ -200,9 +206,6 @@
- @drawable/activity_launch_background
-
-
+
+
+