Commit 896a3922 authored by Mohit Mali's avatar Mohit Mali Committed by Amit Kumar
Browse files

e theme improvement

parent e6b3d464
......@@ -5,6 +5,7 @@ import android.graphics.Color;
import androidx.annotation.DrawableRes;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.graphics.ColorUtils;
import androidx.recyclerview.widget.RecyclerView;
import android.util.TypedValue;
......@@ -100,7 +101,8 @@ public class NavigationAdapter extends RecyclerView.Adapter<NavigationAdapter.Vi
} else {
icon.setVisibility(View.GONE);
}
view.setBackgroundColor(isSelected ? view.getResources().getColor(R.color.bg_selected_item) : Color.TRANSPARENT);
// view.setBackgroundColor(isSelected ? view.getResources().getColor(R.color.bg_selected_item) : Color.TRANSPARENT);
view.setBackgroundColor(isSelected ? ColorUtils.setAlphaComponent(view.getResources().getColor(R.color.accent_color),20) : Color.TRANSPARENT);
int textColor = view.getResources().getColor(isSelected ? R.color.accent_color : R.color.fg_default);
name.setTextColor(textColor);
......
......@@ -34,6 +34,7 @@
android:id="@+id/header_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="gone"
android:background="?attr/colorAccent"
android:theme="@style/AppTheme">
......
......@@ -2,10 +2,10 @@
<resources>
<!-- Colors -->
<color name="primary">#ffffff</color>
<color name="primary_dark">#ffffff</color>
<color name="primary">@lineageos.platform:color/color_default_primary</color>
<color name="primary_dark">@lineageos.platform:color/color_default_primary_dark</color>
<color name="accent_color">@lineageos.platform:color/color_default_primary</color>
<color name="accent_color">@lineageos.platform:color/color_default_accent</color>
<color name="separator">#fbfbfb</color>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment