Themes refactored

This commit is contained in:
serso 2015-02-07 18:06:03 +01:00
parent 323011391c
commit c46a276f3f
87 changed files with 346 additions and 400 deletions

View File

@ -46,11 +46,11 @@
<activity android:clearTaskOnLaunch="true" android:label="@string/c_app_name" android:launchMode="singleTop" android:name=".CalculatorActivityMobile" android:windowSoftInputMode="adjustPan"/>
<!-- settings must use action bar icon-->
<activity android:icon="@drawable/ab_icon" android:label="@string/c_app_settings" android:name=".preferences.PreferencesActivity" android:theme="@style/Theme.Settings"/>
<activity android:icon="@drawable/ab_icon" android:label="@string/c_app_settings" android:name=".preferences.PreferencesActivity" android:theme="@style/Cpp.Theme.Settings"/>
<activity android:label="@string/c_history" android:name=".history.CalculatorHistoryActivity"/>
<activity android:excludeFromRecents="true" android:finishOnTaskLaunch="true" android:label="@string/calculation_messages_dialog_title" android:launchMode="singleTask" android:name=".FixableMessagesDialog" android:theme="@style/cpp_metro_blue_dialog_theme"/>
<activity android:excludeFromRecents="true" android:finishOnTaskLaunch="true" android:label="@string/calculation_messages_dialog_title" android:launchMode="singleTask" android:name=".FixableMessagesDialog" android:theme="@style/Cpp.Theme.Dialog.Material"/>
<activity android:label="@string/c_about" android:name=".about.CalculatorAboutActivity"/>
@ -60,20 +60,20 @@
<activity android:label="@string/c_vars_and_constants" android:name=".math.edit.CalculatorVarsActivity"/>
<activity android:name=".CalculatorWikiActivity"/>
<activity android:launchMode="singleTop" android:name=".wizard.WizardActivity" android:theme="@style/Theme.Wizard">
<activity android:launchMode="singleTop" android:name=".wizard.WizardActivity" android:theme="@style/Cpp.Theme.Wizard">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
</intent-filter>
</activity>
<activity android:hardwareAccelerated="false" android:label="@string/c_plot_graph" android:name=".plot.CalculatorPlotActivity"/>
<activity android:label="@string/cpp_plot_functions" android:name=".plot.CalculatorPlotFunctionsActivity" android:theme="@style/cpp_metro_blue_dialog_theme"/>
<activity android:label="@string/cpp_plot_function_settings" android:name=".plot.CalculatorPlotFunctionSettingsActivity" android:theme="@style/cpp_metro_blue_dialog_theme"/>
<activity android:label="@string/cpp_plot_range" android:name=".plot.CalculatorPlotRangeActivity" android:theme="@style/cpp_metro_blue_dialog_theme"/>
<activity android:label="@string/cpp_plot_functions" android:name=".plot.CalculatorPlotFunctionsActivity" android:theme="@style/Cpp.Theme.Dialog.Material"/>
<activity android:label="@string/cpp_plot_function_settings" android:name=".plot.CalculatorPlotFunctionSettingsActivity" android:theme="@style/Cpp.Theme.Dialog.Material"/>
<activity android:label="@string/cpp_plot_range" android:name=".plot.CalculatorPlotRangeActivity" android:theme="@style/Cpp.Theme.Dialog.Material"/>
<activity android:label="@string/cpp_purchase_title" android:name=".preferences.PurchaseDialogActivity" android:theme="@style/cpp_metro_blue_dialog_theme"/>
<activity android:label="@string/cpp_purchase_title" android:name=".preferences.PurchaseDialogActivity" android:theme="@style/Cpp.Theme.Dialog.Material"/>
<activity android:name=".CalculatorDialogActivity" android:theme="@style/cpp_metro_blue_dialog_theme"/>
<activity android:name=".CalculatorDialogActivity" android:theme="@style/Cpp.Theme.Dialog.Material"/>
<!-- todo serso: strings-->
<activity android:label="@string/c_plot_graph" android:name=".matrix.CalculatorMatrixActivity">
@ -89,11 +89,11 @@
</activity>
<!-- settings must use action bar icon-->
<activity android:icon="@drawable/ab_icon" android:label="@string/c_settings" android:name=".plot.PlotPreferenceActivity" android:theme="@style/Theme.Settings"/>
<activity android:icon="@drawable/ab_icon" android:label="@string/c_settings" android:name=".plot.PlotPreferenceActivity" android:theme="@style/Cpp.Theme.Settings"/>
<!-- ONSCREEN CONFIG -->
<activity android:icon="@drawable/icon_onscreen" android:label="@string/c_app_name_on_screen" android:launchMode="singleInstance" android:name=".onscreen.CalculatorOnscreenStartActivity" android:theme="@style/cpp_metro_blue_dialog_theme">
<activity android:icon="@drawable/icon_onscreen" android:label="@string/c_app_name_on_screen" android:launchMode="singleInstance" android:name=".onscreen.CalculatorOnscreenStartActivity" android:theme="@style/Cpp.Theme.Dialog.Material">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

View File

