0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 20:03:05 +02:00

Merge pull request #4092 from hssm/themes-colors

Theme fixes
This commit is contained in:
Tim Rae 2016-02-17 12:38:40 +09:00
commit 07ae683096
11 changed files with 23 additions and 32 deletions

View File

@ -224,7 +224,6 @@
android:finishOnTaskLaunch="true" /> android:finishOnTaskLaunch="true" />
<activity <activity
android:name="com.ichi2.anki.Statistics" android:name="com.ichi2.anki.Statistics"
android:theme="@style/Theme_Light_Statistics"
android:configChanges="keyboardHidden|orientation|locale|screenSize" android:configChanges="keyboardHidden|orientation|locale|screenSize"
android:parentActivityName=".DeckPicker"> android:parentActivityName=".DeckPicker">
<!-- The meta-data element is needed for versions lower than 4.1 --> <!-- The meta-data element is needed for versions lower than 4.1 -->

View File

@ -15,7 +15,7 @@
<item> <item>
<shape android:shape="rectangle" > <shape android:shape="rectangle" >
<solid android:color="#000000" /> <solid android:color="#000000" />
<stroke android:width="1dp" android:color="#0a0a0a"/> <stroke android:width=".5dp" android:color="#101010"/>
</shape> </shape>
</item> </item>
</selector> </selector>

View File

@ -61,7 +61,7 @@
android:id="@+id/login_button" android:id="@+id/login_button"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/white" android:theme="@style/LargeButtonStyle"
android:singleLine="true" android:singleLine="true"
android:textSize="@dimen/md_title_textsize" android:textSize="@dimen/md_title_textsize"
android:layout_gravity="center" android:layout_gravity="center"

View File

@ -43,7 +43,7 @@
android:id="@+id/logout_button" android:id="@+id/logout_button"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textColor="@color/white" android:theme="@style/LargeButtonStyle"
android:singleLine="true" android:singleLine="true"
android:textSize="@dimen/md_title_textsize" android:textSize="@dimen/md_title_textsize"
android:layout_gravity="center" android:layout_gravity="center"

View File

@ -202,7 +202,7 @@
android:paddingBottom="8dp"/> android:paddingBottom="8dp"/>
<Button <Button
android:id="@+id/studyoptions_start" android:id="@+id/studyoptions_start"
android:textColor="?attr/study_start_textColor" android:theme="@style/LargeButtonStyle"
android:layout_width="200dip" android:layout_width="200dip"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:lines="2" android:lines="2"

View File

@ -32,6 +32,9 @@
<declare-styleable name="SeekBarPreference"> <declare-styleable name="SeekBarPreference">
<attr name="interval" format="integer" /> <attr name="interval" format="integer" />
</declare-styleable> </declare-styleable>
<!-- App buttons -->
<attr name="largeButtonBackgroundColor" format="color"/>
<attr name="largeButtonTextColor" format="color"/>
<!-- Deck list colors, divider, and expander --> <!-- Deck list colors, divider, and expander -->
<attr name="currentDeckBackground" format="reference"/> <attr name="currentDeckBackground" format="reference"/>
<attr name="currentDeckBackgroundColor" format="color"/> <attr name="currentDeckBackgroundColor" format="color"/>
@ -84,6 +87,4 @@
<attr name="fab_labelsTextColor" format="color"/> <attr name="fab_labelsTextColor" format="color"/>
<attr name="fab_background" format="color"/> <attr name="fab_background" format="color"/>
<attr name="fab_item_background" format="reference"/> <attr name="fab_item_background" format="reference"/>
<!-- StudyOptions fragment -->
<attr name="study_start_textColor" format="color"/>
</resources> </resources>

View File

@ -110,8 +110,8 @@
<item name="android:textColorSecondary">?attr/actionBarPopupTextColor</item> <item name="android:textColorSecondary">?attr/actionBarPopupTextColor</item>
</style> </style>
<style name="Theme_Light_Statistics" parent="Theme_Light_Compat"> <style name="LargeButtonStyle">
<item name="android:radioButtonStyle">@android:style/Widget.CompoundButton.RadioButton <item name="colorButtonNormal">?attr/largeButtonBackgroundColor</item>
</item> <item name="android:textColor">?attr/largeButtonTextColor</item>
</style> </style>
</resources> </resources>

