Highlighted buttons

This commit is contained in:
serso
2016-03-14 15:00:23 +01:00
parent ec73ad8d19
commit 6aa5ea4d0c
10 changed files with 161 additions and 7 deletions

View File

@@ -24,7 +24,9 @@
<attr name="cpp_button_style_digit" format="reference" />
<attr name="cpp_button_style_control" format="reference" />
<attr name="cpp_button_style_control_highlighted" format="reference" />
<attr name="cpp_button_style_operation" format="reference" />
<attr name="cpp_button_style_operation_highlighted" format="reference" />
<attr name="cpp_main_bg" format="reference" />
<attr name="cpp_pane_bg" format="reference" />
<attr name="cpp_fab_bg" format="reference" />

View File

@@ -37,10 +37,12 @@
<color name="cpp_wizard_button_pressed">#757575</color>
<color name="cpp_metro_button_dark">#ff000000</color>
<color name="cpp_metro_button">@color/grey_900</color>
<color name="cpp_metro_button_lighter">@color/grey_850</color>
<color name="cpp_metro_button_light">@color/grey_800</color>
<color name="cpp_metro_blue">#10648c</color>
<color name="cpp_material_blue">#ff0d4663</color>
<color name="cpp_material_blue_lighter">#ff0d668d</color>
<color name="cpp_material_blue">#0a4766</color>
<color name="cpp_material_blue_lighter">#0d5980</color>
<color name="cpp_material_blue_lighter_lighter">#0f6b99</color>
<color name="cpp_material_light">#ff37b295</color>
<color name="cpp_material_light_darker">#ff309e84</color>
<color name="cpp_material_light_disabled">#c1d2ef</color>

View File

@@ -28,10 +28,18 @@
<style name="CppKeyboardButton.Material.Control" parent="CppKeyboardButton.Material.Digit" />
<style name="CppKeyboardButton.Material.Control.Highlighted" parent="CppKeyboardButton.Material.Digit" >
<item name="android:background">@drawable/material_button_dark_lighter</item>
</style>
<style name="CppKeyboardButton.Material.Operation" parent="CppKeyboardButton.Material.Digit">
<item name="android:background">@drawable/material_blue_button</item>
</style>
<style name="CppKeyboardButton.Material.Operation.Highlighted" parent="CppKeyboardButton.Material.Digit">
<item name="android:background">@drawable/material_blue_button_lighter</item>
</style>
<style name="CppHeaderButton.Material" parent="CppKeyboardButton.Material.Control">
<item name="android:layout_width">30dp</item>
<item name="android:layout_height">30dp</item>
@@ -59,19 +67,25 @@
<style name="Cpp.Theme.Material" parent="Cpp.Theme">
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Digit</item>
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Digit</item>
<item name="cpp_button_style_control_highlighted">@style/CppKeyboardButton.Material.Control.Highlighted</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Operation</item>
<item name="cpp_button_style_operation_highlighted">@style/CppKeyboardButton.Material.Operation.Highlighted</item>
</style>
<style name="Cpp.Theme.Material.Dialog" parent="Cpp.Theme.Dialog">
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Digit</item>
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Digit</item>
<item name="cpp_button_style_control_highlighted">@style/CppKeyboardButton.Material.Control.Highlighted</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Operation</item>
<item name="cpp_button_style_operation_highlighted">@style/CppKeyboardButton.Material.Operation.Highlighted</item>
</style>
<style name="Cpp.Theme.Material.Dialog.Alert" parent="Cpp.Theme.Dialog.Alert">
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Material.Digit</item>
<item name="cpp_button_style_control">@style/CppKeyboardButton.Material.Digit</item>
<item name="cpp_button_style_control_highlighted">@style/CppKeyboardButton.Material.Control.Highlighted</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Operation</item>
<item name="cpp_button_style_operation_highlighted">@style/CppKeyboardButton.Material.Operation.Highlighted</item>
</style>
</resources>