mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
tweak member-delete icon for dark-theme
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 220 B |
Binary file not shown.
|
Before Width: | Height: | Size: 159 B |
Binary file not shown.
|
Before Width: | Height: | Size: 245 B |
Binary file not shown.
|
Before Width: | Height: | Size: 308 B |
@@ -29,6 +29,6 @@
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:background="#00ffffff"
|
||||
android:src="@drawable/ic_menu_remove_holo_light" />
|
||||
android:src="@drawable/ic_close_white_24dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -1,6 +1,7 @@
|
||||
package org.thoughtcrime.securesms.util;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
@@ -35,8 +36,8 @@ public class DynamicTheme {
|
||||
return R.style.TextSecure_LightTheme;
|
||||
}
|
||||
|
||||
public static boolean isDarkTheme(Activity activity) {
|
||||
return Prefs.getTheme(activity).equals(DARK);
|
||||
public static boolean isDarkTheme(Context context) {
|
||||
return Prefs.getTheme(context).equals(DARK);
|
||||
}
|
||||
|
||||
private static final class OverridePendingTransition {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package org.thoughtcrime.securesms.util;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Color;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.view.LayoutInflater;
|
||||
@@ -117,6 +118,7 @@ public class SelectedRecipientsAdapter extends BaseAdapter {
|
||||
name.setText(dcContact.getDisplayName());
|
||||
phone.setText(dcContact.getAddr());
|
||||
delete.setVisibility(modifiable ? View.VISIBLE : View.GONE);
|
||||
delete.setColorFilter(DynamicTheme.isDarkTheme(context)? Color.WHITE : Color.BLACK);
|
||||
delete.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
||||
Reference in New Issue
Block a user