checkbox in off state: grey

auto upload cloud icon in on state: tint it
This commit is contained in:
tobiaskaminsky 2017-05-22 10:17:35 +02:00
parent a07b049887
commit 876a7d2e8a
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7
3 changed files with 3 additions and 4 deletions

View file

@ -334,8 +334,7 @@ public class FileListListAdapter extends BaseAdapter {
R.color.primary)); R.color.primary));
} else { } else {
view.setBackgroundColor(Color.WHITE); view.setBackgroundColor(Color.WHITE);
checkBoxV.setImageDrawable(DisplayUtils.tintDrawable(R.drawable.ic_checkbox_blank_outline, checkBoxV.setImageResource(R.drawable.ic_checkbox_blank_outline);
R.color.primary));
} }
checkBoxV.setVisibility(View.VISIBLE); checkBoxV.setVisibility(View.VISIBLE);
} }

View file

@ -35,6 +35,7 @@ import com.afollestad.sectionedrecyclerview.SectionedRecyclerViewAdapter;
import com.owncloud.android.R; import com.owncloud.android.R;
import com.owncloud.android.datamodel.SyncedFolderDisplayItem; import com.owncloud.android.datamodel.SyncedFolderDisplayItem;
import com.owncloud.android.datamodel.ThumbnailsCacheManager; import com.owncloud.android.datamodel.ThumbnailsCacheManager;
import com.owncloud.android.utils.DisplayUtils;
import java.io.File; import java.io.File;
import java.util.ArrayList; import java.util.ArrayList;
@ -188,7 +189,7 @@ public class FolderSyncAdapter extends SectionedRecyclerViewAdapter<FolderSyncAd
private void setSyncButtonActiveIcon(ImageButton syncStatusButton, boolean enabled) { private void setSyncButtonActiveIcon(ImageButton syncStatusButton, boolean enabled) {
if(enabled) { if(enabled) {
syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_on); syncStatusButton.setImageDrawable(DisplayUtils.tintDrawable(R.drawable.ic_cloud_sync_on, R.color.primary));
} else { } else {
syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_off); syncStatusButton.setImageResource(R.drawable.ic_cloud_sync_off);
} }

View file

@ -52,7 +52,6 @@
android:background="@color/transparent" android:background="@color/transparent"
android:clickable="true" android:clickable="true"
android:padding="@dimen/standard_half_padding" android:padding="@dimen/standard_half_padding"
android:tint="@color/primary"
android:src="@drawable/ic_cloud_sync_off"/> android:src="@drawable/ic_cloud_sync_off"/>
<ImageButton <ImageButton