Rename colorPrimaryDrawable to colorOppositeDrawable

This commit is contained in:
seven332 committed 2018-10-18 20:06:11 +08:00
1 parent d0e7f25fd9
commit 12beeedf29
4 files changed
+7 -7

No files matched your search

@@ -274,7 +274,7 @@ public class FavoritesScene extends BaseScene implements
refreshLayout.setHeaderTranslationY(paddingTopSB);
mLeftDrawable = new DrawerArrowDrawable(context, AttrResources.getAttrColor(context, R.attr.colorPrimaryDrawable));
mLeftDrawable = new DrawerArrowDrawable(context, AttrResources.getAttrColor(context, R.attr.colorOppositeDrawable));
mSearchBar.setLeftDrawable(mLeftDrawable);
mSearchBar.setRightDrawable(DrawableManager.getDrawable(context, R.drawable.v_magnify_x24));
mSearchBar.setHelper(this);
@@ -425,8 +425,8 @@ public final class GalleryListScene extends BaseScene
refreshLayout.setHeaderTranslationY(paddingTopSB);
mLeftDrawable = new DrawerArrowDrawable(context, AttrResources.getAttrColor(context, R.attr.colorPrimaryDrawable));
mRightDrawable = new AddDeleteDrawable(context, AttrResources.getAttrColor(context, R.attr.colorPrimaryDrawable));
mLeftDrawable = new DrawerArrowDrawable(context, AttrResources.getAttrColor(context, R.attr.colorOppositeDrawable));
mRightDrawable = new AddDeleteDrawable(context, AttrResources.getAttrColor(context, R.attr.colorOppositeDrawable));
mSearchBar.setLeftDrawable(mLeftDrawable);
mSearchBar.setRightDrawable(mRightDrawable);
mSearchBar.setHelper(this);
+1 -1
View File
@@ -23,7 +23,7 @@
<!-- For light theme, it's primary dark color -->
<!-- For dark theme, it's primary light color -->
<!-- For black theme, it's primary light color -->
<attr name="colorPrimaryDrawable" format="color"/>
<attr name="colorOppositeDrawable" format="color"/>
<attr name="toolbarPopupTheme" format="reference"/>
</declare-styleable>
+3 -3
View File
@@ -29,7 +29,7 @@
<item name="colorDivider">@color/divider_light</item>
<item name="colorToolbar">@color/colorPrimary</item>
<item name="colorPrimaryDrawable">@color/primary_drawable_light</item>
<item name="colorOppositeDrawable">@color/primary_drawable_light</item>
</style>
<style name="AppTheme.NoActionBar">
@@ -51,7 +51,7 @@
<item name="colorDivider">@color/divider_dark</item>
<item name="colorToolbar">?android:attr/colorBackground</item>
<item name="colorPrimaryDrawable">@color/primary_drawable_dark</item>
<item name="colorOppositeDrawable">@color/primary_drawable_dark</item>
</style>
<style name="AppTheme.Dark.NoActionBar">
@@ -76,7 +76,7 @@
<item name="colorDivider">@color/divider_dark</item>
<item name="colorToolbar">?android:attr/colorBackground</item>
<item name="colorPrimaryDrawable">@color/primary_drawable_dark</item>
<item name="colorOppositeDrawable">@color/primary_drawable_dark</item>
</style>
<style name="AppTheme.Black.NoActionBar">