New theme: dark material
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2013 serso aka se.solovyev
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~ Contact details
|
||||
~
|
||||
~ Email: se.solovyev@gmail.com
|
||||
~ Site: http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<ripple xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:color="?attr/colorControlHighlight">
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/cpp_material_blue" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2013 serso aka se.solovyev
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~ Contact details
|
||||
~
|
||||
~ Email: se.solovyev@gmail.com
|
||||
~ Site: http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<ripple xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:color="?attr/colorControlHighlight">
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/cpp_metro_button" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!--
|
||||
~ Copyright 2013 serso aka se.solovyev
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~ Contact details
|
||||
~
|
||||
~ Email: se.solovyev@gmail.com
|
||||
~ Site: http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<ripple xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
a:color="?attr/colorControlHighlight">
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/cpp_metro_button_light" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
55
android-app/src/main/res/values-v21/theme_material.xml
Normal file
55
android-app/src/main/res/values-v21/theme_material.xml
Normal file
@@ -0,0 +1,55 @@
|
||||
<!--
|
||||
~ Copyright 2013 serso aka se.solovyev
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
~
|
||||
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
~ Contact details
|
||||
~
|
||||
~ Email: se.solovyev@gmail.com
|
||||
~ Site: http://se.solovyev.org
|
||||
-->
|
||||
|
||||
<resources>
|
||||
|
||||
<style name="material_digit_button_style" parent="cpp_keyboard_button_style">
|
||||
<item name="android:background">@drawable/material_button_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="material_control_button_style" parent="metro_digit_button_style">
|
||||
<item name="android:background">@drawable/material_button_dark</item>
|
||||
</style>
|
||||
|
||||
<style name="material_operation_button_style" parent="material_digit_button_style">
|
||||
<item name="android:background">@drawable/material_blue_button</item>
|
||||
</style>
|
||||
|
||||
<style name="material_control_image_button_style" parent="material_control_button_style">
|
||||
<item name="android:padding">6dp</item>
|
||||
</style>
|
||||
|
||||
<style name="cpp_material_theme" parent="cpp_metro_blue_theme">
|
||||
<item name="cpp_digit_button_style">@style/material_digit_button_style</item>
|
||||
<item name="cpp_control_button_style">@style/material_control_button_style</item>
|
||||
<item name="cpp_control_image_button_style">@style/material_control_image_button_style</item>
|
||||
<item name="cpp_operation_button_style">@style/material_operation_button_style</item>
|
||||
</style>
|
||||
|
||||
<style name="cpp_metro_blue_dialog_theme" parent="cpp_gray_dialog_theme">
|
||||
<item name="cpp_digit_button_style">@style/material_digit_button_style</item>
|
||||
<item name="cpp_control_button_style">@style/material_control_button_style</item>
|
||||
<item name="cpp_control_image_button_style">@style/material_control_image_button_style</item>
|
||||
<item name="cpp_operation_button_style">@style/material_operation_button_style</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
@@ -41,6 +41,7 @@
|
||||
<color name="cpp_metro_button">#212121</color>
|
||||
<color name="cpp_metro_button_light">#393939</color>
|
||||
<color name="cpp_metro_blue">#10648c</color>
|
||||
<color name="cpp_material_blue">#ff0d4663</color>
|
||||
<color name="cpp_metro_blue_dark">#ff092c39</color>
|
||||
<color name="cpp_metro_green">#088e3a</color>
|
||||
<color name="cpp_metro_purple">#651456</color>
|
||||
|
Reference in New Issue
Block a user