android: make toolbar visuals easier to change

Change-Id: I5b4dd8b8c407640cfcd9f366cecfaf6deb0cb3be
This commit is contained in:
Tomaž Vajngerl
2015-11-09 23:51:02 +01:00
parent b0166b1d06
commit 01d0983e3d
3 changed files with 13 additions and 1 deletions

View File

@@ -2,9 +2,13 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:elevation="3dp">
android:elevation="3dp"
android:background="@color/toolbar_background"
app:theme="@style/LibreOfficeTheme.Toolbar"
app:popupTheme="@style/LibreOfficeTheme">
</android.support.v7.widget.Toolbar>

View File

@@ -92,6 +92,9 @@
<color name="panel_grid_item_image_background">#D1D9E1</color>
<color name="toolbar_forgeround">#3e3e3e</color>
<color name="toolbar_background">#ffffff</color>
<color name="handle_color">#40A040</color>
</resources>

View File

@@ -14,4 +14,9 @@
<item name="android:textColor">@android:color/black</item>
<item name="android:textSize">15sp</item>
</style>
<style name="LibreOfficeTheme.Toolbar" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/toolbar_background</item>
</style>
</resources>