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"> - + + + + + + - - -