From e2c17fef90c0d6d092680376dbc83ae563fcaa9b Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Wed, 24 Apr 2019 10:17:24 +0200 Subject: [PATCH] Various style fixes --- Habitica/build.gradle | 2 +- ...out_rounded_bg_brand_700_yellow_border.xml | 2 +- .../drawable/layout_rounded_bg_yellow_10.xml | 2 +- .../drawable/no_party_background_gradient.xml | 2 +- .../res/layout/activity_class_selection.xml | 6 +- .../res/layout/activity_report_message.xml | 17 ++- Habitica/res/layout/fragment_group_info.xml | 8 +- Habitica/res/layout/help_header.xml | 8 +- Habitica/res/values/colors.xml | 1 + Habitica/res/values/dimens.xml | 2 +- Habitica/res/values/strings.xml | 8 +- Habitica/res/values/styles.habitica.xml | 103 +++++------------- Habitica/res/values/styles.xml | 20 +++- .../RealmSocialLocalRepository.kt | 2 +- .../ui/activities/ClassSelectionActivity.kt | 10 +- .../ui/activities/ReportMessageActivity.kt | 13 ++- .../social/GroupInformationFragment.kt | 1 + .../habitica/ui/helpers/MarkdownParser.kt | 2 +- 18 files changed, 98 insertions(+), 111 deletions(-) diff --git a/Habitica/build.gradle b/Habitica/build.gradle index c3d3b0be9..695be6833 100644 --- a/Habitica/build.gradle +++ b/Habitica/build.gradle @@ -153,7 +153,7 @@ android { buildConfigField "String", "TESTING_LEVEL", "\"production\"" multiDexEnabled true - versionCode 2097 + versionCode 2099 versionName "1.9" } diff --git a/Habitica/res/drawable/layout_rounded_bg_brand_700_yellow_border.xml b/Habitica/res/drawable/layout_rounded_bg_brand_700_yellow_border.xml index 182bbe148..dfb258934 100644 --- a/Habitica/res/drawable/layout_rounded_bg_brand_700_yellow_border.xml +++ b/Habitica/res/drawable/layout_rounded_bg_brand_700_yellow_border.xml @@ -2,6 +2,6 @@ - + \ No newline at end of file diff --git a/Habitica/res/drawable/layout_rounded_bg_yellow_10.xml b/Habitica/res/drawable/layout_rounded_bg_yellow_10.xml index afa40b7a3..b3873fb1e 100644 --- a/Habitica/res/drawable/layout_rounded_bg_yellow_10.xml +++ b/Habitica/res/drawable/layout_rounded_bg_yellow_10.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/Habitica/res/drawable/no_party_background_gradient.xml b/Habitica/res/drawable/no_party_background_gradient.xml index 016a162ec..792a5b12d 100644 --- a/Habitica/res/drawable/no_party_background_gradient.xml +++ b/Habitica/res/drawable/no_party_background_gradient.xml @@ -3,7 +3,7 @@ + android:gravity="center_horizontal" + style="@style/Body2" + android:lineSpacingExtra="4sp"/> diff --git a/Habitica/res/layout/activity_report_message.xml b/Habitica/res/layout/activity_report_message.xml index c03b6be3f..17f80237a 100644 --- a/Habitica/res/layout/activity_report_message.xml +++ b/Habitica/res/layout/activity_report_message.xml @@ -62,17 +62,21 @@ android:layout_height="wrap_content" tools:text="Report NAME for violation:" android:textColor="@color/gray_10" - android:textSize="14sp" - android:textStyle="bold" + style="@style/Caption1" android:layout_marginBottom="@dimen/spacing_medium" - android:layout_marginStart="12dp"/> + android:layout_marginStart="13dp"/> + android:textColor="@color/gray_50" + style="@style/TextInputEditText"/> diff --git a/Habitica/res/layout/fragment_group_info.xml b/Habitica/res/layout/fragment_group_info.xml index abc7e0d84..845fcd35d 100644 --- a/Habitica/res/layout/fragment_group_info.xml +++ b/Habitica/res/layout/fragment_group_info.xml @@ -98,7 +98,7 @@ - + android:gravity="center" + style="@style/Body2" + android:lineSpacingExtra="4sp"/> \ No newline at end of file diff --git a/Habitica/res/values/colors.xml b/Habitica/res/values/colors.xml index 6772bde35..72fdd2bd5 100644 --- a/Habitica/res/values/colors.xml +++ b/Habitica/res/values/colors.xml @@ -96,6 +96,7 @@ #000000 #00000000 + #00FFFFFF #ffb5b5b5 diff --git a/Habitica/res/values/dimens.xml b/Habitica/res/values/dimens.xml index b6043347f..a844a4b0a 100644 --- a/Habitica/res/values/dimens.xml +++ b/Habitica/res/values/dimens.xml @@ -105,7 +105,7 @@ 40dp 56dp 16dp - 6dp + 4dp 18dp 21dp 6dp diff --git a/Habitica/res/values/strings.xml b/Habitica/res/values/strings.xml index 294599ff7..84ca937f7 100644 --- a/Habitica/res/values/strings.xml +++ b/Habitica/res/values/strings.xml @@ -355,10 +355,10 @@ Rogue Mage Healer - Warriors score more and better \“critical hits\”, which randomly give bonus Gold, Experience, and drop chance for scoring a task. They also deal heavy damage to boss monsters. Play a Warrior if you find motivation from unpredictable jackpot-style rewards, or want to dish out the hurt in boss Quests! - Mages learn swiftly, gaining Experience and Levels faster than other classes. They also get a great deal of Mana for using special abilities. Play a Mage if you enjoy the tactical game aspects of Habit, or if you are strongly motivated by leveling up and unlocking advanced features! - Rogues love to accumulate wealth, gaining more Gold than anyone else, and are adept at finding random items. Their iconic Stealth ability lets them duck the consequences of missed Dailies. Play a Rogue if you find strong motivation from Rewards and Achievements, striving for loot and badges! - Healers stand impervious against harm, and extend that protection to others. Missed Dailies and bad Habits don\'t faze them much, and they have ways to recover Health from failure. Play a Healer if you enjoy assisting others in your Party, or if the idea of cheating Death through hard work inspires you! + Warriors score more critical hits and deal heavy damage to Bosses. Play a Warrior if you want to defeat monsters easily! Warrior benefit from a high Strength stat. + Mages learn Skills that damage Bosses and boost EXP and Mana. Play a Mage if you’re motivated by leveling up quickly! Mages benefit from a high Intelligence stat. + Rogues learn Skills that let them and their Party find more Gold and random drops. Play a Rogue if you want lots of items and Gold! Rogues benefit from a high Perception stat. + Healers learn Skills that can heal and protect themselves and their Party. Play a Healer if you enjoy assisting others or avoiding damage! Healers benefit from a high Constitution stat. Select Class Opt Out Can\'t be bothered with classes? Want to choose later? Opt out - you\'ll be a warrior with no special abilities. You can read about the class system later on the wiki and enable classes at any time. diff --git a/Habitica/res/values/styles.habitica.xml b/Habitica/res/values/styles.habitica.xml index 3372603f9..e8b9bec53 100644 --- a/Habitica/res/values/styles.habitica.xml +++ b/Habitica/res/values/styles.habitica.xml @@ -10,146 +10,103 @@ \ No newline at end of file diff --git a/Habitica/res/values/styles.xml b/Habitica/res/values/styles.xml index 38090c64c..1129501d3 100644 --- a/Habitica/res/values/styles.xml +++ b/Habitica/res/values/styles.xml @@ -24,7 +24,7 @@ @style/PopupTheme @style/PopupTheme @style/PreferenceThemeOverlay.v14.Material - + @color/brand_400 @style/AlertDialogTheme @@ -393,6 +393,8 @@ + +