forked from amazingfate/loongoffice
Instead of hard-coding the background color for the 2 toolbars shown at the bottom (`toolbar_bottom` and the color picker), use "colorPrimary" from the theme. Stop overriding "colorPrimary" in `LibreOfficeTheme.Toolbar`, which would otherwise result in a hard-coded white color being used again. This makes those toolbars show up in a darker color when dark theme is enabled. Stop hard-coding the font color of the items in the "Style" tab in the bottom toolbar to black, but use the primary font color instead, so a light color is automatically used when using the dark theme. Change-Id: Ib09ca47e8695903cdfa9f4eb100dc88ecae652a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160069 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
32 lines
1.2 KiB
XML
32 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources xmlns:tools="http://schemas.android.com/tools">
|
|
<style name="LibreOfficeTheme" parent="LibreOfficeTheme.Base"/>
|
|
|
|
<style name="LibreOfficeTheme.Base" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
</style>
|
|
|
|
<style name="ListItemText">
|
|
<item name="android:gravity">center_vertical</item>
|
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
|
<item name="android:textSize">14sp</item>
|
|
</style>
|
|
|
|
<style name="LibreOfficeTheme.Toolbar" parent="Theme.AppCompat.DayNight.NoActionBar">
|
|
</style>
|
|
|
|
<style name="LibreOfficeTheme.NavigationView">
|
|
<item name="colorPrimary">@android:color/black</item>
|
|
</style>
|
|
|
|
<style name="NewDocumentTextView">
|
|
<item name="android:layout_width">wrap_content</item>
|
|
<item name="android:layout_height">wrap_content</item>
|
|
<item name="android:elevation" tools:ignore="NewApi">2dp</item>
|
|
<item name="android:textSize">16sp</item>
|
|
<item name="android:textStyle">bold</item>
|
|
<item name="android:typeface">normal</item>
|
|
<item name="android:padding">5dp</item>
|
|
<item name="android:background">@drawable/label_background</item>
|
|
</style>
|
|
</resources>
|