Merge pull request #3 from icanit/master

UI Improvements
This commit is contained in:
inorichi 2015-11-30 19:00:23 +01:00
commit 01a8b13975
29 changed files with 181 additions and 89 deletions

View file

@ -67,14 +67,15 @@ public class DatabaseHelper {
private final String favoriteMangasWithUnreadQuery = String.format( private final String favoriteMangasWithUnreadQuery = String.format(
"SELECT %1$s.*, COUNT(C.%4$s) AS %5$s FROM %1$s LEFT JOIN " + "SELECT %1$s.*, COUNT(C.%4$s) AS %5$s FROM %1$s LEFT JOIN " +
"(SELECT %4$s FROM %2$s WHERE %6$s = 0) AS C ON %3$s = C.%4$s " + "(SELECT %4$s FROM %2$s WHERE %6$s = 0) AS C ON %3$s = C.%4$s " +
"WHERE %7$s = 1 GROUP BY %3$s", "WHERE %7$s = 1 GROUP BY %3$s ORDER BY %1$s.%8$s",
MangaTable.TABLE, MangaTable.TABLE,
ChapterTable.TABLE, ChapterTable.TABLE,
MangaTable.TABLE + "." + MangaTable.COLUMN_ID, MangaTable.TABLE + "." + MangaTable.COLUMN_ID,
ChapterTable.COLUMN_MANGA_ID, ChapterTable.COLUMN_MANGA_ID,
MangaTable.COLUMN_UNREAD, MangaTable.COLUMN_UNREAD,
ChapterTable.COLUMN_READ, ChapterTable.COLUMN_READ,
MangaTable.COLUMN_FAVORITE MangaTable.COLUMN_FAVORITE,
MangaTable.COLUMN_TITLE
); );
public PreparedGetListOfObjects<Manga> getMangas() { public PreparedGetListOfObjects<Manga> getMangas() {

View file

@ -6,6 +6,7 @@ import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout; import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.view.ActionMode; import android.support.v7.view.ActionMode;
import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar; import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater; import android.view.LayoutInflater;

View file

@ -2,7 +2,9 @@ package eu.kanade.mangafeed.ui.manga.chapter;
import android.content.Context; import android.content.Context;
import android.support.v4.content.ContextCompat; import android.support.v4.content.ContextCompat;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView; import android.support.v7.widget.RecyclerView;
import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.TextView; import android.widget.TextView;
@ -14,14 +16,18 @@ import butterknife.Bind;
import butterknife.ButterKnife; import butterknife.ButterKnife;
import eu.kanade.mangafeed.R; import eu.kanade.mangafeed.R;
import eu.kanade.mangafeed.data.database.models.Chapter; import eu.kanade.mangafeed.data.database.models.Chapter;
import eu.kanade.mangafeed.data.download.DownloadService;
import rx.Observable;
public class ChaptersHolder extends RecyclerView.ViewHolder implements public class ChaptersHolder extends RecyclerView.ViewHolder implements
View.OnClickListener, View.OnLongClickListener { View.OnClickListener, View.OnLongClickListener {
private ChaptersAdapter adapter; private ChaptersAdapter adapter;
private Chapter item;
@Bind(R.id.chapter_title) TextView title; @Bind(R.id.chapter_title) TextView title;
@Bind(R.id.chapter_download_image) ImageView download_icon; @Bind(R.id.download_text) TextView downloadText;
@Bind(R.id.chapter_menu) ImageView chapterMenu;
@Bind(R.id.chapter_pages) TextView pages; @Bind(R.id.chapter_pages) TextView pages;
@Bind(R.id.chapter_date) TextView date; @Bind(R.id.chapter_date) TextView date;
@ -38,9 +44,11 @@ public class ChaptersHolder extends RecyclerView.ViewHolder implements
this.adapter = adapter; this.adapter = adapter;
itemView.setOnClickListener(this); itemView.setOnClickListener(this);
itemView.setOnLongClickListener(this); itemView.setOnLongClickListener(this);
chapterMenu.setOnClickListener(v -> v.post(() -> showPopupMenu(v)));
} }
public void onSetValues(Context context, Chapter chapter) { public void onSetValues(Context context, Chapter chapter) {
this.item = chapter;
title.setText(chapter.name); title.setText(chapter.name);
if (chapter.read) { if (chapter.read) {
@ -58,10 +66,11 @@ public class ChaptersHolder extends RecyclerView.ViewHolder implements
if (chapter.downloaded == Chapter.UNKNOWN) { if (chapter.downloaded == Chapter.UNKNOWN) {
adapter.getMangaChaptersFragment().getPresenter().checkIsChapterDownloaded(chapter); adapter.getMangaChaptersFragment().getPresenter().checkIsChapterDownloaded(chapter);
} }
if (chapter.downloaded == Chapter.DOWNLOADED) if (chapter.downloaded == Chapter.DOWNLOADED) {
download_icon.setImageResource(R.drawable.ic_action_delete_36dp); downloadText.setVisibility(View.VISIBLE);
else if (chapter.downloaded == Chapter.NOT_DOWNLOADED) } else if (chapter.downloaded == Chapter.NOT_DOWNLOADED) {
download_icon.setImageResource(R.drawable.ic_file_download_black_36dp); downloadText.setVisibility(View.INVISIBLE);
}
date.setText(sdf.format(new Date(chapter.date_upload))); date.setText(sdf.format(new Date(chapter.date_upload)));
toggleActivation(); toggleActivation();
@ -83,4 +92,37 @@ public class ChaptersHolder extends RecyclerView.ViewHolder implements
toggleActivation(); toggleActivation();
return true; return true;
} }
private void showPopupMenu(View view) {
// Create a PopupMenu, giving it the clicked view for an anchor
PopupMenu popup = new PopupMenu(adapter.getMangaChaptersFragment().getActivity(), view);
// Inflate our menu resource into the PopupMenu's Menu
popup.getMenuInflater().inflate(R.menu.chapter_single, popup.getMenu());
// Set a listener so we are notified if a menu item is clicked
popup.setOnMenuItemClickListener(menuItem -> {
switch (menuItem.getItemId()) {
case R.id.action_mark_as_read:
adapter.getMangaChaptersFragment().getPresenter().markChaptersRead(Observable.just(item), true);
return true;
case R.id.action_mark_as_unread:
adapter.getMangaChaptersFragment().getPresenter().markChaptersRead(Observable.just(item), false);
return true;
case R.id.action_download:
DownloadService.start(adapter.getMangaChaptersFragment().getActivity());
adapter.getMangaChaptersFragment().getPresenter().downloadChapters(Observable.just(item));
return true;
case R.id.action_delete:
adapter.getMangaChaptersFragment().getPresenter().deleteChapters(Observable.just(item));
return true;
}
return false;
});
// Finally show the PopupMenu
popup.show();
}
} }

View file

@ -169,7 +169,7 @@ public class ChaptersPresenter extends BasePresenter<ChaptersFragment> {
public void initSortIcon() { public void initSortIcon() {
if (getView() != null) { if (getView() != null) {
getView().setSortIcon(sortOrderAToZ);//TODO do we need save order for manga? getView().setSortIcon(sortOrderAToZ);//TODO manga.chapter_order
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

View file

@ -10,7 +10,7 @@
android:id="@+id/appbar" android:id="@+id/appbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/AppTheme.ActionBar"> android:theme="@style/ThemeOverlay.AppTheme.Dark">
<include <include
android:id="@+id/toolbar" android:id="@+id/toolbar"
@ -20,9 +20,10 @@
android:id="@+id/tabs" android:id="@+id/tabs"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:theme="@style/AppTheme.TabLayout" android:theme="@style/ThemeOverlay.AppTheme.Dark"
app:tabGravity="fill" app:tabGravity="fill"
app:tabIndicatorColor="@color/accent" /> android:background="@color/colorPrimary"
app:tabIndicatorColor="@color/white" />
</android.support.design.widget.AppBarLayout> </android.support.design.widget.AppBarLayout>
@ -31,6 +32,6 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="0px" android:layout_height="0px"
android:layout_weight="1" android:layout_weight="1"
android:background="@android:color/white" /> android:background="@color/white" />
</LinearLayout> </LinearLayout>

View file

@ -13,14 +13,14 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_gravity="center_vertical|center_horizontal" android:layout_gravity="center_vertical|center_horizontal"
android:visibility="gone" /> android:visibility="gone"/>
<GridView <GridView
android:id="@+id/gridView" android:id="@+id/gridView"
style="@style/AppTheme.GridView" style="@style/AppTheme.GridView"
android:layout_height="0dp" android:layout_height="0dp"
android:layout_weight="1" android:layout_weight="1"
android:numColumns="2" android:columnWidth="140dp"
tools:listitem="@layout/item_catalogue" /> tools:listitem="@layout/item_catalogue" />
<ProgressBar <ProgressBar
@ -29,6 +29,6 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical|center_horizontal" android:layout_gravity="center_vertical|center_horizontal"
android:visibility="gone" /> android:visibility="gone"/>
</LinearLayout> </LinearLayout>

View file

@ -7,7 +7,7 @@
android:id="@+id/gridView" android:id="@+id/gridView"
style="@style/AppTheme.GridView" style="@style/AppTheme.GridView"
android:choiceMode="multipleChoiceModal" android:choiceMode="multipleChoiceModal"
android:numColumns="2" android:columnWidth="140dp"
tools:listitem="@layout/item_catalogue" /> tools:listitem="@layout/item_catalogue" />
</FrameLayout> </FrameLayout>

View file

@ -1,16 +1,16 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<android.support.v4.widget.SwipeRefreshLayout <android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh" android:id="@+id/swipe_refresh"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_above="@+id/appbar_bottom" android:layout_above="@+id/toolbar_bottom"
android:orientation="vertical"> android:orientation="vertical">
<android.support.v7.widget.RecyclerView <android.support.v7.widget.RecyclerView
@ -25,23 +25,23 @@
</android.support.v4.widget.SwipeRefreshLayout> </android.support.v4.widget.SwipeRefreshLayout>
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar_bottom" <android.support.v7.widget.Toolbar
android:id="@+id/toolbar_bottom"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="?attr/actionBarSize"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:theme="@style/AppTheme.ActionBar"> android:background="@color/colorPrimary"
android:elevation="4dp"
android:gravity="top|start"
android:theme="@style/ThemeOverlay.AppTheme.Dark"
app:popupTheme="@style/AppTheme.Popup">
<android.support.v7.widget.Toolbar <android.support.v7.widget.ActionMenuView
android:id="@+id/toolbar_bottom" android:id="@+id/bottom_menu"
android:layout_width="match_parent" android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"/>
android:background="@color/colorPrimary" </android.support.v7.widget.Toolbar>
android:elevation="4dp"
android:gravity="top|start"
android:theme="@style/ThemeOverlay.AppTheme.Dark"
app:popupTheme="@style/AppTheme.Popup" />
</android.support.design.widget.AppBarLayout>
</RelativeLayout> </RelativeLayout>

View file

@ -20,7 +20,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="end" android:layout_gravity="end"
android:background="@color/md_red_300" android:background="@color/manga_unread_bg"
android:paddingBottom="1dp" android:paddingBottom="1dp"
android:paddingLeft="3dp" android:paddingLeft="3dp"
android:paddingRight="3dp" android:paddingRight="3dp"
@ -59,7 +59,7 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:ellipsize="middle" android:ellipsize="end"
android:maxLines="1" android:maxLines="1"
android:paddingLeft="8dp" android:paddingLeft="8dp"
android:paddingRight="8dp" android:paddingRight="8dp"

View file

@ -8,10 +8,11 @@
<RelativeLayout <RelativeLayout
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="20dp" android:layout_height="18dp"
android:id="@+id/relativeLayout"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_toLeftOf="@+id/chapter_download_image" android:layout_alignParentLeft="true"
android:layout_toStartOf="@+id/chapter_download_image"> android:layout_alignParentStart="true">
<TextView <TextView
android:id="@+id/chapter_pages" android:id="@+id/chapter_pages"
@ -20,7 +21,9 @@
android:ellipsize="marquee" android:ellipsize="marquee"
android:singleLine="true" android:singleLine="true"
android:textSize="12sp" android:textSize="12sp"
tools:text="Pages: 45" /> tools:text="Pages: 45"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"/>
<TextView <TextView
android:id="@+id/chapter_date" android:id="@+id/chapter_date"
@ -29,32 +32,54 @@
android:ellipsize="marquee" android:ellipsize="marquee"
android:singleLine="true" android:singleLine="true"
android:textSize="12sp" android:textSize="12sp"
tools:text="22/02/2016" tools:text="22/02/2016"/>
android:layout_alignParentRight="true" />
</RelativeLayout>
<TextView
android:id="@+id/download_text"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:textSize="12sp"
android:textColor="@color/accent_text"
android:text="@string/chapter_downloaded"
android:layout_centerVertical="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
<TextView <TextView
android:id="@+id/chapter_title" android:id="@+id/chapter_title"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignWithParentIfMissing="true" android:layout_alignWithParentIfMissing="true"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textSize="20sp" android:textSize="20sp"
android:ellipsize="end"
android:maxLines="1"
tools:text="Title" tools:text="Title"
android:layout_toLeftOf="@+id/chapter_download_image" android:layout_alignParentTop="true"
android:layout_toStartOf="@+id/chapter_download_image" /> android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toStartOf="@+id/relativeLayout2"
android:layout_toLeftOf="@+id/relativeLayout2"/>
<ImageView <RelativeLayout
android:id="@+id/chapter_download_image" android:layout_width="30dp"
android:layout_width="wrap_content" android:layout_height="30dp"
android:layout_height="wrap_content" android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
android:layout_gravity="center_vertical" android:layout_gravity="center_vertical"
android:gravity="center" android:gravity="center"
android:layout_alignParentRight="true" android:id="@+id/relativeLayout2"
tools:src="@drawable/ic_file_download_black_48dp" android:layout_above="@+id/relativeLayout">
/> <ImageView
android:id="@+id/chapter_menu"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitXY"
android:src="@drawable/ic_more_horiz_black_36dp"
android:background="?android:selectableItemBackground"/>
</RelativeLayout>
</RelativeLayout> </RelativeLayout>

View file

@ -13,8 +13,8 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize" android:layout_height="?attr/actionBarSize"
android:background="@color/reader_menu_background" android:background="@color/reader_menu_background"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" android:theme="@style/ThemeOverlay.AppTheme.Dark"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light" app:popupTheme="@style/AppTheme.Popup"
android:elevation="4dp" /> android:elevation="4dp" />
<LinearLayout <LinearLayout
@ -46,7 +46,9 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
android:layout_gravity="center_vertical" /> android:layout_gravity="center_vertical"
android:theme="@style/ThemeOverlay.AppTheme.Dark"
/>
<TextView <TextView
android:id="@+id/total_pages" android:id="@+id/total_pages"

View file

@ -2,7 +2,7 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent" android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:background="#333333" android:background="@color/reader_menu_background"
android:paddingRight="10dp" android:paddingRight="10dp"
android:paddingLeft="5dp" android:paddingLeft="5dp"
android:paddingTop="5dp" android:paddingTop="5dp"

View file

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item android:id="@+id/action_download"
android:title="@string/action_download"
android:icon="@drawable/ic_file_download"
app:showAsAction="ifRoom"/>
<item android:id="@+id/action_delete"
android:title="@string/action_delete"
android:icon="@drawable/ic_action_delete"
app:showAsAction="ifRoom"/>
<item android:id="@+id/action_mark_as_read"
android:title="@string/action_mark_as_read"
android:icon="@drawable/ic_action_done_all"
app:showAsAction="ifRoom"/>
<item android:id="@+id/action_mark_as_unread"
android:title="@string/action_mark_as_unread"
android:icon="@drawable/ic_action_undone_all"
app:showAsAction="ifRoom"/>
</menu>

View file

@ -1,34 +1,32 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorAccent">#FFEA00</color> <color name="colorAccent">@color/md_blue_A400</color>
<color name="colorPrimary">#607D8B</color> <color name="colorPrimary">@color/md_blue_grey_500</color>
<color name="colorPrimaryDark">#455A64</color> <color name="colorPrimaryDark">@color/md_blue_grey_700</color>
<color name="colorPrimarySuperDark">#263238</color> <color name="colorPrimarySuperDark">@color/md_blue_grey_900</color>
<color name="colorPrimaryLight">#CFD8DC</color> <color name="colorPrimaryLight">@color/md_blue_grey_100</color>
<color name="colorBackgroundLight">#ECEFF1</color> <color name="colorBackgroundLight">@color/md_blue_grey_50</color>
<color name="primary">@color/colorPrimary</color> <color name="primary">@color/colorPrimary</color>
<color name="primary_dark">@color/colorPrimaryDark</color> <color name="primary_dark">@color/colorPrimaryDark</color>
<color name="primary_light">@color/colorPrimaryLight</color> <color name="primary_light">@color/colorPrimaryLight</color>
<color name="divider">#CFD8DC</color> <color name="divider">@color/md_light_dividers</color>
<color name="white">#FFFFFF</color>
<color name="primary_text">#DD000000</color>
<color name="secondary_text">#8B000000</color>
<color name="hint_text">#64000000</color>
<color name="icons">#FFFFFF</color>
<color name="white">@color/md_white_1000</color>
<color name="primary_text">@color/md_light_primary_text</color>
<color name="secondary_text">@color/md_light_secondary</color>
<color name="hint_text">@color/md_light_disabled</color>
<color name="accent_text">@color/md_green_900</color>
<color name="list_choice_pressed_bg_light">@color/colorPrimaryLight</color> <color name="list_choice_pressed_bg_light">@color/colorPrimaryLight</color>
<color name="super_light_grey">#FAFAFA</color> <color name="manga_unread_bg">@color/colorAccent</color>
<color name="line_grey">#D7D7D7</color>
<color name="light_grey">#D4D4D4</color> <color name="super_light_grey">@color/md_grey_50</color>
<color name="bg_light_grey">#E9E9E9</color> <color name="line_grey">@color/md_light_dividers</color>
<color name="library_text_background">#E8E8E8</color> <color name="light_grey">@color/md_grey_300</color>
<color name="page_number_background">#AAE9E9E9</color> <color name="page_number_background">#AAE9E9E9</color>
<color name="reader_menu_background">#333333</color> <color name="reader_menu_background">@color/colorPrimarySuperDark</color>
</resources> </resources>

View file

@ -85,6 +85,7 @@
<string name="manga_chapters_tab">Chapters</string> <string name="manga_chapters_tab">Chapters</string>
<string name="selected_chapters_title">Selected: %1$d</string> <string name="selected_chapters_title">Selected: %1$d</string>
<string name="manga_chapter_no_title">No title</string> <string name="manga_chapter_no_title">No title</string>
<string name="chapter_downloaded">DOWNLOADED</string>
<!-- Reader activity --> <!-- Reader activity -->
<string name="downloading">Downloading…</string> <string name="downloading">Downloading…</string>

View file

@ -17,21 +17,17 @@
</style> </style>
<style name="ThemeOverlay.AppTheme.Dark" parent="ThemeOverlay.AppCompat.Dark"> <style name="ThemeOverlay.AppTheme.Dark" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="colorAccent">@color/white</item>
<item name="android:windowActionModeOverlay">true</item> <item name="android:windowActionModeOverlay">true</item>
<item name="windowActionModeOverlay">true</item> <item name="windowActionModeOverlay">true</item>
</style>
<style name="AppTheme.Popup" parent="@style/ThemeOverlay.AppTheme.Dark">
<item name="android:background">@color/colorPrimary</item>
<item name="android:textColor">@color/white</item>
</style>
<style name="AppTheme.ActionBar" parent="@style/ThemeOverlay.AppTheme.Dark">
<item name="android:actionModeBackground">@color/colorPrimarySuperDark</item> <item name="android:actionModeBackground">@color/colorPrimarySuperDark</item>
<item name="actionModeBackground">@color/colorPrimarySuperDark</item> <item name="actionModeBackground">@color/colorPrimarySuperDark</item>
</style> </style>
<style name="AppTheme.TabLayout" parent="@style/ThemeOverlay.AppTheme.Dark">
<style name="AppTheme.Popup" parent="@style/ThemeOverlay.AppTheme.Dark">
<item name="colorAccent">@color/white</item>
<item name="android:background">@color/colorPrimary</item> <item name="android:background">@color/colorPrimary</item>
<item name="android:textColor">@color/white</item> <item name="android:textColor">@color/white</item>
</style> </style>
@ -84,6 +80,6 @@
</style> </style>
<style name="grey_text"> <style name="grey_text">
<item name="android:textColor">#e0e0e0</item> <item name="android:textColor">@color/md_grey_300</item>
</style> </style>
</resources> </resources>