android: Define a new color scheme

This mainly changes the color of the appbar (colorPrimary), the color
of the status bar (colorPrimaryDark) is black like the default.
The accent color (colorAccent) used for controls like buttons and check
boxes is a slightly toned down version of the default.
This commit is contained in:
Tobias Brunner 2016-04-12 17:46:53 +02:00
parent 8e71dd9e82
commit 61ac729662
2 changed files with 16 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2012-2013 Tobias Brunner
Hochschule fuer Technik Rapperswil
Copyright (C) 2012-2016 Tobias Brunner
HSR Hochschule fuer Technik Rapperswil
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
@ -15,6 +15,15 @@
-->
<resources>
<color
name="accent">#96BDC2</color>
<color
name="primary">#A2042C</color>
<color
name="primary_dark">#000000</color>
<color
name="error_text">#D9192C</color>
@ -25,7 +34,7 @@
name="success_text">#99CC00</color>
<color
name="panel_background">#333333</color>
name="panel_background">#444444</color>
<color
name="panel_separator">#5a5a5a</color>

View File

@ -16,10 +16,14 @@
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="ApplicationTheme.Base" parent="Theme.AppCompat">
<item name="colorAccent">@color/accent</item>
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="android:alertDialogTheme">@style/AlertDialogTheme</item>
</style>
<style name="AlertDialogTheme.Base" parent="Theme.AppCompat.Dialog.Alert">
<item name="colorAccent">@color/accent</item>
</style>
</resources>