Commit e29a722c authored by Thomas's avatar Thomas
Browse files

Improve theming

parent e178ce10
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ import android.view.MotionEvent;
import android.view.ViewGroup;
import android.widget.Toast;

import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;

import org.jetbrains.annotations.NotNull;
@@ -161,7 +160,7 @@ public class ReorderBottomMenuAdapter extends RecyclerView.Adapter<RecyclerView.
     * Simple example of a view holder that implements {@link ItemTouchHelperViewHolder} and has a
     * "handle" view that initiates a drag event when touched.
     */
    public class ReorderViewHolder extends RecyclerView.ViewHolder implements ItemTouchHelperViewHolder {
    public static class ReorderViewHolder extends RecyclerView.ViewHolder implements ItemTouchHelperViewHolder {

        DrawerReorderBinding binding;

@@ -172,12 +171,10 @@ public class ReorderBottomMenuAdapter extends RecyclerView.Adapter<RecyclerView.

        @Override
        public void onItemSelected() {
            itemView.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC3));
        }

        @Override
        public void onItemClear() {
            itemView.setBackgroundColor(0);
        }
    }
}
+1 −4
Original line number Diff line number Diff line
@@ -22,7 +22,6 @@ import android.view.MotionEvent;
import android.view.ViewGroup;
import android.widget.Toast;

import androidx.core.content.ContextCompat;
import androidx.recyclerview.widget.RecyclerView;

import org.jetbrains.annotations.NotNull;
@@ -183,7 +182,7 @@ public class ReorderTabAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol
     * Simple example of a view holder that implements {@link ItemTouchHelperViewHolder} and has a
     * "handle" view that initiates a drag event when touched.
     */
    public class ReorderViewHolder extends RecyclerView.ViewHolder implements ItemTouchHelperViewHolder {
    public static class ReorderViewHolder extends RecyclerView.ViewHolder implements ItemTouchHelperViewHolder {

        DrawerReorderBinding binding;

@@ -194,12 +193,10 @@ public class ReorderTabAdapter extends RecyclerView.Adapter<RecyclerView.ViewHol

        @Override
        public void onItemSelected() {
            itemView.setBackgroundColor(ContextCompat.getColor(context, R.color.mastodonC3));
        }

        @Override
        public void onItemClear() {
            itemView.setBackgroundColor(0);
        }
    }
}
+4 −4
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@

    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/appBar"
        android:backgroundTint="?backgroundColorLight"
        android:background="@color/cyanea_primary_dark_reference"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:fitsSystemWindows="true">
@@ -32,7 +32,7 @@
        <com.google.android.material.appbar.CollapsingToolbarLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:backgroundTint="?backgroundColorLight"
            android:background="@color/cyanea_primary_dark_reference"
            app:contentScrim="?colorPrimaryDark"
            android:fitsSystemWindows="true"
            app:expandedTitleGravity="top"
@@ -344,7 +344,7 @@
                android:id="@+id/toolbar"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                android:backgroundTint="?colorPrimaryDark"
                android:background="@color/cyanea_primary_dark_reference"
                app:layout_scrollFlags="scroll|enterAlways"
                app:layout_collapseMode="pin">

@@ -372,7 +372,7 @@
            android:id="@+id/account_tabLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="?backgroundColorLight"
            android:background="@color/cyanea_primary_dark_reference"
            app:tabGravity="fill"
            app:tabMode="fixed" />
    </com.google.android.material.appbar.AppBarLayout>
+2 −2
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@

    <com.google.android.material.appbar.AppBarLayout
        android:id="@+id/appBar"
        android:background="@color/cyanea_primary_reference"
        android:background="@color/cyanea_primary_dark_reference"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:fitsSystemWindows="true">
@@ -57,7 +57,7 @@
            android:id="@+id/schedule_tablayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="?backgroundColorLight"
            android:background="@color/cyanea_primary_dark_reference"
            app:tabGravity="fill"
            app:tabMode="scrollable" />
    </com.google.android.material.appbar.AppBarLayout>
+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:tabGravity="fill"
        android:background="?backgroundColorLight"
        android:background="@color/cyanea_primary_dark_reference"
        app:tabIndicatorColor="@color/cyanea_accent_dark_reference"
        app:tabMode="scrollable" />

Loading