Skip to content

Commit 4a93415

Browse files
committed
🚀 changed ui colors and some other customizations in core module
1 parent fe629b5 commit 4a93415

File tree

13 files changed

+287
-539
lines changed

13 files changed

+287
-539
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,4 @@ To be added....
5757

5858
## Contact
5959

60-
Prasoon Kumar - [LinkedIn](https://linkedin.com/in/prasoon0)
61-
- [Email](mailto:prasoonk187@gmail.com) - [Facebook](https://www.facebook.com/prasoon0)
60+
Prasoon Kumar - [LinkedIn](https://linkedin.com/in/prasoon0) - [Email](mailto:prasoonk187@gmail.com) - [Facebook](https://www.facebook.com/prasoon0)

common/core-ui/src/main/res/values/colors.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<color name="cyan_blue_300">#89B2FF</color>
55
<color name="coarse_wool_900">#1C202F</color>
66
<color name="black_iris_900">#2A3041</color>
7-
<color name="blue_500">#3654AB</color>
8-
<color name="blue_700">#274296</color>
7+
<color name="blue_500">#6d68fd</color>
8+
<color name="blue_700">#5c57f2</color>
99
<color name="blue_haze_100">#CAD0E2</color>
1010
<color name="blue_haze_200">#a6B2D4</color>
1111
<color name="white">#FFFFFF</color>

common/core-ui/src/main/res/values/themes.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- Android with clean and multi module architecture -->
33

44
<resources xmlns:tools="http://schemas.android.com/tools">
5-
<style name="Theme.StudyJournal" parent="Theme.MaterialComponents.Light.NoActionBar">
5+
<style name="Theme.StudyJournal" parent="Theme.MaterialComponents.DayNight.NoActionBar">
66
<!--Primary Colors.-->
77
<item name="colorPrimary">@color/blue_500</item>
88
<item name="colorPrimaryVariant">@color/blue_700</item>

features/main/build.gradle.kts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ configuration(
2020
"String",
2121
"GOOGLE_PLAY_URL",
2222
"\"market://details?id=com.matrix.studyjournal\""
23+
),
24+
ConfigField(
25+
"String",
26+
"GITHUB_URL",
27+
"\"https://github.com/it5prasoon/Study-Journal\""
2328
)
2429
)
2530
)

features/main/src/main/java/com/matrix/main/ui/settings/SettingsFragment.kt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import dagger.hilt.android.AndroidEntryPoint
1313
@AndroidEntryPoint
1414
class SettingsFragment(private val versionName: String) : PreferenceFragmentCompat(),
1515
Preference.OnPreferenceClickListener {
16+
1617
private val versionPreference: Preference? by lazy {
1718
findPreference(getString(R.string.version_key))
1819
}
@@ -21,6 +22,10 @@ class SettingsFragment(private val versionName: String) : PreferenceFragmentComp
2122
findPreference(getString(R.string.rate_app_key))
2223
}
2324

25+
private val githubLinkPreference: Preference? by lazy {
26+
findPreference(getString(R.string.github_link))
27+
}
28+
2429
private val privacyPolicyPreference: Preference? by lazy {
2530
findPreference(getString(R.string.privacy_policy_key))
2631
}
@@ -30,6 +35,7 @@ class SettingsFragment(private val versionName: String) : PreferenceFragmentComp
3035
versionPreference?.let { it.summary = versionName }
3136
versionPreference?.onPreferenceClickListener = this
3237
rateAppPreference?.onPreferenceClickListener = this
38+
githubLinkPreference?.onPreferenceClickListener = this
3339
privacyPolicyPreference?.onPreferenceClickListener = this
3440
}
3541

@@ -44,10 +50,17 @@ class SettingsFragment(private val versionName: String) : PreferenceFragmentComp
4450
// Toast.makeText(activity, "URL will be uploading soon!", Toast.LENGTH_LONG).show()
4551
// true
4652
// }
53+
54+
getString(R.string.github_link) -> {
55+
openLink(BuildConfig.GITHUB_URL)
56+
true
57+
}
58+
4759
getString(R.string.version_key) -> {
4860
Toast.makeText(requireContext(), versionName, Toast.LENGTH_SHORT).show()
4961
true
5062
}
63+
5164
else -> false
5265
}
5366
}

features/main/src/main/res/drawable/ic_add_notes.xml

Lines changed: 0 additions & 131 deletions
This file was deleted.

0 commit comments

Comments
 (0)