Merge pull request #1717 from Naveen3Singh/master

Add tasks section in settings
This commit is contained in:
Tibor Kaputa 2022-05-17 10:15:42 +02:00 committed by GitHub
commit 9162607de6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 16 deletions

View file

@ -103,6 +103,7 @@ class SettingsActivity : SimpleActivity() {
settings_event_lists_label,
settings_widgets_label,
settings_events_label,
settings_tasks_label,
settings_migrating_label
).forEach {
it.setTextColor(getProperPrimaryColor())
@ -119,6 +120,7 @@ class SettingsActivity : SimpleActivity() {
settings_event_lists_holder,
settings_widgets_holder,
settings_events_holder,
settings_tasks_holder,
settings_migrating_holder
).forEach {
it.background.applyColorFilter(getProperBackgroundColor().getContrastColor())

View file

@ -138,22 +138,6 @@
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_allow_creating_tasks_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ripple_background">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_allow_creating_tasks"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/allow_creating_tasks" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/settings_sunday_first_holder"
style="@style/SettingsHolderCheckboxStyle"
@ -942,6 +926,39 @@
</RelativeLayout>
</LinearLayout>
<TextView
android:id="@+id/settings_tasks_label"
style="@style/SettingsSectionLabelStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/tasks" />
<LinearLayout
android:id="@+id/settings_tasks_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/medium_margin"
android:background="@drawable/section_holder_stroke"
android:orientation="vertical">
<RelativeLayout
android:id="@+id/settings_allow_creating_tasks_holder"
style="@style/SettingsHolderCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/ripple_all_corners">
<com.simplemobiletools.commons.views.MyAppCompatCheckbox
android:id="@+id/settings_allow_creating_tasks"
style="@style/SettingsCheckboxStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/allow_creating_tasks" />
</RelativeLayout>
</LinearLayout>
<TextView
android:id="@+id/settings_migrating_label"
style="@style/SettingsSectionLabelStyle"