View File

@ -18,7 +18,9 @@
<item name="android:textColorSecondary">@color/theme_black_secondary_text</item> <item name="android:textColorSecondary">@color/theme_black_secondary_text</item>
<item name="android:colorBackground">@color/theme_black_primary</item> <item name="android:colorBackground">@color/theme_black_primary</item>
<item name="android:windowBackground">@color/theme_black_primary</item> <item name="android:windowBackground">@color/theme_black_primary</item>
<item name="colorButtonNormal">#ff303030</item> <!-- App buttons -->
<item name="largeButtonBackgroundColor">#ff303030</item>
<item name="largeButtonTextColor">@color/theme_black_primary_text</item>
<!-- Action bar styles --> <!-- Action bar styles -->
<item name="windowActionBar">false</item> <item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item> <item name="windowNoTitle">true</item>
@ -72,8 +74,6 @@
<item name="fab_labelsTextColor">@color/theme_black_primary_text</item> <item name="fab_labelsTextColor">@color/theme_black_primary_text</item>
<item name="fab_background">@color/theme_black_primary_light</item> <item name="fab_background">@color/theme_black_primary_light</item>
<item name="fab_item_background">@drawable/fab_label_background_black_pre21</item> <item name="fab_item_background">@drawable/fab_label_background_black_pre21</item>
<!-- StudyOptions fragment -->
<item name="study_start_textColor">@color/theme_black_primary_text</item>
<!-- Dialog styles --> <!-- Dialog styles -->
<item name="android:listPreferredItemHeight">56dip</item> <item name="android:listPreferredItemHeight">56dip</item>
<item name="md_dark_theme">true</item> <item name="md_dark_theme">true</item>

View File

@ -18,7 +18,9 @@
<item name="android:textColorSecondary">@color/theme_dark_secondary_text</item> <item name="android:textColorSecondary">@color/theme_dark_secondary_text</item>
<item name="android:colorBackground">@color/material_theme_grey</item> <item name="android:colorBackground">@color/material_theme_grey</item>
<item name="android:windowBackground">@color/material_theme_grey</item> <item name="android:windowBackground">@color/material_theme_grey</item>
<item name="colorButtonNormal">@color/material_light_blue_700</item> <!-- App buttons -->
<item name="largeButtonBackgroundColor">@color/material_light_blue_700</item>
<item name="largeButtonTextColor">@color/white</item>
<!-- Action bar styles --> <!-- Action bar styles -->
<item name="windowActionBar">false</item> <item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item> <item name="windowNoTitle">true</item>
@ -72,8 +74,6 @@
<item name="fab_labelsTextColor">@color/white</item> <item name="fab_labelsTextColor">@color/white</item>
<item name="fab_background">@color/material_grey_700</item> <item name="fab_background">@color/material_grey_700</item>
<item name="fab_item_background">@drawable/fab_label_background_pre21</item> <item name="fab_item_background">@drawable/fab_label_background_pre21</item>
<!-- StudyOptions fragment -->
<item name="study_start_textColor">@color/white</item>
<!-- Images --> <!-- Images -->
<item name="navDrawerImage">@drawable/nav_drawer_logo_dark_theme</item> <item name="navDrawerImage">@drawable/nav_drawer_logo_dark_theme</item>
<item name="attachFileImage">@drawable/ic_attachment_white_24dp</item> <item name="attachFileImage">@drawable/ic_attachment_white_24dp</item>

View File

