diff --git a/markdown/src/main/java/it/niedermann/android/markdown/markwon/plugins/ThemePlugin.java b/markdown/src/main/java/it/niedermann/android/markdown/markwon/plugins/ThemePlugin.java
index 50bcb7fc..c38dd71f 100644
--- a/markdown/src/main/java/it/niedermann/android/markdown/markwon/plugins/ThemePlugin.java
+++ b/markdown/src/main/java/it/niedermann/android/markdown/markwon/plugins/ThemePlugin.java
@@ -3,6 +3,7 @@ package it.niedermann.android.markdown.markwon.plugins;
import android.content.Context;
import androidx.annotation.NonNull;
+import androidx.core.content.ContextCompat;
import io.noties.markwon.AbstractMarkwonPlugin;
import io.noties.markwon.MarkwonPlugin;
@@ -11,7 +12,8 @@ import it.niedermann.android.markdown.R;
public class ThemePlugin extends AbstractMarkwonPlugin {
- @NonNull Context context;
+ @NonNull
+ Context context;
private ThemePlugin(@NonNull Context context) {
this.context = context;
@@ -25,8 +27,9 @@ public class ThemePlugin extends AbstractMarkwonPlugin {
public void configureTheme(@NonNull MarkwonTheme.Builder builder) {
super.configureTheme(builder);
builder
- .bulletWidth(context.getResources().getDimensionPixelSize(R.dimen.bullet_point_width))
.headingBreakHeight(0)
- .headingTextSizeMultipliers(new float[]{1.45f, 1.35f, 1.25f, 1.15f, 1.1f, 1.05f});
+ .codeBlockBackgroundColor(ContextCompat.getColor(context, R.color.bg_code))
+ .headingTextSizeMultipliers(new float[]{1.45f, 1.35f, 1.25f, 1.15f, 1.1f, 1.05f})
+ .bulletWidth(context.getResources().getDimensionPixelSize(R.dimen.bullet_point_width));
}
}
diff --git a/markdown/src/main/res/values-night/colors.xml b/markdown/src/main/res/values-night/colors.xml
index 8a9e0319..c9468045 100644
--- a/markdown/src/main/res/values-night/colors.xml
+++ b/markdown/src/main/res/values-night/colors.xml
@@ -1,4 +1,5 @@
#2a2a2a
+ #11ffffff
\ No newline at end of file
diff --git a/markdown/src/main/res/values/colors.xml b/markdown/src/main/res/values/colors.xml
index 48225071..72c77310 100644
--- a/markdown/src/main/res/values/colors.xml
+++ b/markdown/src/main/res/values/colors.xml
@@ -1,5 +1,6 @@
- #eee
#0082C9
+ #eee
+ #0e000000
\ No newline at end of file