diff --git a/app/src/main/assets/changelog.html b/app/src/main/assets/changelog.html
index 5743bb78..a22bbb1a 100644
--- a/app/src/main/assets/changelog.html
+++ b/app/src/main/assets/changelog.html
@@ -1,85 +1,86 @@
-
-
-
-
-
-Version 1.1
-New
-
- - Support for other types of biometric authentication (i.e. Pixel 4 face unlock)
- - Support for importing from WinAuth
- - Support for Chromebooks
- - Option to highlight entries when tapped
- - Filter for ungrouped tokens
- - Ability to search for token account names
- - Simplified Chinese translation (thanks RunningMelos!)
-
-Fixes
-
- - The behavior of highlighting and revealing entries was inconsistent
-
-Version 1.0.3
-New
-
- - Support for andOTP's new backup file format
-
-Version 1.0.2
-Fixes
-
- - Search feature on Huawei devices
-
-Notes
-
- - Disabled automatic backups through the Google Play Store
-
-Version 1.0.1
-Notes
-
- - Temporarily disabled search feature on Huawei devices
-
-Version 1.0
-New
-
- - New icon
- - Overhaul of interaction with the entry list
- - Persistent notification while the vault is unlocked
- - Language override option
- - Support for importing from FreeOTP+
- - Ability to toggle password visibility during unlock
- - Support for deeplinking otpauth URIs
-
-Fixes
-
- - Bad overall performance and high battery usage
- - Codes with an uneven number of digits are displayed incorrectly
- - Crash when entering a large value for OTP period
-
-
\ No newline at end of file
+
+
+
+
+
+ Version 1.1
+ New
+
+ - Support for other types of biometric authentication (i.e. Pixel 4 face unlock)
+ - Support for importing from WinAuth
+ - Support for Chromebooks
+ - Option to highlight entries when tapped
+ - Filter for ungrouped tokens
+ - Ability to search for token account names
+ - Simplified Chinese translation (thanks RunningMelos!)
+
+ Fixes
+
+ - The behavior of highlighting and revealing entries was inconsistent
+
+ Version 1.0.3
+ New
+
+ - Support for andOTP's new backup file format
+
+ Version 1.0.2
+ Fixes
+
+ - Search feature on Huawei devices
+
+ Notes
+
+ - Disabled automatic backups through the Google Play Store
+
+ Version 1.0.1
+ Notes
+
+ - Temporarily disabled search feature on Huawei devices
+
+ Version 1.0
+ New
+
+ - New icon
+ - Overhaul of interaction with the entry list
+ - Persistent notification while the vault is unlocked
+ - Language override option
+ - Support for importing from FreeOTP+
+ - Ability to toggle password visibility during unlock
+ - Support for deeplinking otpauth URIs
+
+ Fixes
+
+ - Bad overall performance and high battery usage
+ - Codes with an uneven number of digits are displayed incorrectly
+ - Crash when entering a large value for OTP period
+
+
+
\ No newline at end of file
diff --git a/app/src/main/java/com/beemdevelopment/aegis/ui/ChangelogDialog.java b/app/src/main/java/com/beemdevelopment/aegis/ui/ChangelogDialog.java
index 51aa7c0b..b9a1338f 100644
--- a/app/src/main/java/com/beemdevelopment/aegis/ui/ChangelogDialog.java
+++ b/app/src/main/java/com/beemdevelopment/aegis/ui/ChangelogDialog.java
@@ -75,12 +75,16 @@ public class ChangelogDialog extends DialogFragment {
private String replaceStylesheet(String changelog) {
int backgroundColorResource = _themeStyle == Theme.AMOLED ? R.attr.cardBackgroundFocused : R.attr.cardBackground;
- String backgroundColor = String.format("%06X", (0xFFFFFF & ThemeHelper.getThemeColor(backgroundColorResource, getContext().getTheme())));
- String textColor = String.format("%06X", (0xFFFFFF & ThemeHelper.getThemeColor(R.attr.primaryText, getContext().getTheme())));
+ String backgroundColor = colorToCSS(ThemeHelper.getThemeColor(backgroundColorResource, getContext().getTheme()));
+ String textColor = colorToCSS(0xFFFFFF & ThemeHelper.getThemeColor(R.attr.primaryText, getContext().getTheme()));
return String.format(changelog, backgroundColor, textColor);
}
+ private static String colorToCSS(int color) {
+ return String.format("rgb(%d, %d, %d)", Color.red(color), Color.green(color), Color.blue(color));
+ }
+
public ChangelogDialog setTheme(Theme theme) {
_themeStyle = theme;