Commit d6375194 authored by Niklas Fix's avatar Niklas Fix 🎓

fix LatexView font

parent ffb09649
......@@ -47,6 +47,7 @@ public class AkamuLatexView extends MathJaxView {
loadDataWithBaseURL("about:blank",
"<html><head>" +
"<style>" +
"body { font-family: sans-serif; }" +
css +
"</style>" +
"<script type=\"text/x-mathjax-config\">" +
......
......@@ -133,9 +133,9 @@ class QuestionActivity :
PreferenceManager.getDefaultSharedPreferences(this)
.getBoolean(Constants.IS_NIGHT_MODE, false)
val css = if (isNightMode) {
"body { color: white }"
"body { color: white; font-size: 1.123em; font-weight: bold; }"
} else {
"body { color: #555555 }"
"body { color: #555555; font-size: 1.123em; font-weight: bold; }"
}
textview_questionactivity_questiontext.plainText = question.text
textview_questionactivity_questiontext.load(question.text, css)
......
......@@ -51,6 +51,7 @@ class LongOptionsAnswerFragment : AnswerFragment(), View.OnClickListener, View.O
}
.answer {
text-align: center;
font-size: 0.874em; font-weight: bold;
}
""".trimIndent()
......
......@@ -50,6 +50,7 @@ class ShortOptionsAnswerFragment : AnswerFragment(), View.OnClickListener, View.
}
.answer {
text-align: center;
font-weight: bold;
}
""".trimIndent()
......
......@@ -61,6 +61,7 @@ class SwipeAnswerAdapter(
}
.answer {
text-align: center;
font-size: 1.248em; font-weight: bold;
}
""".trimIndent()
// AkamuResource.loadCSS(answerTextView, css)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment