Added dark theme for videoplayer

This commit is contained in:
daniel oeh 2012-11-24 23:34:31 +01:00
parent deb888fac1
commit faca4457ee
4 changed files with 9 additions and 5 deletions

View File

@ -23,7 +23,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:background="@color/actionbar_gray"
android:background="?attr/video_overlay_background"
android:orientation="vertical" >
<RelativeLayout
@ -39,7 +39,7 @@
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:background="?attr/borderless_button"
android:src="@drawable/av_pause" />
android:src="?attr/av_pause" />
<ImageButton
android:id="@+id/butFF"
@ -49,7 +49,7 @@
android:layout_marginLeft="8dp"
android:layout_toRightOf="@+id/butPlay"
android:background="?attr/borderless_button"
android:src="@drawable/av_fast_forward" />
android:src="?attr/av_fast_forward" />
<ImageButton
android:id="@+id/butRev"
@ -59,7 +59,7 @@
android:layout_marginRight="8dp"
android:layout_toLeftOf="@+id/butPlay"
android:background="?attr/borderless_button"
android:src="@drawable/av_rewind" />
android:src="?attr/av_rewind" />
</RelativeLayout>
<RelativeLayout

View File

@ -26,5 +26,6 @@
<attr name="borderless_button" format="reference" />
<!-- Used in itemdescription -->
<attr name="non_transparent_background" format="reference" />
<attr name="video_overlay_background" format="color" />
</resources>

View File

@ -25,7 +25,8 @@
<color name="status_unread">#99CC00</color>
<color name="status_progress">#FFBB33</color>
<color name="status_playing">#EE5F52</color>
<color name="video_overlay_dark">#262C31</color>
<color name="video_overlay_light">#DDDDDD</color>
<!-- Use Gingerbread-orange -->
<color name="selection_background_color_dark">#FEBB20</color>
<color name="selection_background_color_light">#FEBB20</color>

View File

@ -27,6 +27,7 @@
<item name="attr/type_video">@drawable/type_video</item>
<item name="attr/non_transparent_background">@color/white</item>
<item name="attr/borderless_button">@drawable/borderless_button</item>
<item name="attr/video_overlay_background">@color/video_overlay_light</item>
</style>
@ -60,6 +61,7 @@
<item name="attr/type_video">@drawable/type_video_dark</item>
<item name="attr/non_transparent_background">@color/black</item>
<item name="attr/borderless_button">@drawable/borderless_button_dark</item>
<item name="attr/video_overlay_background">@color/video_overlay_dark</item>
</style>
<style name="AntennaPod.DarkTabPageIndicator" parent="Widget.TabPageIndicator">