Loading app/src/main/java/it/niedermann/owncloud/notes/android/activity/NotesListViewActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ import android.app.SearchManager; import android.content.Intent; import android.database.sqlite.SQLiteException; import android.graphics.Color; import android.graphics.PorterDuff; import android.net.Uri; import android.os.AsyncTask; import android.os.Build; Loading @@ -21,6 +22,7 @@ import androidx.annotation.NonNull; import androidx.appcompat.view.ActionMode; import androidx.appcompat.widget.SearchView; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.core.graphics.drawable.DrawableCompat; import androidx.core.view.GravityCompat; import androidx.core.view.ViewCompat; import androidx.recyclerview.widget.LinearLayoutManager; Loading Loading @@ -78,6 +80,7 @@ import it.niedermann.owncloud.notes.util.NoteUtil; import static android.view.View.GONE; import static android.view.View.VISIBLE; import static it.niedermann.owncloud.notes.branding.BrandingUtil.getSecondaryForegroundColorDependingOnTheme; import static it.niedermann.owncloud.notes.util.ColorUtil.contrastRatioIsSufficient; import static it.niedermann.owncloud.notes.util.SSOUtil.askForNewAccount; Loading Loading @@ -442,10 +445,14 @@ public class NotesListViewActivity extends LockedActivity implements NoteClickLi binding.headerView.setBackgroundColor(mainColor); binding.appName.setTextColor(textColor); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { activityBinding.progressCircular.getIndeterminateDrawable().setColorFilter(getSecondaryForegroundColorDependingOnTheme(this, mainColor), PorterDuff.Mode.SRC_IN); } // TODO We assume, that the background of the spinner is always white activityBinding.swiperefreshlayout.setColorSchemeColors(contrastRatioIsSufficient(Color.WHITE, mainColor) ? mainColor : Color.BLACK); binding.appName.setTextColor(textColor); DrawableCompat.setTint(binding.logo.getDrawable(), textColor); adapter.applyBrand(mainColor, textColor); adapterCategories.applyBrand(mainColor, textColor); Loading app/src/main/res/layout/activity_edit.xml +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ <androidx.fragment.app.FragmentContainerView android:id="@+id/fragment_container_view" android:layout_width="match_parent" android:background="?attr/colorPrimary" android:layout_height="match_parent" /> </LinearLayout> No newline at end of file app/src/main/res/layout/activity_note_list_configuration.xml +1 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" Loading app/src/main/res/layout/activity_notes_list_view.xml +2 −2 Original line number Diff line number Diff line Loading @@ -99,7 +99,6 @@ android:id="@+id/swiperefreshlayout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/bg_normal" tools:context="it.niedermann.owncloud.notes.android.activity.NotesListViewActivity"> <FrameLayout Loading @@ -115,13 +114,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:indeterminateTint="@color/defaultBrand" tools:targetApi="lollipop" tools:visibility="gone" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/bg_highlighted" android:scrollbars="vertical" tools:listitem="@layout/item_notes_list_note_item" /> </FrameLayout> Loading app/src/main/res/layout/dialog_exception.xml +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ android:layout_marginBottom="@dimen/spacer_2x" android:layout_weight="1" android:background="@color/bg_highlighted" android:padding="8dp" android:padding="@dimen/spacer_1x" android:scrollbars="horizontal|vertical" android:textIsSelectable="true" android:typeface="monospace" Loading Loading
app/src/main/java/it/niedermann/owncloud/notes/android/activity/NotesListViewActivity.java +7 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,7 @@ import android.app.SearchManager; import android.content.Intent; import android.database.sqlite.SQLiteException; import android.graphics.Color; import android.graphics.PorterDuff; import android.net.Uri; import android.os.AsyncTask; import android.os.Build; Loading @@ -21,6 +22,7 @@ import androidx.annotation.NonNull; import androidx.appcompat.view.ActionMode; import androidx.appcompat.widget.SearchView; import androidx.coordinatorlayout.widget.CoordinatorLayout; import androidx.core.graphics.drawable.DrawableCompat; import androidx.core.view.GravityCompat; import androidx.core.view.ViewCompat; import androidx.recyclerview.widget.LinearLayoutManager; Loading Loading @@ -78,6 +80,7 @@ import it.niedermann.owncloud.notes.util.NoteUtil; import static android.view.View.GONE; import static android.view.View.VISIBLE; import static it.niedermann.owncloud.notes.branding.BrandingUtil.getSecondaryForegroundColorDependingOnTheme; import static it.niedermann.owncloud.notes.util.ColorUtil.contrastRatioIsSufficient; import static it.niedermann.owncloud.notes.util.SSOUtil.askForNewAccount; Loading Loading @@ -442,10 +445,14 @@ public class NotesListViewActivity extends LockedActivity implements NoteClickLi binding.headerView.setBackgroundColor(mainColor); binding.appName.setTextColor(textColor); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { activityBinding.progressCircular.getIndeterminateDrawable().setColorFilter(getSecondaryForegroundColorDependingOnTheme(this, mainColor), PorterDuff.Mode.SRC_IN); } // TODO We assume, that the background of the spinner is always white activityBinding.swiperefreshlayout.setColorSchemeColors(contrastRatioIsSufficient(Color.WHITE, mainColor) ? mainColor : Color.BLACK); binding.appName.setTextColor(textColor); DrawableCompat.setTint(binding.logo.getDrawable(), textColor); adapter.applyBrand(mainColor, textColor); adapterCategories.applyBrand(mainColor, textColor); Loading
app/src/main/res/layout/activity_edit.xml +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ <androidx.fragment.app.FragmentContainerView android:id="@+id/fragment_container_view" android:layout_width="match_parent" android:background="?attr/colorPrimary" android:layout_height="match_parent" /> </LinearLayout> No newline at end of file
app/src/main/res/layout/activity_note_list_configuration.xml +1 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" Loading
app/src/main/res/layout/activity_notes_list_view.xml +2 −2 Original line number Diff line number Diff line Loading @@ -99,7 +99,6 @@ android:id="@+id/swiperefreshlayout" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@color/bg_normal" tools:context="it.niedermann.owncloud.notes.android.activity.NotesListViewActivity"> <FrameLayout Loading @@ -115,13 +114,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:indeterminateTint="@color/defaultBrand" tools:targetApi="lollipop" tools:visibility="gone" /> <androidx.recyclerview.widget.RecyclerView android:id="@+id/recycler_view" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@color/bg_highlighted" android:scrollbars="vertical" tools:listitem="@layout/item_notes_list_note_item" /> </FrameLayout> Loading
app/src/main/res/layout/dialog_exception.xml +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ android:layout_marginBottom="@dimen/spacer_2x" android:layout_weight="1" android:background="@color/bg_highlighted" android:padding="8dp" android:padding="@dimen/spacer_1x" android:scrollbars="horizontal|vertical" android:textIsSelectable="true" android:typeface="monospace" Loading