This commit is contained in:
Bnyro 2022-05-18 18:12:13 +02:00
parent 14ca137daf
commit 130d24f605

View File

@ -121,7 +121,7 @@ class MainActivity : AppCompatActivity() {
toolbar = findViewById(R.id.toolbar) toolbar = findViewById(R.id.toolbar)
val typedValue = TypedValue() val typedValue = TypedValue()
this.theme.resolveAttribute(R.attr.colorPrimaryDark ,typedValue, true); this.theme.resolveAttribute(R.attr.colorPrimaryDark, typedValue, true)
val hexColor = String.format("#%06X", (0xFFFFFF and typedValue.data)) val hexColor = String.format("#%06X", (0xFFFFFF and typedValue.data))
val appName = HtmlCompat.fromHtml( val appName = HtmlCompat.fromHtml(
"Libre<span style='color:$hexColor';>Tube</span>", "Libre<span style='color:$hexColor';>Tube</span>",