Commit 692243f4 authored by Adrien Maglo's avatar Adrien Maglo

Layouts: remove color references and remplace them by attributes

parent b8f8139c
......@@ -31,7 +31,7 @@
android:ellipsize="marquee"
android:maxLines="1"
android:text="@string/title"
android:textColor="@color/list_title"
android:textColor="?attr/list_title"
android:textSize="20sp" />
<TextView
......@@ -41,7 +41,7 @@
android:ellipsize="marquee"
android:maxLines="1"
android:text="@string/artist"
android:textColor="@color/list_subtitle"
android:textColor="?attr/list_subtitle"
android:textSize="14sp" />
</LinearLayout>
......@@ -59,6 +59,6 @@
android:id="@+id/footer"
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="@color/item_footer" />
android:background="?attr/item_footer" />
</LinearLayout>
\ No newline at end of file
......@@ -64,7 +64,7 @@
android:layout_marginTop="5dip"
android:singleLine="true"
android:text="@string/title"
android:textColor="@color/list_title"
android:textColor="?attr/list_title"
android:textSize="16sp" />
<TextView
......@@ -76,7 +76,7 @@
android:layout_marginRight="5dip"
android:singleLine="true"
android:text="@string/artist"
android:textColor="@color/list_subtitle"
android:textColor="?attr/list_subtitle"
android:textSize="11sp" />
</LinearLayout>
......
......@@ -32,7 +32,7 @@
android:layout_marginTop="5dip"
android:singleLine="true"
android:text="@string/title"
android:textColor="@color/list_title"
android:textColor="?attr/list_title"
android:textSize="16sp" />
<TextView
......@@ -44,7 +44,7 @@
android:layout_marginRight="5dip"
android:singleLine="true"
android:text="@string/artist"
android:textColor="@color/list_subtitle"
android:textColor="?attr/list_subtitle"
android:textSize="11sp" />
</LinearLayout>
......
......@@ -29,7 +29,7 @@
android:ellipsize="marquee"
android:maxLines="1"
android:text="@string/title"
android:textColor="@color/list_title"
android:textColor="?attr/list_title"
android:textSize="20sp" />
<TextView
......@@ -39,7 +39,7 @@
android:ellipsize="marquee"
android:maxLines="1"
android:text="@string/artist"
android:textColor="@color/list_subtitle"
android:textColor="?attr/list_subtitle"
android:textSize="14sp" />
</LinearLayout>
......
......@@ -26,7 +26,7 @@
android:layout_marginRight="5dip"
android:layout_marginTop="5dip"
android:text="@string/title"
android:textColor="@color/list_title"
android:textColor="?attr/list_title"
android:textSize="20sp" />
<TextView
......@@ -37,7 +37,7 @@
android:layout_marginLeft="5dip"
android:layout_marginRight="5dip"
android:text="@string/artist"
android:textColor="@color/list_subtitle"
android:textColor="?attr/list_subtitle"
android:textSize="14sp" />
</LinearLayout>
......
......@@ -9,6 +9,6 @@
android:padding="13dip"
android:drawableLeft="@drawable/icon"
android:text="@string/title"
android:textColor="@color/list_menu"
android:textColor="?attr/list_menu"
android:textSize="20sp"
android:gravity="center" />
......@@ -41,14 +41,14 @@
android:ellipsize="end"
android:maxLines="2"
android:textSize="12sp"
android:textColor="@color/list_title" />
android:textColor="?attr/list_title" />
<TextView
android:id="@+id/ml_item_subtitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:textSize="10sp"
android:textColor="@color/list_subtitle" />
android:textColor="?attr/list_subtitle" />
</LinearLayout>
<ImageView
android:id="@+id/item_more"
......
......@@ -41,14 +41,14 @@
android:ellipsize="end"
android:maxLines="2"
android:textSize="17sp"
android:textColor="@color/list_title"
android:textColor="?attr/list_title"
android:paddingLeft="12dip" />
<TextView
android:id="@+id/ml_item_subtitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="14sp"
android:textColor="@color/list_subtitle"
android:textColor="?attr/list_subtitle"
android:paddingLeft="12dip" />
</LinearLayout>
<ImageView
......
......@@ -24,6 +24,10 @@
<item name="audio_player_header_time">@color/darkorange</item>
<item name="font_default">@color/font_default</item>
<item name="font_light">@color/font_light</item>
<item name="list_menu">@color/list_menu</item>
<item name="list_subtitle">@color/list_subtitle</item>
<item name="list_title_last">@color/list_title_last</item>
<item name="list_title">@color/list_title</item>
<item name="android:windowBackground">@color/background_common</item>
</style>
</resources>
\ No newline at end of file
......@@ -17,6 +17,11 @@
<attr name="audio_browser_separator" format="reference|color" />
<attr name="playlist_item_drag_shadow" format="reference|color" />
<attr name="audio_player_header_time" format="reference|color" />
<attr name="list_menu" format="reference|color" />
<attr name="list_subtitle" format="reference|color" />
<attr name="list_title_last" format="reference|color" />
<attr name="list_title" format="reference|color" />
<attr name="ic_speed_normal_style" format="reference" />
<attr name="ic_sleep_normal_style" format="reference" />
<attr name="ic_jumpto_normal_style" format="reference" />
......
......@@ -32,6 +32,10 @@
<item name="audio_player_header_time">@color/darkorange</item>
<item name="font_default">@color/font_default</item>
<item name="font_light">@color/font_light</item>
<item name="list_menu">@color/list_menu</item>
<item name="list_subtitle">@color/list_subtitle</item>
<item name="list_title_last">@color/list_title_last</item>
<item name="list_title">@color/list_title</item>
<item name="android:windowBackground">@color/background_common</item>
</style>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment