Introduction of new attributes to change the background color (DarkMode/DayMode) of the tutorial slides (1-3)
This commit is contained in:
parent
ee548697eb
commit
c06968d217
6 changed files with 10 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorAccent">
|
||||
android:background="?attr/backgroundTutorialSlide">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorAccent">
|
||||
android:background="?attr/backgroundTutorialSlide">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="?attr/colorAccent">
|
||||
android:background="?attr/backgroundTutorialSlide">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -30,7 +30,7 @@
|
|||
android:numStars="4"
|
||||
android:layout_marginTop="25dp"
|
||||
android:rating="1"
|
||||
android:background="?attr/lightestFontColor"
|
||||
android:background="?attr/backgroundTutorialStars"
|
||||
android:stepSize="1"
|
||||
style="@style/RatingBar"/>
|
||||
|
||||
|
|
|
@ -20,6 +20,8 @@
|
|||
<item name="inactiveButtonColor">@color/middlegrey</item>
|
||||
<item name="highlightedButtonBorder">@color/yellow</item>
|
||||
<item name="android:itemBackground">@color/cardview_dark_background</item>
|
||||
<item name="backgroundTutorialSlide">@color/colorPrimaryDark</item>
|
||||
<item name="backgroundTutorialStars">@color/colorPrimaryDark</item>
|
||||
</style>
|
||||
|
||||
<style name="ToolbarStyle" parent="Widget.AppCompat.ActionBar">
|
||||
|
|
|
@ -12,5 +12,7 @@
|
|||
<attr name="inactiveButtonColor" format="color"/>
|
||||
<attr name="activeButtonColor" format="color"/>
|
||||
<attr name="highlightedButtonBorder" format="color"/>
|
||||
<attr name="backgroundTutorialSlide" format="color"/>
|
||||
<attr name="backgroundTutorialStars" format="color"/>
|
||||
</declare-styleable>
|
||||
</resources>
|
|
@ -18,6 +18,8 @@
|
|||
<item name="inactiveButtonColor">@color/middlegrey</item>
|
||||
<item name="highlightedButtonBorder">@color/yellow</item>
|
||||
<item name="actionBarTheme">@style/ToolbarStyle</item>
|
||||
<item name="backgroundTutorialSlide">@color/colorAccent</item>
|
||||
<item name="backgroundTutorialStars">@color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="ToolbarStyle" parent="Widget.AppCompat.ActionBar">
|
||||
|
|
Loading…
Reference in a new issue