Fixed pic theme
This commit is contained in:
@@ -38,6 +38,10 @@ public class Themes {
|
|||||||
return Helper.GetContext().getResources().getIdentifier("BaseAmoledStyle", "style", Helper.GetContext().getPackageName());
|
return Helper.GetContext().getResources().getIdentifier("BaseAmoledStyle", "style", Helper.GetContext().getPackageName());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static int picFix() {
|
||||||
|
return Helper.GetContext().getResources().getIdentifier("ActionBarThemeFix", "style", Helper.GetContext().getPackageName());
|
||||||
|
}
|
||||||
|
|
||||||
public static int getAmoledImTheme() {
|
public static int getAmoledImTheme() {
|
||||||
return Helper.GetContext().getResources().getIdentifier("VkIm.Theme.VkApp.Amoled", "style", Helper.GetContext().getPackageName());
|
return Helper.GetContext().getResources().getIdentifier("VkIm.Theme.VkApp.Amoled", "style", Helper.GetContext().getPackageName());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,6 +36,18 @@
|
|||||||
<item name="toolbarIconsColor">?header_text</item>
|
<item name="toolbarIconsColor">?header_text</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="ActionBarThemeFix" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
|
||||||
|
<item name="android:textColorPrimary">@color/white</item>
|
||||||
|
<item name="android:textColorSecondary">?header_tint</item>
|
||||||
|
<item name="android:selectableItemBackground">@drawable/highlight_toolbar</item>
|
||||||
|
<item name="android:actionBarItemBackground">@drawable/highlight_icon_white_unbounded</item>
|
||||||
|
<item name="colorAccent">@color/white</item>
|
||||||
|
<item name="colorPrimary">@color/toolbar_blue_background</item>
|
||||||
|
<item name="layout_scrollFlags">enterAlways|scroll|snap</item>
|
||||||
|
<item name="titleTextAppearance">@style/ToolbarTitle</item>
|
||||||
|
<item name="toolbarIconsColor">?header_text</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
<style name="ActionBarTheme.ItemsFull" parent="@style/ActionBarTheme" />
|
<style name="ActionBarTheme.ItemsFull" parent="@style/ActionBarTheme" />
|
||||||
|
|
||||||
<style name="ActionBarTheme.Milk" parent="@style/ThemeOverlay.AppCompat.ActionBar">
|
<style name="ActionBarTheme.Milk" parent="@style/ThemeOverlay.AppCompat.ActionBar">
|
||||||
@@ -4045,7 +4057,7 @@
|
|||||||
|
|
||||||
<style name="ToolbarTitle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
|
<style name="ToolbarTitle" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title">
|
||||||
<item name="android:textSize">20.0dip</item>
|
<item name="android:textSize">20.0dip</item>
|
||||||
<item name="android:textColor">?android:textColorPrimary</item>
|
<item name="android:textColor">?header_text</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="TooltipFullScreenDialog" parent="@style/Theme.AppCompat.Light.Dialog">
|
<style name="TooltipFullScreenDialog" parent="@style/Theme.AppCompat.Light.Dialog">
|
||||||
|
|||||||
@@ -819,7 +819,9 @@
|
|||||||
|
|
||||||
iget-object v5, p0, Lcom/vtosters/lite/PhotoViewer;->b:Landroid/app/Activity;
|
iget-object v5, p0, Lcom/vtosters/lite/PhotoViewer;->b:Landroid/app/Activity;
|
||||||
|
|
||||||
const v6, 0x7f120004
|
invoke-static {}, Lru/vtosters/lite/utils/Themes;->picFix()I
|
||||||
|
|
||||||
|
move-result v6
|
||||||
|
|
||||||
invoke-direct {v4, v5, v6}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
|
invoke-direct {v4, v5, v6}, Landroid/view/ContextThemeWrapper;-><init>(Landroid/content/Context;I)V
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user