@ -101,13 +101,13 @@ public final class Preferences {
public static enum Theme {
default_theme(R.style.cpp_gray_theme, R.style.Theme_Wizard),
violet_theme(R.style.cpp_violet_theme, R.style.Theme_Wizard),
light_blue_theme(R.style.cpp_light_blue_theme, R.style.Theme_Wizard),
metro_blue_theme(R.style.cpp_metro_blue_theme, R.style.Theme_Wizard),
metro_purple_theme(R.style.cpp_metro_purple_theme, R.style.Theme_Wizard),
metro_green_theme(R.style.cpp_metro_green_theme, R.style.Theme_Wizard),
material_theme(R.style.cpp_material_theme, R.style.Theme_Wizard),
default_theme(R.style.Cpp_Theme_Gray, R.style.Cpp_Theme_Wizard),
violet_theme(R.style.Cpp_Theme_Violet, R.style.Cpp_Theme_Wizard),
light_blue_theme(R.style.Cpp_Theme_Blue, R.style.Cpp_Theme_Wizard),
metro_blue_theme(R.style.cpp_metro_blue_theme, R.style.Cpp_Theme_Wizard),
metro_purple_theme(R.style.cpp_metro_purple_theme, R.style.Cpp_Theme_Wizard),
metro_green_theme(R.style.cpp_metro_green_theme, R.style.Cpp_Theme_Wizard),
material_theme(R.style.Cpp_Theme_Material, R.style.Cpp_Theme_Wizard),
;
private final int themeId;

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_layout_style">
style="@style/CppMain">
<include layout="@layout/main_first_pane"/>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_layout_style">
style="@style/CppMain">
<include layout="@layout/main_first_pane_mobile"/>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_multi_pane_layout_style">
style="@style/CppMain.Multipane">
<LinearLayout
a:layout_height="0dp"
@ -44,14 +44,14 @@
a:id="@+id/editorContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="1"/>
<FrameLayout
a:id="@+id/displayContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="1"/>
</LinearLayout>
@ -62,7 +62,7 @@
a:layout_width="0dp"
a:layout_weight="1"
a:orientation="vertical"
style="?cpp_pane_style"/>
style="@style/CppPaneStyle"/>
</LinearLayout>
@ -71,6 +71,6 @@
a:layout_height="0dp"
a:layout_width="match_parent"
a:layout_weight="2"
style="?cpp_pane_style_transparent"/>
style="@style/CppPaneStyle.Transparent"/>
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent">
@ -32,11 +32,11 @@
a:id="@+id/fragment_title"
a:layout_height="wrap_content"
a:layout_width="match_parent"
style="?cpp_fragment_title_style"/>
style="@style/CppFragmentTitle"/>
<org.solovyev.android.calculator.AndroidCalculatorDisplayView
a:id="@+id/calculator_display"
style="@style/cpp_display_style"
style="@style/CppText.Display"
a:inputType="textMultiLine"
a:maxLines="3"
a:scrollHorizontally="false"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent">
@ -32,11 +32,11 @@
a:id="@+id/fragment_title"
a:layout_height="wrap_content"
a:layout_width="match_parent"
style="?cpp_fragment_title_style"/>
style="@style/CppFragmentTitle"/>
<org.solovyev.android.calculator.AndroidCalculatorEditorView
a:id="@+id/calculator_editor"
style="@style/cpp_editor_style"
style="@style/CppText.Editor"
a:textIsSelectable="true"
a:singleLine="false"
a:scrollbars="vertical"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_multi_pane_layout_style">
style="@style/CppMain.Multipane">
<LinearLayout
a:layout_height="0dp"
@ -44,14 +44,14 @@
a:id="@+id/editorContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="3"/>
<FrameLayout
a:id="@+id/displayContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="1"/>
</LinearLayout>
@ -62,7 +62,7 @@
a:layout_width="0dp"
a:layout_weight="1"
a:orientation="vertical"
style="?cpp_pane_style"/>
style="@style/CppPaneStyle"/>
</LinearLayout>
@ -71,6 +71,6 @@
a:layout_height="0dp"
a:layout_width="match_parent"
a:layout_weight="2"
style="?cpp_pane_style_transparent"/>
style="@style/CppPaneStyle.Transparent"/>
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_multi_pane_layout_style">
style="@style/CppMain.Multipane">
<LinearLayout
a:layout_height="0dp"
@ -44,14 +44,14 @@
a:id="@+id/editorContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="3"/>
<FrameLayout
a:id="@+id/displayContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="1"/>
</LinearLayout>
@ -62,7 +62,7 @@
a:layout_width="0dp"
a:layout_weight="1"
a:orientation="vertical"
style="?cpp_pane_style"/>
style="@style/CppPaneStyle"/>
</LinearLayout>
@ -71,6 +71,6 @@
a:layout_height="0dp"
a:layout_width="match_parent"
a:layout_weight="1"
style="?cpp_pane_style_transparent"/>
style="@style/CppPaneStyle.Transparent"/>
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent">
@ -32,11 +32,11 @@
a:id="@+id/fragment_title"
a:layout_height="wrap_content"
a:layout_width="match_parent"
style="?cpp_fragment_title_style"/>
style="@style/CppFragmentTitle"/>
<org.solovyev.android.calculator.AndroidCalculatorDisplayView
a:id="@+id/calculator_display"
style="@style/cpp_display_style"
style="@style/CppText.Display"
a:inputType="textMultiLine"
a:maxLines="3"
a:scrollHorizontally="false"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent">
@ -32,11 +32,11 @@
a:id="@+id/fragment_title"
a:layout_height="wrap_content"
a:layout_width="match_parent"
style="?cpp_fragment_title_style"/>
style="@style/CppFragmentTitle"/>
<org.solovyev.android.calculator.AndroidCalculatorEditorView
a:id="@+id/calculator_editor"
style="@style/cpp_editor_style"
style="@style/CppText.Editor"
a:textIsSelectable="true"
a:singleLine="false"
a:scrollbars="vertical"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_multi_pane_layout_style">
style="@style/CppMain.Multipane">
<LinearLayout
a:layout_height="0dp"
@ -44,14 +44,14 @@
a:id="@+id/editorContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="4"/>
<FrameLayout
a:id="@+id/displayContainer"
a:layout_height="0dp"
a:layout_width="match_parent"
style="?cpp_pane_style"
style="@style/CppPaneStyle"
a:layout_weight="1"/>
</LinearLayout>
@ -62,7 +62,7 @@
a:layout_width="0dp"
a:layout_weight="1"
a:orientation="vertical"
style="?cpp_pane_style"/>
style="@style/CppPaneStyle"/>
</LinearLayout>
@ -71,6 +71,6 @@
a:layout_height="0dp"
a:layout_width="match_parent"
a:layout_weight="1"
style="?cpp_pane_style_transparent"/>
style="@style/CppPaneStyle.Transparent"/>
</LinearLayout>

View File

@ -51,7 +51,7 @@
a:text="@string/c_about_content"
a:layout_height="match_parent"
a:layout_width="match_parent"
style="@style/cpp_about_style" />
style="@style/CppText.About" />
<TextView
@ -60,7 +60,7 @@
a:layout_height="wrap_content"
a:layout_width="match_parent"
a:paddingBottom="0dp"
style="@style/cpp_about_style" />
style="@style/CppText.About" />
<TextView
a:id="@+id/cpp_about_translators"
@ -68,7 +68,7 @@
a:layout_height="wrap_content"
a:layout_width="match_parent"
a:paddingTop="0dp"
style="@style/cpp_about_style" />
style="@style/CppText.About" />
</LinearLayout>
</ScrollView>

View File

@ -29,4 +29,4 @@
a:text="0"
c:textDown="000"
c:directionTextScale="0.5"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -29,4 +29,4 @@
c:textUp="sin"
c:textLeft="A"
c:textDown="asin"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -29,4 +29,4 @@
c:textUp="cos"
c:textLeft="B"
c:textDown="acos"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -29,4 +29,4 @@
c:textUp="tan"
c:textLeft="C"
c:textDown="atan"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -28,4 +28,4 @@
c:textUp="x"
c:textLeft="D"
c:textDown="y"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -28,4 +28,4 @@
c:textUp="t"
c:textLeft="E"
c:textDown="j"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -30,4 +30,4 @@
c:textLeft="F"
c:textDown="rad"
c:directionTextScale="0.33;0.30;0.33;0.33"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -30,4 +30,4 @@
c:textLeft="0b:"
c:textDown="!"
c:directionTextScale="0.5;0.5;0.5;0.33"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -30,4 +30,4 @@
c:textLeft="0d:"
c:textDown="lg"
c:directionTextScale="0.5;0.5;0.5;0.33"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -30,4 +30,4 @@
c:textLeft="0x:"
c:textUp="π"
c:directionTextScale="0.5;0.5;0.5;0.33"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -30,4 +30,4 @@
c:textDown="bin"
c:textLeft="hex"
a:textStyle="bold"
style="?cpp_control_image_button_style"/>
style="?attr/cpp_button_style_control_image"/>

View File

@ -25,4 +25,4 @@
<ImageButton xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@id/cpp_button_copy"
a:src="@drawable/kb_copy"
style="?cpp_control_image_button_style"/>
style="?attr/cpp_button_style_control_image"/>

View File

@ -29,4 +29,4 @@
a:text="/"
c:textDown="√"
c:directionTextScale="0.5"
style="?cpp_operation_button_style"/>
style="?attr/cpp_button_style_operation"/>

View File

@ -25,4 +25,4 @@
<ImageButton xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@id/cpp_button_like"
a:src="@drawable/kb_share"
style="?cpp_control_image_button_style"/>
style="?attr/cpp_button_style_control_image"/>

View File

@ -28,4 +28,4 @@
a:text="."
c:textUp=","
c:directionTextScale="0.5"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -21,4 +21,4 @@
~ Email: se.solovyev@gmail.com
~ Site: http://se.solovyev.org
-->
<org.solovyev.android.calculator.drag.DirectionDragButton style="?cpp_control_button_style"/>
<org.solovyev.android.calculator.drag.DirectionDragButton style="?attr/cpp_button_style_control"/>

View File

@ -28,4 +28,4 @@
a:text="="
c:textDown="@string/cpp_plot_button_text"
c:directionTextScale="0.5;0.5;0.33;0.5"
style="?cpp_control_button_style"/>
style="?attr/cpp_button_style_control"/>

View File

@ -25,4 +25,4 @@
<ImageButton xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@id/cpp_button_erase"
a:src="@drawable/kb_erase"
style="?cpp_control_image_button_style"/>
style="?attr/cpp_button_style_control_image"/>

View File

@ -29,4 +29,4 @@
c:textUp="+ƒ"
a:text="ƒ(x)"
a:textStyle="italic"
style="?cpp_control_button_style"/>
style="?attr/cpp_button_style_control"/>

View File

@ -28,5 +28,5 @@
c:textUp="@string/c_undo"
c:textDown="@string/c_redo"
c:directionTextScale="0.27"
style="?cpp_control_button_style"
style="?attr/cpp_button_style_control"
a:textStyle="bold"/>

View File

@ -28,4 +28,4 @@
c:textUp="◁◁"
a:text="◁"
c:directionTextScale="0.5"
style="?cpp_control_button_style"/>
style="?attr/cpp_button_style_control"/>

View File

@ -27,4 +27,4 @@
c:textDown="∂,…"
a:text="-"
c:directionTextScale="0.4"
style="?cpp_operation_button_style"/>
style="?attr/cpp_button_style_operation"/>

View File

@ -29,5 +29,5 @@
c:textUp="^"
c:textDown="^2"
c:textLeft="Π"
style="?cpp_operation_button_style"
style="?attr/cpp_button_style_operation"
c:directionTextScale="0.5"/>

View File

@ -25,4 +25,4 @@
<org.solovyev.android.calculator.drag.DirectionDragButton xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@id/cpp_button_operators"
a:text="∂,…"
style="?cpp_control_button_style"/>
style="?attr/cpp_button_style_control"/>

View File

@ -25,4 +25,4 @@
<ImageButton xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@id/cpp_button_paste"
a:src="@drawable/kb_paste"
style="?cpp_control_image_button_style"/>
style="?attr/cpp_button_style_control_image"/>

View File

@ -28,4 +28,4 @@
c:textUp="°"
c:textDown="E"
a:text="+"
style="?cpp_operation_button_style"/>
style="?attr/cpp_button_style_operation"/>

View File

@ -28,4 +28,4 @@
c:textUp="▷▷"
a:text="▷"
c:directionTextScale="0.5"
style="?cpp_control_button_style"/>
style="?attr/cpp_button_style_control"/>

View File

@ -30,4 +30,4 @@
c:textDown=")"
c:textLeft="(…)"
c:directionTextScale="0.5;0.5;0.5;0.33"
style="?cpp_digit_button_style"/>
style="?attr/cpp_button_style_digit"/>

View File

@ -29,4 +29,4 @@
c:textUp="+π"
a:text="π,…"
a:textStyle="italic"
style="?cpp_control_button_style"/>
style="?attr/cpp_button_style_control"/>

View File

@ -24,7 +24,7 @@
<org.solovyev.android.calculator.AndroidCalculatorDisplayView xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/calculator_display"
style="@style/cpp_display_style"
style="@style/CppText.Display"
a:padding="@dimen/cpp_display_padding"
a:inputType="textMultiLine"
a:maxLines="3"

View File

@ -24,7 +24,7 @@
<org.solovyev.android.calculator.AndroidCalculatorDisplayView xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/calculator_display"
style="@style/cpp_display_style"
style="@style/CppText.Display"
a:padding="@dimen/cpp_display_padding"
a:inputType="textMultiLine"
a:maxLines="3"

View File

@ -24,14 +24,14 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:padding="@dimen/cpp_editor_padding">
<org.solovyev.android.calculator.AndroidCalculatorEditorView
a:id="@+id/calculator_editor"
style="@style/cpp_editor_style"
style="@style/CppText.Editor"
a:textIsSelectable="true"
a:singleLine="false"
a:scrollbars="vertical"

View File

@ -24,14 +24,14 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:padding="@dimen/cpp_editor_padding">
<org.solovyev.android.calculator.AndroidCalculatorEditorView
a:id="@+id/calculator_editor"
style="@style/cpp_editor_mobile_style"
style="@style/CppText.Editor.Mobile"
a:textIsSelectable="true"
a:singleLine="false"
a:scrollbars="vertical"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/dialog_layout"
style="@style/cpp_dialog"
style="@style/CppDialog"
a:orientation="vertical">
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_gravity="center_horizontal"
a:layout_height="match_parent"

View File

@ -23,7 +23,7 @@
-->
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
style="@style/cpp_dialog">
style="@style/CppDialog">
<LinearLayout
a:id="@+id/cpp_fixable_messages_container"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent">
@ -32,7 +32,7 @@
a:id="@+id/fragment_title"
a:layout_height="wrap_content"
a:layout_width="match_parent"
style="?cpp_fragment_title_style"/>
style="@style/CppFragmentTitle"/>
<include layout="@layout/ad"/>

View File

@ -24,6 +24,6 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/dialog_layout"
style="@style/cpp_dialog">
style="@style/CppDialog">
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="wrap_content"
a:layout_gravity="center_horizontal"
a:layout_height="match_parent"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent">
@ -60,6 +60,6 @@
</LinearLayout>
<ListView style="@style/ListView"/>
<ListView style="@style/CppListView"/>
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_gravity="center_horizontal"
a:layout_height="match_parent"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_gravity="center_horizontal"
a:layout_height="match_parent"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/wizard_layout"
style="@style/cpp_dialog"
style="@style/CppDialog"
a:orientation="vertical">
<FrameLayout

View File

@ -56,6 +56,6 @@
c:textDown="^2"
c:textUp="%"
c:directionTextScale="0.5;0.5;0.5;0.33"
style="?cpp_control_button_style" />
style="?attr/cpp_button_style_control" />
</LinearLayout>

View File

@ -28,7 +28,7 @@
<TextView
a:id="@+id/feedbackText"
style="@style/cpp_about_style"
style="@style/CppText.About"
a:layout_width="fill_parent"
a:text="@string/c_feedback_text"
a:layout_height="fill_parent"/>

View File

@ -24,14 +24,14 @@
<LinearLayout
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent">
<TextView
a:id="@+id/fragment_title"
style="?cpp_fragment_title_style"
style="@style/CppFragmentTitle"
a:layout_width="match_parent"
a:layout_height="wrap_content" />
@ -41,11 +41,11 @@
a:layout_width="match_parent"
a:layout_height="match_parent">
<ListView style="@style/ListView" />
<ListView style="@style/CppListView" />
<com.melnykov.fab.FloatingActionButton
a:id="@+id/fab"
style="@style/Fab"
style="@style/CppFab"
a:src="@drawable/ic_delete_white_36dp" />
</FrameLayout>
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:orientation="horizontal"
style="@style/ListViewItem">
style="@style/CppListViewItem">
<LinearLayout

View File

@ -23,7 +23,7 @@
-->
<LinearLayout a:id="@+id/main_layout"
style="?cpp_main_layout_style"
style="@style/CppMain"
xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent"

View File

@ -27,7 +27,7 @@
a:layout_height="match_parent"
a:id="@+id/main_layout"
a:orientation="vertical"
style="?cpp_main_layout_style">
style="@style/CppMain">
<LinearLayout
a:id="@+id/editorContainer"

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
style="?cpp_main_layout_style"
style="@style/CppMain"
a:orientation="vertical">
</LinearLayout>

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_layout"
style="?cpp_main_multi_pane_layout_style"
style="@style/CppMain.Multipane"
a:orientation="vertical">
</LinearLayout>

View File

@ -24,14 +24,14 @@
<LinearLayout
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent">
<TextView
a:id="@+id/fragment_title"
style="?cpp_fragment_title_style"
style="@style/CppFragmentTitle"
a:layout_width="match_parent"
a:layout_height="wrap_content" />
@ -41,11 +41,11 @@
a:layout_width="match_parent"
a:layout_height="match_parent">
<ListView style="@style/ListView" />
<ListView style="@style/CppListView" />
<com.melnykov.fab.FloatingActionButton
a:id="@+id/fab"
style="@style/Fab"
style="@style/CppFab"
a:src="@drawable/ic_add_white_36dp"
a:visibility="gone" />
</FrameLayout>

View File

@ -25,7 +25,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_height="wrap_content"
a:layout_width="match_parent"
style="@style/ListViewItem"
style="@style/CppListViewItem"
a:orientation="horizontal">
<LinearLayout

View File

@ -26,7 +26,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:picker="http://schemas.android.com/apk/res-auto"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent">
@ -34,7 +34,7 @@
a:id="@+id/fragmentTitle"
a:layout_height="wrap_content"
a:layout_width="match_parent"
style="?cpp_fragment_title_style"/>
style="@style/CppFragmentTitle"/>
<include layout="@layout/ad"/>

View File

@ -28,7 +28,7 @@
<TextView
a:id="@+id/notespp_announce"
style="@style/cpp_about_style"
style="@style/CppText.About"
a:layout_width="fill_parent"
a:text="@string/c_notespp_announce_text"
a:layout_height="fill_parent"/>

View File

@ -8,7 +8,7 @@
<org.solovyev.android.calculator.AndroidCalculatorDisplayView xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/calculator_display"
style="@style/cpp_onscreen_display_style"
style="@style/CppText.Display.Onscreen"
a:padding="@dimen/cpp_display_padding"
a:inputType="textMultiLine"
a:maxLines="3"

View File

@ -8,7 +8,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:padding="@dimen/cpp_editor_padding">

View File

@ -35,7 +35,7 @@
a:layout_weight="1"
a:gravity="top|left"
a:scrollbars="vertical"
style="@style/cpp_about_style"/>
style="@style/CppText.About"/>
<!--
a:scrollbarFadeDuration="0" is not support in android_1.6_compatibility

View File

@ -24,7 +24,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:orientation="vertical"
style="@style/ListViewItem">
style="@style/CppListViewItem">
<TextView
a:id="@+id/history_item"

View File

@ -24,14 +24,14 @@
<LinearLayout
a:id="@+id/main_fragment_layout"
style="?cpp_fragment_layout_style"
style="@style/CppFragment"
xmlns:a="http://schemas.android.com/apk/res/android"
a:layout_width="match_parent"
a:layout_height="match_parent">
<TextView
a:id="@+id/fragment_title"
style="?cpp_fragment_title_style"
style="@style/CppFragmentTitle"
a:layout_width="match_parent"
a:layout_height="wrap_content" />
@ -41,11 +41,11 @@
a:layout_width="match_parent"
a:layout_height="match_parent">
<ListView style="@style/ListView" />
<ListView style="@style/CppListView" />
<com.melnykov.fab.FloatingActionButton
a:id="@+id/fab"
style="@style/Fab"
style="@style/CppFab"
a:src="@drawable/ic_add_white_36dp" />
</FrameLayout>

View File

@ -8,7 +8,7 @@
<LinearLayout xmlns:a="http://schemas.android.com/apk/res/android"
a:id="@+id/main_fragment_layout"
style="@style/cpp_default_fragment_layout_style"
style="@style/CppFragment"
a:layout_width="match_parent"
a:layout_height="match_parent"
a:padding="@dimen/cpp_editor_padding">

View File

@ -8,7 +8,7 @@
<LinearLayout
a:id="@+id/main_fragment_layout"
style="@style/cpp_default_fragment_layout_style"
style="@style/CppFragment"
a:orientation="horizontal"
a:layout_width="match_parent"
a:layout_height="0dp"

View File

@ -22,17 +22,17 @@
<resources>
<style name="Theme" parent="Theme.Base">
<style name="Cpp.Theme" parent="Cpp.Theme.Base">
<item name="android:colorPrimary">@color/cpp_metro_button</item>
<item name="android:colorPrimaryDark">@color/cpp_metro_button_dark</item>
</style>
<style name="Theme.Dialog" parent="Theme.Base.Dialog">
<style name="Cpp.Theme.Dialog" parent="Cpp.Theme.Base.Dialog">
<item name="android:colorPrimary">@color/cpp_metro_button</item>
<item name="android:colorPrimaryDark">@color/cpp_metro_button_dark</item>
</style>
<style name="Theme.Wizard" parent="@style/cpp_metro_blue_theme">
<style name="Cpp.Theme.Wizard" parent="@style/cpp_metro_blue_theme">
<item name="android:windowBackground">@color/cpp_wizard_bg</item>
<item name="android:colorEdgeEffect">@color/cpp_wizard_overscroll</item>
<item name="colorAccent">@color/cpp_wizard_primary</item>
@ -41,7 +41,7 @@
<item name="android:textColorPrimary">@color/cpp_wizard_primary</item>
</style>
<style name="Theme.Settings" parent="Theme.Settings.Base">
<style name="Cpp.Theme.Settings" parent="Cpp.Theme.Settings.Base">
<item name="android:colorEdgeEffect">@color/cpp_wizard_overscroll</item>
<item name="colorAccent">@color/cpp_wizard_primary</item>
<item name="android:colorAccent">@color/cpp_wizard_primary</item>

View File

@ -22,38 +22,31 @@
<resources>
<style name="material_digit_button_style" parent="cpp_keyboard_button_style">
<style name="CppKeyboardButton.Material.Digit" parent="CppKeyboardButton">
<item name="android:background">@drawable/material_button_dark</item>
<item name="android:stateListAnimator">@null</item>
</style>
<style name="material_control_button_style" parent="metro_digit_button_style">
<item name="android:background">@drawable/material_button_dark</item>
<item name="android:stateListAnimator">@null</item>
</style>
<style name="material_operation_button_style" parent="material_digit_button_style">
<style name="CppKeyboardButton.Material.Operation" parent="CppKeyboardButton.Material.Digit">
<item name="android:background">@drawable/material_blue_button</item>
<item name="android:stateListAnimator">@null</item>
</style>
<style name="material_control_image_button_style" parent="material_control_button_style">
<style name="CppKeyboardButton.Material.Control.Image" parent="CppKeyboardButton.Material.Digit">
<item name="android:padding">6dp</item>
<item name="android:stateListAnimator">@null</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 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_image">@style/CppKeyboardButton.Material.Control.Image</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Operation</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 name="Cpp.Theme.Dialog.Material" 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_image">@style/CppKeyboardButton.Material.Control.Image</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Material.Operation</item>
</style>
</resources>

View File

@ -23,17 +23,10 @@
<resources>
<attr name="cpp_digit_button_style" format="reference"/>
<attr name="cpp_control_button_style" format="reference"/>
<attr name="cpp_control_image_button_style" format="reference"/>
<attr name="cpp_operation_button_style" format="reference"/>
<attr name="cpp_fragment_layout_style" format="reference"/>
<attr name="cpp_fragment_title_style" format="reference"/>
<attr name="cpp_button_style" format="reference"/>
<attr name="cpp_pane_style" format="reference"/>
<attr name="cpp_pane_style_transparent" format="reference"/>
<attr name="cpp_main_layout_style" format="reference"/>
<attr name="cpp_main_multi_pane_layout_style" format="reference"/>
<attr name="cpp_button_style_digit" format="reference"/>
<attr name="cpp_button_style_control" format="reference"/>
<attr name="cpp_button_style_control_image" format="reference"/>
<attr name="cpp_button_style_operation" format="reference"/>
<attr name="cpp_main_bg" format="reference"/>
</resources>

View File

@ -40,16 +40,7 @@
<item name="android:textSize">@dimen/cpp_text_size</item>
</style>
<style name="cpp_button_style">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:focusable">true</item>
<item name="android:background">@drawable/metro_blue_button</item>
<item name="android:textSize">@dimen/cpp_button_text_size</item>
<item name="android:textColor">@color/cpp_button_text</item>
</style>
<style name="cpp_keyboard_button_style">
<style name="CppKeyboardButton">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">1</item>
@ -62,7 +53,7 @@
<item name="android:scaleType">centerInside</item>
</style>
<style name="cpp_onscreen_editor_style" parent="cpp_editor_style">
<style name="cpp_onscreen_editor_style" parent="CppText.Editor">
<item name="android:ellipsize">none</item>
<item name="android:singleLine">true</item>
<item name="android:maxLines">1</item>
@ -71,7 +62,7 @@
<item name="android:scrollbars">horizontal</item>
</style>
<style name="cpp_editor_style" parent="cpp_default_text">
<style name="CppText.Editor" parent="CppText">
<item name="android:text">""</item>
<item name="android:gravity">left|top</item>
<item name="android:layout_width">fill_parent</item>
@ -79,22 +70,22 @@
<item name="android:textSize">@dimen/cpp_editor_text_size</item>
</style>
<style name="cpp_editor_mobile_style" parent="cpp_editor_style">
<style name="CppText.Editor.Mobile" parent="CppText.Editor">
<item name="android:textSize">@dimen/cpp_editor_text_size_mobile</item>
</style>
<style name="cpp_display_style" parent="cpp_default_text">
<style name="CppText.Display" parent="CppText">
<item name="android:gravity">top|right</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:textSize">@dimen/cpp_display_text_size</item>
</style>
<style name="cpp_onscreen_display_style" parent="cpp_display_style">
<style name="CppText.Display.Onscreen" parent="CppText.Display">
<item name="android:textSize">@dimen/cpp_onscreen_display_text_size</item>
</style>
<style name="cpp_about_style" parent="cpp_default_text">
<style name="CppText.About" parent="CppText">
<item name="android:gravity">center</item>
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
@ -102,12 +93,11 @@
<item name="android:padding">5dp</item>
</style>
<style name="cpp_default_text">
<style name="CppText">
<item name="android:background">@android:color/transparent</item>
<item name="android:textColor">@color/cpp_text</item>
</style>
<style name="cpp_simple_metro_digit_button_style" parent="metro_digit_button_style">
<item name="android:textSize">@dimen/cpp_widget_keyboard_button_text_size</item>
<item name="android:background">@drawable/metro_widget_button_dark</item>
@ -127,21 +117,21 @@
<item name="android:background">@drawable/metro_widget_button_light</item>
</style>
<style name="cpp_widget_main_layout_style" parent="cpp_default_main_layout_style">
<style name="cpp_widget_main_layout_style" parent="CppMain">
<item name="android:background">@color/cpp_main_bg</item>
<item name="android:padding">1dp</item>
<item name="android:layout_margin">@dimen/cpp_widget_margin</item>
</style>
<style name="cpp_widget_editor_style" parent="cpp_editor_style">
<style name="cpp_widget_editor_style" parent="CppText.Editor">
<item name="android:textSize">@dimen/cpp_widget_editor_text_size</item>
</style>
<style name="cpp_widget_display_style" parent="cpp_display_style">
<style name="cpp_widget_display_style" parent="CppText.Display">
<item name="android:textSize">@dimen/cpp_widget_display_text_size</item>
</style>
<style name="cpp_onscreen_main_layout_style" parent="cpp_default_main_layout_style">
<style name="cpp_onscreen_main_layout_style" parent="CppMain">
<item name="android:background">@color/cpp_main_bg</item>
<item name="android:padding">1dp</item>
</style>
@ -201,4 +191,83 @@
<item name="materialColor">@color/cpp_wizard_button_selector</item>
<item name="android:textAppearance">@android:style/TextAppearance.Medium</item>
</style>
<style name="CppFragmentTitle">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/cpp_fragment_title_text_size</item>
<item name="android:paddingLeft">@dimen/cpp_pane_margin</item>
</style>
<style name="CppPaneStyle">
<item name="android:layout_marginLeft">@dimen/cpp_pane_margin</item>
<item name="android:layout_marginTop">@dimen/cpp_pane_margin</item>
<item name="android:padding">@dimen/cpp_pane_padding</item>
<item name="android:background">@drawable/pane_background</item>
</style>
<style name="CppPaneStyle.Transparent" parent="CppPaneStyle">
<item name="android:background">@android:color/transparent</item>
<item name="android:padding">0dp</item>
</style>
<style name="CppMain">
<item name="android:baselineAligned">false</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">match_parent</item>
</style>
<style name="CppMain.Multipane" parent="CppMain">
<item name="android:paddingRight">@dimen/cpp_pane_padding</item>
<item name="android:paddingBottom">@dimen/cpp_pane_padding</item>
</style>
<style name="CppFragment">
<item name="android:layout_margin">0dp</item>
<item name="android:padding">0dp</item>
<item name="android:orientation">vertical</item>
</style>
<style name="CppDialog">
<item name="android:padding">6dp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:orientation">vertical</item>
<item name="android:layout_gravity">center_horizontal</item>
</style>
<style name="CppListViewItem">
<item name="android:paddingLeft">16dp</item>
<item name="android:paddingRight">16dp</item>
<item name="android:paddingBottom">20dp</item>
<item name="android:paddingTop">20dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">match_parent</item>
<item name="android:minHeight">72dp</item>
<item name="android:gravity">center_vertical|left</item>
</style>
<style name="CppFab">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">bottom|end</item>
<item name="android:layout_margin">16dp</item>
<item name="fab_colorNormal">@color/cpp_metro_button</item>
<item name="fab_colorPressed">@color/cpp_metro_button</item>
<item name="fab_colorRipple">?attr/colorControlHighlight</item>
</style>
<style name="CppListView">
<item name="android:id">@android:id/list</item>
<item name="android:dividerHeight">1px</item>
<item name="android:divider">@color/cpp_list_divider</item>
<item name="android:cacheColorHint">@android:color/transparent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:fadingEdge">none</item>
<item name="android:paddingLeft">@dimen/cpp_pane_padding</item>
<item name="android:paddingRight">@dimen/cpp_pane_padding</item>
<item name="android:layout_marginBottom">@dimen/cpp_pane_padding</item>
</style>
</resources>

View File

@ -22,26 +22,35 @@
<resources>
<style name="Theme" parent="Theme.Base"></style>
<style name="Theme.Dialog" parent="Theme.Base.Dialog"></style>
<style name="Cpp.Theme" parent="Cpp.Theme.Base"/>
<style name="Theme.Base" parent="@style/Theme.AppCompat"></style>
<style name="Theme.Base.Dialog" parent="@style/Theme.AppCompat.Dialog">
<style name="Cpp.Theme.Dialog" parent="Cpp.Theme.Base.Dialog"/>
<style name="Cpp.Theme.Base" parent="@style/Theme.AppCompat">
<item name="android:windowBackground">@color/cpp_main_bg</item>
<item name="cpp_main_bg">@color/cpp_main_bg</item>
</style>
<style name="Cpp.Theme.Base.Dialog" parent="@style/Theme.AppCompat.Dialog">
<item name="android:windowNoTitle">false</item>
<item name="android:windowTitleBackgroundStyle">@android:color/transparent</item>
<item name="windowActionBar">false</item>
<item name="android:windowCloseOnTouchOutside">false</item>
<item name="cpp_main_bg">@color/cpp_main_bg</item>
</style>
<style name="Theme.Wizard.Purchase" parent="cpp_metro_blue_theme">
<style name="Cpp.Theme.Wizard.Purchase" parent="cpp_metro_blue_theme">
<item name="android:windowNoTitle">true</item>
<item name="android:background">@color/cpp_metro_button_light</item>
</style>
<style name="Theme.Wizard" parent="@style/cpp_metro_blue_theme">
<style name="Cpp.Theme.Wizard" parent="@style/cpp_metro_blue_theme">
<item name="android:windowBackground">@color/cpp_wizard_bg</item>
</style>
<style name="Theme.Settings.Base" parent="@style/cpp_metro_blue_theme">
<style name="Cpp.Theme.Settings.Base" parent="@style/cpp_metro_blue_theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="toolbarStyle">@style/Widget.Toolbar</item>
@ -49,8 +58,8 @@
<item name="android:textColorSecondary">@color/cpp_wizard_secondary</item>
<item name="android:textColorPrimary">@color/cpp_wizard_primary</item>
</style>
<style name="Theme.Settings" parent="Theme.Settings.Base">
</style>
<style name="Cpp.Theme.Settings" parent="Cpp.Theme.Settings.Base"/>
<style name="Widget.Toolbar" parent="@style/Widget.AppCompat.Toolbar">
<item name="android:background">?attr/colorPrimary</item>

View File

@ -1,173 +0,0 @@
<?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
-->
<resources>
<style name="cpp_default_digit_button_style" parent="cpp_keyboard_button_style">
<item name="android:background">@drawable/gray_button</item>
</style>
<style name="cpp_dialog">
<item name="android:padding">6dp</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:orientation">vertical</item>
<item name="android:layout_gravity">center_horizontal</item>
</style>
<style name="cpp_default_control_button_style" parent="cpp_keyboard_button_style">
<item name="android:background">@drawable/gray_button_dark</item>
</style>
<style name="cpp_default_operation_button_style" parent="cpp_default_digit_button_style">
<item name="android:textColor">@color/cpp_button_text_operator</item>
</style>
<style name="cpp_default_control_image_button_style" parent="cpp_default_control_button_style">
<item name="android:padding">6dp</item>
</style>
<style name="ListViewItem">
<item name="android:paddingLeft">16dp</item>
<item name="android:paddingRight">16dp</item>
<item name="android:paddingBottom">20dp</item>
<item name="android:paddingTop">20dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_width">match_parent</item>
<item name="android:minHeight">72dp</item>
<item name="android:gravity">center_vertical|left</item>
</style>
<style name="Fab">
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_gravity">bottom|end</item>
<item name="android:layout_margin">16dp</item>
<item name="fab_colorNormal">@color/cpp_metro_button</item>
<item name="fab_colorPressed">@color/cpp_metro_button</item>
<item name="fab_colorRipple">?attr/colorControlHighlight</item>
</style>
<style name="ListView">
<item name="android:id">@android:id/list</item>
<item name="android:dividerHeight">1px</item>
<item name="android:divider">@color/cpp_list_divider</item>
<item name="android:cacheColorHint">@android:color/transparent</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">match_parent</item>
<item name="android:layout_weight">1</item>
<item name="android:fadingEdge">none</item>
<item name="android:paddingLeft">@dimen/cpp_pane_padding</item>
<item name="android:paddingRight">@dimen/cpp_pane_padding</item>
<item name="android:layout_marginBottom">@dimen/cpp_pane_padding</item>
</style>
<style name="cpp_default_fragment_title_style">
<item name="android:textColor">@android:color/white</item>
<item name="android:textSize">@dimen/cpp_fragment_title_text_size</item>
<item name="android:paddingLeft">@dimen/cpp_pane_margin</item>
</style>
<style name="cpp_default_button_style" parent="cpp_button_style">
<item name="android:paddingTop">5dp</item>
<item name="android:paddingBottom">5dp</item>
<item name="android:paddingLeft">10dp</item>
<item name="android:paddingRight">10dp</item>
</style>
<style name="cpp_default_pane_style_transparent" parent="cpp_default_pane_style">
<item name="android:background">@android:color/transparent</item>
<item name="android:padding">0dp</item>
</style>
<style name="cpp_default_pane_style">
<item name="android:layout_marginLeft">@dimen/cpp_pane_margin</item>
<item name="android:layout_marginTop">@dimen/cpp_pane_margin</item>
<item name="android:padding">@dimen/cpp_pane_padding</item>
<item name="android:background">@drawable/pane_background</item>
</style>
<style name="cpp_default_main_multi_pane_layout_style" parent="cpp_default_main_layout_style">
<item name="android:paddingRight">@dimen/cpp_pane_padding</item>
<item name="android:paddingBottom">@dimen/cpp_pane_padding</item>
</style>
<style name="cpp_default_fragment_multi_pane_layout_style" parent="cpp_default_fragment_layout_style"></style>
<style name="cpp_default_fragment_layout_style">
<item name="android:layout_margin">0dp</item>
<item name="android:padding">0dp</item>
<item name="android:orientation">vertical</item>
</style>
<style name="cpp_default_main_layout_style">
<item name="android:baselineAligned">false</item>
<item name="android:layout_height">match_parent</item>
<item name="android:layout_width">match_parent</item>
</style>
<style name="cpp_gray_theme" parent="Theme">
<item name="android:windowBackground">@color/cpp_main_bg</item>
<!-- buttons -->
<item name="cpp_digit_button_style">@style/cpp_default_digit_button_style</item>
<item name="cpp_control_button_style">@style/cpp_default_control_button_style</item>
<item name="cpp_control_image_button_style">@style/cpp_default_control_image_button_style</item>
<item name="cpp_operation_button_style">@style/cpp_default_operation_button_style</item>
<!-- other -->
<item name="cpp_fragment_title_style">@style/cpp_default_fragment_title_style</item>
<item name="cpp_button_style">@style/cpp_default_button_style</item>
<item name="cpp_main_layout_style">@style/cpp_default_main_layout_style</item>
<item name="cpp_main_multi_pane_layout_style">@style/cpp_default_main_multi_pane_layout_style</item>
<item name="cpp_fragment_layout_style">@style/cpp_default_fragment_layout_style</item>
<item name="cpp_pane_style">@style/cpp_default_pane_style</item>
<item name="cpp_pane_style_transparent">@style/cpp_default_pane_style_transparent</item>
<item name="cpp_main_bg">@color/cpp_main_bg</item>
</style>
<style name="cpp_gray_dialog_theme" parent="Theme.Dialog">
<item name="android:windowCloseOnTouchOutside">false</item>
<!-- buttons -->
<item name="cpp_digit_button_style">@style/cpp_default_digit_button_style</item>
<item name="cpp_control_button_style">@style/cpp_default_control_button_style</item>
<item name="cpp_control_image_button_style">@style/cpp_default_control_image_button_style</item>
<item name="cpp_operation_button_style">@style/cpp_default_operation_button_style</item>
<!-- other -->
<item name="cpp_fragment_title_style">@style/cpp_default_fragment_title_style</item>
<item name="cpp_button_style">@style/cpp_default_button_style</item>
<item name="cpp_main_layout_style">@style/cpp_default_main_layout_style</item>
<item name="cpp_main_multi_pane_layout_style">@style/cpp_default_main_multi_pane_layout_style</item>
<item name="cpp_fragment_layout_style">@style/cpp_default_fragment_layout_style</item>
<item name="cpp_pane_style">@style/cpp_default_pane_style</item>
<item name="cpp_pane_style_transparent">@style/cpp_default_pane_style_transparent</item>
<item name="cpp_main_bg">@color/cpp_main_bg</item>
</style>
</resources>

View File

@ -22,7 +22,7 @@
<resources>
<style name="metro_digit_button_style" parent="cpp_keyboard_button_style">
<style name="metro_digit_button_style" parent="CppKeyboardButton">
<item name="android:background">@drawable/metro_button_dark</item>
</style>
@ -48,18 +48,18 @@
<item name="android:padding">6dp</item>
</style>
<style name="cpp_metro_blue_theme" parent="cpp_gray_theme">
<item name="cpp_digit_button_style">@style/metro_digit_button_style</item>
<item name="cpp_control_button_style">@style/metro_control_button_style</item>
<item name="cpp_control_image_button_style">@style/metro_control_image_button_style</item>
<item name="cpp_operation_button_style">@style/metro_blue_operation_button_style</item>
<style name="cpp_metro_blue_theme" parent="Cpp.Theme">
<item name="cpp_button_style_digit">@style/metro_digit_button_style</item>
<item name="cpp_button_style_control">@style/metro_control_button_style</item>
<item name="cpp_button_style_control_image">@style/metro_control_image_button_style</item>
<item name="cpp_button_style_operation">@style/metro_blue_operation_button_style</item>
</style>
<style name="cpp_metro_blue_dialog_theme" parent="cpp_gray_dialog_theme">
<item name="cpp_digit_button_style">@style/metro_digit_button_style</item>
<item name="cpp_control_button_style">@style/metro_control_button_style</item>
<item name="cpp_control_image_button_style">@style/metro_control_image_button_style</item>
<item name="cpp_operation_button_style">@style/metro_blue_operation_button_style</item>
<style name="Cpp.Theme.Dialog.Material" parent="Cpp.Theme.Dialog">
<item name="cpp_button_style_digit">@style/metro_digit_button_style</item>
<item name="cpp_button_style_control">@style/metro_control_button_style</item>
<item name="cpp_button_style_control_image">@style/metro_control_image_button_style</item>
<item name="cpp_button_style_operation">@style/metro_blue_operation_button_style</item>
</style>
</resources>

View File

@ -27,7 +27,7 @@
</style>
<style name="cpp_metro_green_theme" parent="cpp_metro_blue_theme">
<item name="cpp_operation_button_style">@style/metro_green_operation_button_style</item>
<item name="cpp_button_style_operation">@style/metro_green_operation_button_style</item>
</style>
</resources>

View File

@ -27,7 +27,7 @@
</style>
<style name="cpp_metro_purple_theme" parent="cpp_metro_blue_theme">
<item name="cpp_operation_button_style">@style/metro_purple_operation_button_style</item>
<item name="cpp_button_style_operation">@style/metro_purple_operation_button_style</item>
</style>
</resources>

View File

@ -22,27 +22,27 @@
<resources>
<style name="light_blue_digit_button_style" parent="cpp_keyboard_button_style">
<style name="CppKeyboardButton.Blue.Digit" parent="CppKeyboardButton">
<item name="android:background">@drawable/blue_button</item>
</style>
<style name="light_blue_control_button_style" parent="cpp_keyboard_button_style">
<style name="CppKeyboardButton.Blue.Control" parent="CppKeyboardButton">
<item name="android:background">@drawable/blue_button_dark</item>
</style>
<style name="light_blue_operation_button_style" parent="light_blue_digit_button_style">
<style name="CppKeyboardButton.Blue.Operation" parent="CppKeyboardButton.Blue.Digit">
<item name="android:textColor">@color/cpp_button_text_operator</item>
</style>
<style name="light_blue_control_image_button_style" parent="light_blue_control_button_style">
<style name="CppKeyboardButton.Blue.Control.Image" parent="CppKeyboardButton.Blue.Control">
<item name="android:padding">6dp</item>
</style>
<style name="cpp_light_blue_theme" parent="cpp_gray_theme">
<item name="cpp_digit_button_style">@style/light_blue_digit_button_style</item>
<item name="cpp_control_button_style">@style/light_blue_control_button_style</item>
<item name="cpp_control_image_button_style">@style/light_blue_control_image_button_style</item>
<item name="cpp_operation_button_style">@style/light_blue_operation_button_style</item>
<style name="Cpp.Theme.Blue" parent="Cpp.Theme">
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Blue.Digit</item>
<item name="cpp_button_style_control">@style/CppKeyboardButton.Blue.Control</item>
<item name="cpp_button_style_control_image">@style/CppKeyboardButton.Blue.Control.Image</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Blue.Operation</item>
</style>
</resources>

View File

@ -0,0 +1,55 @@
<?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
-->
<resources>
<style name="CppKeyboardButton.Gray.Digit" parent="CppKeyboardButton">
<item name="android:background">@drawable/gray_button</item>
</style>
<style name="CppKeyboardButton.Gray.Control" parent="CppKeyboardButton">
<item name="android:background">@drawable/gray_button_dark</item>
</style>
<style name="CppKeyboardButton.Gray.Operation" parent="CppKeyboardButton.Gray.Digit">
<item name="android:textColor">@color/cpp_button_text_operator</item>
</style>
<style name="CppKeyboardButton.Gray.Control.Image" parent="CppKeyboardButton.Gray.Control">
<item name="android:padding">6dp</item>
</style>
<style name="Cpp.Theme.Gray" parent="Cpp.Theme">
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Gray.Digit</item>
<item name="cpp_button_style_control">@style/CppKeyboardButton.Gray.Control</item>
<item name="cpp_button_style_control_image">@style/CppKeyboardButton.Gray.Control.Image</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Gray.Operation</item>
</style>
<style name="Cpp.Theme.Dialog.Gray" parent="Cpp.Theme.Dialog">
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Gray.Digit</item>
<item name="cpp_button_style_control">@style/CppKeyboardButton.Gray.Control</item>
<item name="cpp_button_style_control_image">@style/CppKeyboardButton.Gray.Control.Image</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Gray.Operation</item>
</style>
</resources>

View File

@ -22,26 +22,26 @@
<resources>
<style name="violet_digit_button_style" parent="cpp_keyboard_button_style">
<style name="CppKeyboardButton.Violet.Digit" parent="CppKeyboardButton">
<item name="android:background">@drawable/violet_button</item>
</style>
<style name="violet_operation_button_style" parent="violet_digit_button_style">
<style name="CppKeyboardButton.Violet.Operation" parent="CppKeyboardButton.Violet.Digit">
<item name="android:textColor">@color/cpp_button_text_operator</item>
</style>
<style name="violet_control_button_style" parent="cpp_keyboard_button_style">
<style name="CppKeyboardButton.Violet.Control" parent="CppKeyboardButton">
<item name="android:background">@drawable/violet_button_dark</item>
</style>
<style name="violet_control_image_button_style" parent="violet_control_button_style">
<style name="CppKeyboardButton.Violet.Control.Image" parent="CppKeyboardButton.Violet.Control">
<item name="android:padding">6dp</item>
</style>
<style name="cpp_violet_theme" parent="cpp_gray_theme">
<item name="cpp_digit_button_style">@style/violet_digit_button_style</item>
<item name="cpp_control_button_style">@style/violet_control_button_style</item>
<item name="cpp_control_image_button_style">@style/violet_control_image_button_style</item>
<item name="cpp_operation_button_style">@style/violet_operation_button_style</item>
<style name="Cpp.Theme.Violet" parent="Cpp.Theme">
<item name="cpp_button_style_digit">@style/CppKeyboardButton.Violet.Digit</item>
<item name="cpp_button_style_control">@style/CppKeyboardButton.Violet.Control</item>
<item name="cpp_button_style_control_image">@style/CppKeyboardButton.Violet.Control.Image</item>
<item name="cpp_button_style_operation">@style/CppKeyboardButton.Violet.Operation</item>
</style>
</resources>