Use list icon instead of cloud icon

pull/1002/head
Alex Baker 4 years ago
parent 6303dbc958
commit 1a859b99bc

@ -101,8 +101,8 @@ class FilterViewHolder : RecyclerView.ViewHolder {
}
return when (filter) {
is TagFilter -> R.drawable.ic_outline_label_24px
is GtasksFilter -> R.drawable.ic_outline_cloud_24px
is CaldavFilter -> R.drawable.ic_outline_cloud_24px
is GtasksFilter -> R.drawable.ic_list_24px
is CaldavFilter -> R.drawable.ic_list_24px
is CustomFilter -> R.drawable.ic_outline_filter_list_24px
is PlaceFilter -> R.drawable.ic_outline_place_24px
else -> filter.icon

@ -182,7 +182,7 @@ public abstract class BaseListSettingsActivity extends ThemedInjectingAppCompatA
themeColor.applyToSystemBars(this);
Integer icon = CustomIcons.getIconResId(selectedIcon);
if (icon == null) {
icon = CustomIcons.getIconResId(CustomIcons.CLOUD);
icon = CustomIcons.getIconResId(CustomIcons.LIST);
}
DrawableUtil.setLeftDrawable(this, this.icon, icon);
getLeftDrawable(this.icon).setTint(getColor(R.color.icon_tint_with_alpha));

@ -6,10 +6,9 @@ import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.todoroo.andlib.data.Property
import com.todoroo.andlib.data.Table
import com.todoroo.astrid.data.Task
import org.tasks.themes.CustomIcons.CLOUD
import org.tasks.themes.CustomIcons.LIST
@Entity(tableName = "caldav_lists")
class CaldavCalendar : Parcelable {
@ -59,7 +58,7 @@ class CaldavCalendar : Parcelable {
}
fun getIcon(): Int? {
return (if (icon == null) CLOUD else icon!!)
return (if (icon == null) LIST else icon!!)
}
fun setIcon(icon: Int?) {

@ -6,9 +6,8 @@ import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.todoroo.andlib.data.Property
import com.todoroo.andlib.data.Table
import org.tasks.themes.CustomIcons.CLOUD
import org.tasks.themes.CustomIcons.LIST
@Entity(tableName = "google_task_lists")
class GoogleTaskList : Parcelable {
@ -61,7 +60,7 @@ class GoogleTaskList : Parcelable {
}
fun getIcon(): Int? {
return (if (icon == null) CLOUD else icon!!)
return (if (icon == null) LIST else icon!!)
}
fun setIcon(icon: Int?) {

@ -6,7 +6,6 @@ object CustomIcons {
const val LABEL = 1
const val FILTER = 2
const val CLOUD = 3
const val ALL_INBOX = 4
const val HISTORY = 6
const val TODAY = 7
@ -17,7 +16,7 @@ object CustomIcons {
var ICONS = mapOf(
LABEL to R.drawable.ic_outline_label_24px,
FILTER to R.drawable.ic_outline_filter_list_24px,
CLOUD to R.drawable.ic_outline_cloud_24px,
3 to R.drawable.ic_outline_cloud_24px,
ALL_INBOX to R.drawable.ic_outline_all_inbox_24px,
5 to R.drawable.ic_outline_label_off_24px,
HISTORY to R.drawable.ic_outline_history_24px,

@ -121,10 +121,10 @@ public class ChipProvider {
chips.add(
newChip(
lists.getGoogleTaskList(task.getGoogleTaskList()),
R.drawable.ic_outline_cloud_24px));
R.drawable.ic_list_24px));
} else if (!isNullOrEmpty(task.getCaldav()) && !(filter instanceof CaldavFilter)) {
chips.add(
newChip(lists.getCaldavList(task.getCaldav()), R.drawable.ic_outline_cloud_24px));
newChip(lists.getCaldavList(task.getCaldav()), R.drawable.ic_list_24px));
}
}
String tagString = task.getTagsString();

@ -114,7 +114,7 @@ class ListFragment : TaskEditControlFragment() {
get() = R.layout.control_set_remote_list
override val icon: Int
get() = R.drawable.ic_outline_cloud_24px
get() = R.drawable.ic_list_24px
override fun controlId() = TAG
@ -178,7 +178,7 @@ class ListFragment : TaskEditControlFragment() {
textView.visibility = View.GONE
chipGroup.visibility = View.VISIBLE
chipGroup.removeAllViews()
val chip = chipProvider.newChip(selectedList, R.drawable.ic_outline_cloud_24px, true, true)
val chip = chipProvider.newChip(selectedList, R.drawable.ic_list_24px, true, true)
chip.isCloseIconVisible = true
chip.setOnClickListener { openPicker() }
chip.setOnCloseIconClickListener { setSelected(null) }

@ -10,7 +10,7 @@
<item
android:id="@+id/move_tasks"
android:icon="@drawable/ic_outline_cloud_24px"
android:icon="@drawable/ic_list_24px"
android:title="@string/move"
app:showAsAction="always" />

@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto">
<Preference
android:icon="@drawable/ic_outline_cloud_24px"
android:icon="@drawable/ic_list_24px"
android:key="@string/p_default_remote_list"
android:title="@string/default_sync"
app:allowDividerAbove="true" />

Loading…
Cancel
Save