AMOLED-friendly theme added
This commit is contained in:
32
app/src/main/res/drawable-v21/material_button_black.xml
Normal file
32
app/src/main/res/drawable-v21/material_button_black.xml
Normal file
@@ -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="@color/cpp_ripple_material_dark">
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/grey_950" />
|
||||
</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="@color/cpp_ripple_material_dark">
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/grey_900" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
32
app/src/main/res/drawable-v21/material_button_deep_blue.xml
Normal file
32
app/src/main/res/drawable-v21/material_button_deep_blue.xml
Normal file
@@ -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="@color/cpp_ripple_material_dark">
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/deep_blue_900" />
|
||||
</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="@color/cpp_ripple_material_dark">
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/deep_blue_850" />
|
||||
</shape>
|
||||
</item>
|
||||
</ripple>
|
35
app/src/main/res/drawable/material_button_black.xml
Normal file
35
app/src/main/res/drawable/material_button_black.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
-->
|
||||
|
||||
<selector xmlns:a="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item a:drawable="@drawable/material_button_pressed" a:state_pressed="true" />
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/grey_950" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</selector>
|
35
app/src/main/res/drawable/material_button_black_lighter.xml
Normal file
35
app/src/main/res/drawable/material_button_black_lighter.xml
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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
|
||||
-->
|
||||
|
||||
<selector xmlns:a="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item a:drawable="@drawable/material_button_pressed" a:state_pressed="true" />
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/grey_900" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</selector>
|
39
app/src/main/res/drawable/material_button_deep_blue.xml
Normal file
39
app/src/main/res/drawable/material_button_deep_blue.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?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
|
||||
-->
|
||||
|
||||
<selector xmlns:a="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item a:state_pressed="true">
|
||||
<shape>
|
||||
<solid a:color="@color/deep_blue_850" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/deep_blue_900" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</selector>
|
@@ -0,0 +1,39 @@
|
||||
<?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
|
||||
-->
|
||||
|
||||
<selector xmlns:a="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item a:state_pressed="true">
|
||||
<shape>
|
||||
<solid a:color="@color/deep_blue_800" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<shape>
|
||||
<solid a:color="@color/deep_blue_850" />
|
||||
</shape>
|
||||
</item>
|
||||
|
||||
</selector>
|
@@ -21,21 +21,6 @@
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<string-array name="p_theme_names">
|
||||
<item>@string/cpp_theme_dark</item>
|
||||
<item>@string/cpp_theme_light</item>
|
||||
<item>@string/p_metro_blue_theme</item>
|
||||
<item>@string/p_metro_green_theme</item>
|
||||
<item>@string/p_metro_purple_theme</item>
|
||||
</string-array>
|
||||
<string-array name="p_theme_values" translatable="false">
|
||||
<item>material_theme</item>
|
||||
<item>material_light_theme</item>
|
||||
<item>metro_blue_theme</item>
|
||||
<item>metro_green_theme</item>
|
||||
<item>metro_purple_theme</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="p_simple_theme_names">
|
||||
<item>@string/p_use_app_theme</item>
|
||||
<item>@string/cpp_theme_dark</item>
|
||||
|
@@ -47,6 +47,11 @@
|
||||
<color name="grey_850">#313131</color>
|
||||
<color name="grey_900">#212121</color>
|
||||
<color name="grey_950">#101010</color>
|
||||
<color name="grey_965">#0a0a0a</color>
|
||||
|
||||
<color name="deep_blue_900">#06224d</color>
|
||||
<color name="deep_blue_850">#082a5e</color>
|
||||
<color name="deep_blue_800">#0a3980</color>
|
||||
|
||||
<color name="blue_900">#0D47A1</color>
|
||||
<color name="blue_800">#1565C0</color>
|
||||
|
@@ -16,6 +16,7 @@
|
||||
<string name="cpp_function_body" translatable="false">f(x, y)</string>
|
||||
<string name="cpp_show_greek_keyboard" translatable="false">αβγ</string>
|
||||
<string name="cpp_exponent" translatable="false">E</string>
|
||||
<string name="cpp_theme_black" translatable="false">%1$s (AMOLED)</string>
|
||||
<string-array name="cpp_prefs_precisions" translatable="false">
|
||||
<item>0</item>
|
||||
<item>1</item>
|
||||
|
79
app/src/main/res/values/theme_material_black.xml
Normal file
79
app/src/main/res/values/theme_material_black.xml
Normal file
@@ -0,0 +1,79 @@
|
||||
<!--
|
||||
~ 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="CppKeyboardButton.Material.Black.Digit" parent="CppKeyboardButton">
|
||||
<item name="android:background">@drawable/material_button_black</item>
|
||||
</style>
|
||||
|
||||
<style name="CppKeyboardButton.Material.Black.Digit.Highlighted" parent="CppKeyboardButton.Material.Black.Digit">
|
||||
<item name="android:background">@drawable/material_button_black_lighter</item>
|
||||
</style>
|
||||
|
||||
<style name="CppKeyboardButton.Material.Black.Operation" parent="CppKeyboardButton.Material.Digit">
|
||||
<item name="android:background">@drawable/material_button_deep_blue</item>
|
||||
<item name="directionTextAlpha">0.7</item>
|
||||
</style>
|
||||
|
||||
<style name="CppKeyboardButton.Material.Black.Operation.Highlighted" parent="CppKeyboardButton.Material.Black.Operation">
|
||||
<item name="android:background">@drawable/material_button_deep_blue_lighter</item>
|
||||
</style>
|
||||
|
||||
<style name="CppKeyboardButton.Material.Black.Control" parent="CppKeyboardButton.Material.Black.Digit" />
|
||||
|
||||
<style name="Cpp.Theme.Material.Black" parent="Cpp.Theme">
|
||||
<item name="android:windowBackground">@color/grey_965</item>
|
||||
<item name="cpp_editor_bg">@color/grey_965</item>
|
||||
<item name="cpp_fab_bg">@color/deep_blue_900</item>
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Black.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Black.Digit</item>
|
||||
<item name="cpp_button_style_control_highlighted">@style/CppKeyboardButton.Material.Black.Digit.Highlighted</item>
|
||||
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Black.Operation</item>
|
||||
<item name="cpp_button_style_operation_highlighted">@style/CppKeyboardButton.Material.Black.Operation.Highlighted</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Material.Black.Dialog" parent="Cpp.Theme.Dialog">
|
||||
<item name="cpp_editor_bg">@color/grey_965</item>
|
||||
<item name="cpp_fab_bg">@color/deep_blue_900</item>
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Black.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Black.Digit</item>
|
||||
<item name="cpp_button_style_control_highlighted">@style/CppKeyboardButton.Material.Black.Digit.Highlighted</item>
|
||||
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Black.Operation</item>
|
||||
<item name="cpp_button_style_operation_highlighted">@style/CppKeyboardButton.Material.Black.Operation.Highlighted</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Material.Black.Dialog.Alert" parent="Cpp.Theme.Dialog.Alert">
|
||||
<item name="cpp_editor_bg">@color/grey_965</item>
|
||||
<item name="cpp_fab_bg">@color/deep_blue_900</item>
|
||||
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Black.Digit</item>
|
||||
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Black.Digit</item>
|
||||
<item name="cpp_button_style_control_highlighted">@style/CppKeyboardButton.Material.Black.Digit.Highlighted</item>
|
||||
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Black.Operation</item>
|
||||
<item name="cpp_button_style_operation_highlighted">@style/CppKeyboardButton.Material.Black.Operation.Highlighted</item>
|
||||
</style>
|
||||
|
||||
<style name="Cpp.Theme.Material.Black.Calculator" parent="Cpp.Theme.Material.Black">
|
||||
<item name="android:windowAnimationStyle">@null</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
@@ -35,8 +35,6 @@
|
||||
a:title="@string/cpp_prefs_vibrate_on_keypress" />
|
||||
|
||||
<ListPreference
|
||||
a:entries="@array/p_theme_names"
|
||||
a:entryValues="@array/p_theme_values"
|
||||
a:key="gui.theme"
|
||||
a:title="@string/cpp_theme" />
|
||||
|
||||
|
Reference in New Issue
Block a user