Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ private static void applyTheme(Activity act, SharedPreferences prefs) {
case "amoled-dark":
act.setTheme(R.style.AppThemeAmoledDark);
break;
case "e-ink mode":
act.setTheme(R.style.AppThemeEInk);
break;
}

UIColors.applyOverlay(act, prefs);
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<item>@string/theme_semi_dark</item>
<item>@string/theme_dark_transparent</item>
<item>@string/theme_amoled</item>
<item>@string/eInk</item>
</string-array>
<string-array name="themesValues" translatable="false">
<item>light</item>
Expand All @@ -17,6 +18,7 @@
<item>semi-transparent-dark</item>
<item>transparent-dark</item>
<item>amoled-dark</item>
<item>e-ink mode</item>
</string-array>
<string-array name="historyModeEntries">
<item>@string/history_recency</item>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@
<string name="theme_semi_light">Semi-transparent</string>
<string name="theme_semi_dark">Dark semi-transparent</string>
<string name="theme_amoled">AMOLED dark</string>
<string name="eInk">e-ink mode</string>
<string name="theme_separator">Result separator</string>
<string name="theme_result_color">Text color for results</string>
<string name="history_recency">Accessed recently first</string>
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@
<item name="dividerDrawable">@null</item>
<item name="textShadowRadius">0</item>
</style>
<style name="AppThemeEInk" parent="BaseThemeLight">
<item name="android:windowBackground">@android:color/white</item>
<item name="android:textColor">@android:color/black</item>
<item name="android:textColorSecondary">@android:color/black</item>
<item name="listBackgroundColor">@android:color/white</item>
<item name="searchBackgroundColor">@android:color/white</item>
<item name="dividerDrawable">@null</item>
<item name="textShadowRadius">0</item>
</style>

<style name="SettingThemeAmoledDark" parent="SettingThemeDark">
<item name="android:windowShowWallpaper">false</item>
Expand Down