forked from upstream-mirrors/quik
Fixed popup menu background color
This commit is contained in:
@@ -358,12 +358,18 @@ public class ThemeManager {
|
||||
sTextOnBackgroundPrimary = sResources.getColor(R.color.theme_light_text_primary);
|
||||
sTextOnBackgroundSecondary = sResources.getColor(R.color.theme_light_text_secondary);
|
||||
sRippleBackground = sResources.getDrawable(R.drawable.button_background_transparent);
|
||||
if (mActivity != null) {
|
||||
mActivity.getToolbar().setPopupTheme(R.style.PopupThemeLight);
|
||||
}
|
||||
break;
|
||||
case GREY:
|
||||
case BLACK:
|
||||
sTextOnBackgroundPrimary = sResources.getColor(R.color.theme_dark_text_primary);
|
||||
sTextOnBackgroundSecondary = sResources.getColor(R.color.theme_dark_text_secondary);
|
||||
sRippleBackground = sResources.getDrawable(R.drawable.button_background_transparent_light);
|
||||
if (mActivity != null) {
|
||||
mActivity.getToolbar().setPopupTheme(R.style.PopupTheme);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ public abstract class QKActivity extends ActionBarActivity {
|
||||
if (mToolbar == null) {
|
||||
throw new RuntimeException("Toolbar not found in BaseActivity layout.");
|
||||
} else {
|
||||
mToolbar.setPopupTheme(R.style.PopupTheme);
|
||||
mTitle = (QKTextView) mToolbar.findViewById(R.id.toolbar_title);
|
||||
setSupportActionBar(mToolbar);
|
||||
}
|
||||
@@ -216,7 +217,7 @@ public abstract class QKActivity extends ActionBarActivity {
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
protected Toolbar getToolbar() {
|
||||
public Toolbar getToolbar() {
|
||||
return mToolbar;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user