@ -20,7 +20,8 @@ APIs. It's visible when there aren't enough decks to fill the screen.
<color name="theme_light_secondary_text">#de000000</color> <!-- 87% black --> <color name="theme_light_secondary_text">#de000000</color> <!-- 87% black -->
<color name="theme_light_row_current">#ececec</color> <color name="theme_light_row_current">#ececec</color>
<style name="Theme_Light" parent="@style/Theme.AppCompat.Light"> <!-- DarkActionBar needed for readable text in the menu opened by the hardware menu button -->
<style name="Theme_Light" parent="@style/Theme.AppCompat.Light.DarkActionBar">
<!-- Android colors --> <!-- Android colors -->
<item name="colorPrimary">@color/theme_light_primary</item> <item name="colorPrimary">@color/theme_light_primary</item>
<item name="colorPrimaryDark">@color/theme_light_primary_dark</item> <item name="colorPrimaryDark">@color/theme_light_primary_dark</item>
@ -30,7 +31,9 @@ APIs. It's visible when there aren't enough decks to fill the screen.
<item name="android:textColorSecondary">@color/theme_light_secondary_text</item> <item name="android:textColorSecondary">@color/theme_light_secondary_text</item>
<item name="android:colorBackground">@android:color/white</item> <item name="android:colorBackground">@android:color/white</item>
<item name="android:windowBackground">@android:color/white</item> <item name="android:windowBackground">@android:color/white</item>
<item name="colorButtonNormal">@color/material_light_blue_700</item> <!-- App buttons -->
<item name="largeButtonBackgroundColor">@color/material_light_blue_700</item>
<item name="largeButtonTextColor">@color/white</item>
<!-- Action bar styles --> <!-- Action bar styles -->
<item name="windowActionBar">false</item> <item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item> <item name="windowNoTitle">true</item>
@ -84,8 +87,6 @@ APIs. It's visible when there aren't enough decks to fill the screen.
<item name="fab_labelsTextColor">@color/white</item> <item name="fab_labelsTextColor">@color/white</item>
<item name="fab_background">@color/material_grey_700</item> <item name="fab_background">@color/material_grey_700</item>
<item name="fab_item_background">@drawable/fab_label_background_pre21</item> <item name="fab_item_background">@drawable/fab_label_background_pre21</item>
<!-- StudyOptions fragment -->
<item name="study_start_textColor">@color/white</item>
<!-- Images --> <!-- Images -->
<item name="navDrawerImage">@drawable/nav_drawer_logo</item> <item name="navDrawerImage">@drawable/nav_drawer_logo</item>
<item name="attachFileImage">@drawable/ic_attachment_black_24dp</item> <item name="attachFileImage">@drawable/ic_attachment_black_24dp</item>

View File

@ -15,7 +15,8 @@
<item name="android:textColor">@color/theme_plain_primary_text</item> <item name="android:textColor">@color/theme_plain_primary_text</item>
<item name="android:textColorPrimary">@color/theme_plain_primary_text</item> <item name="android:textColorPrimary">@color/theme_plain_primary_text</item>
<item name="android:textColorSecondary">@color/theme_plain_secondary_text</item> <item name="android:textColorSecondary">@color/theme_plain_secondary_text</item>
<item name="colorButtonNormal">@color/theme_plain_accent</item> <!-- App buttons -->
<item name="largeButtonBackgroundColor">@color/theme_plain_accent</item>
<!-- Action bar styles --> <!-- Action bar styles -->
<item name="actionBarPopupBackgroundColor">@color/theme_plain_primary_light</item> <item name="actionBarPopupBackgroundColor">@color/theme_plain_primary_light</item>
<item name="actionBarPopupTextColor">@color/theme_plain_primary_text</item> <item name="actionBarPopupTextColor">@color/theme_plain_primary_text</item>
@ -27,17 +28,6 @@
<item name="hardButtonRef">@drawable/footer_button_all_plain</item> <item name="hardButtonRef">@drawable/footer_button_all_plain</item>
<item name="goodButtonRef">@drawable/footer_button_all_plain</item> <item name="goodButtonRef">@drawable/footer_button_all_plain</item>
<item name="easyButtonRef">@drawable/footer_button_all_plain</item> <item name="easyButtonRef">@drawable/footer_button_all_plain</item>
<!-- Stats colors -->
<item name="stats_young">#7c7</item>
<item name="stats_mature">#070</item>
<item name="stats_learn">#00F</item>
<item name="stats_relearn">#c00</item>
<item name="stats_cram">#ff0</item>
<item name="stats_interval">#077</item>
<item name="stats_hours">#ccc</item>
<item name="stats_counts">#E6000000</item>
<item name="stats_unseen">#000</item>
<item name="stats_suspended">#ff0</item>
<!-- FAB --> <!-- FAB -->
<item name="fab_normal">@color/theme_plain_accent</item> <item name="fab_normal">@color/theme_plain_accent</item>
<item name="fab_pressed">#c8607d8b</item> <!-- 55 less opacity than fab_normal --> <item name="fab_pressed">#c8607d8b</item> <!-- 55 less opacity than fab_normal -->