Commit f6ab465e authored by Alexandre Perraud's avatar Alexandre Perraud Committed by Jean-Baptiste Kempf

Audio : add white play audio icon

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e7e37493
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="130"
height="130"
id="svg4682"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="ic_wpause_pressed.svg"
inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4684">
<filter
color-interpolation-filters="sRGB"
inkscape:collect="always"
id="filter4696"
x="-0.36000001"
width="1.72"
y="-0.36000001"
height="1.72">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="11.24837"
id="feGaussianBlur4698" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="-4.1297936"
inkscape:cy="75.317769"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1680"
inkscape:window-height="1026"
inkscape:window-x="1920"
inkscape:window-y="54"
inkscape:window-maximized="1" />
<metadata
id="metadata4687">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-922.36218)">
<path
sodipodi:type="star"
style="opacity:0.9;fill:#fafafa;fill-opacity:1;fill-rule:nonzero;stroke:#1e1e1e;stroke-width:1.38654327;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="path3337"
sodipodi:sides="3"
sodipodi:cx="535"
sodipodi:cy="577.36218"
sodipodi:r1="30"
sodipodi:r2="15"
sodipodi:arg1="0"
sodipodi:arg2="1.0471976"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 565,577.36218 -45,25.98076 0,-51.96152 z"
transform="matrix(1.442436,0,0,1.442436,-717.52153,154.55418)"
inkscape:transform-center-x="-10.818263"
inkscape:transform-center-y="1.8712659e-05" />
</g>
</svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="130"
height="130"
id="svg4682"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="ic_wforward_pressed.svg"
inkscape:export-filename="/home/corbax/Dev/android/Icons/Test 1/ic_play_normal.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<defs
id="defs4684">
<filter
color-interpolation-filters="sRGB"
inkscape:collect="always"
id="filter4686-7"
x="-0.38784611"
width="1.7756922"
y="-0.33588457"
height="1.6717691">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="7.2721143"
id="feGaussianBlur4688-2" />
</filter>
<filter
color-interpolation-filters="sRGB"
inkscape:collect="always"
id="filter4686"
x="-0.38784611"
width="1.7756922"
y="-0.33588457"
height="1.6717691">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="7.2721143"
id="feGaussianBlur4688" />
</filter>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="5.6"
inkscape:cx="71.787639"
inkscape:cy="75.317769"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:window-width="1680"
inkscape:window-height="1026"
inkscape:window-x="1920"
inkscape:window-y="54"
inkscape:window-maximized="1" />
<metadata
id="metadata4687">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-922.36218)">
<g
transform="translate(-802.74247,302.50557)"
id="g7439">
<path
sodipodi:type="star"
style="fill:#ff8800;fill-opacity:1;fill-rule:nonzero;stroke:none;filter:url(#filter4686)"
id="path3357"
sodipodi:sides="3"
sodipodi:cx="535"
sodipodi:cy="577.36218"
sodipodi:r1="30"
sodipodi:r2="15"
sodipodi:arg1="0"
sodipodi:arg2="1.0471976"
inkscape:flatsided="true"
inkscape:rounded="0"
inkscape:randomized="0"
d="m 565,577.36218 -45,25.98076 0,-51.96152 z"
transform="matrix(1.442436,0,0,1.442436,85.22094,-147.95139)"
inkscape:transform-center-x="-10.818263"
inkscape:transform-center-y="1.8712659e-05" />
<path
inkscape:transform-center-y="1.8712659e-05"
inkscape:transform-center-x="-10.818263"
transform="matrix(1.442436,0,0,1.442436,85.22094,-147.95139)"
d="m 565,577.36218 -45,25.98076 0,-51.96152 z"
inkscape:randomized="0"
inkscape:rounded="0"
inkscape:flatsided="true"
sodipodi:arg2="1.0471976"
sodipodi:arg1="0"
sodipodi:r2="15"
sodipodi:r1="30"
sodipodi:cy="577.36218"
sodipodi:cx="535"
sodipodi:sides="3"
id="path3359"
style="opacity:0.8;fill:#f0f0f0;fill-opacity:1;fill-rule:nonzero;stroke:#1e1e1e;stroke-width:1.38654327;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
sodipodi:type="star" />
</g>
</g>
</svg>
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/ic_wplay_normal" android:state_focused="true" android:state_pressed="false"/>
<item android:drawable="@drawable/ic_wplay_pressed" android:state_focused="true" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_wplay_pressed" android:state_focused="false" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_wplay_normal"/>
</selector>
\ No newline at end of file
......@@ -91,7 +91,7 @@
android:background="#00ffffff"
android:clickable="true"
android:scaleType="centerInside"
android:src="@drawable/ic_play" />
android:src="@drawable/ic_wplay" />
<ImageButton
android:id="@+id/forward"
......
......@@ -77,7 +77,7 @@
android:background="#00ffffff"
android:clickable="true"
android:scaleType="fitXY"
android:src="@drawable/ic_play" />
android:src="@drawable/ic_wplay" />
<ImageButton
android:id="@+id/stop"
......
......@@ -693,7 +693,7 @@ public class AudioService extends Service {
view.setImageViewBitmap(R.id.cover, cover);
view.setTextViewText(R.id.songName, title);
view.setTextViewText(R.id.artist, artist);
view.setImageViewResource(R.id.play_pause, mLibVLC.isPlaying() ? R.drawable.ic_wpause : R.drawable.ic_play);
view.setImageViewResource(R.id.play_pause, mLibVLC.isPlaying() ? R.drawable.ic_wpause : R.drawable.ic_wplay);
view.setOnClickPendingIntent(R.id.play_pause, piPlay);
view.setOnClickPendingIntent(R.id.forward, piForward);
view.setOnClickPendingIntent(R.id.stop, piStop);
......@@ -705,7 +705,7 @@ public class AudioService extends Service {
view_expanded.setTextViewText(R.id.songName, title);
view_expanded.setTextViewText(R.id.artist, artist);
view_expanded.setTextViewText(R.id.album, album);
view_expanded.setImageViewResource(R.id.play_pause, mLibVLC.isPlaying() ? R.drawable.ic_wpause : R.drawable.ic_play);
view_expanded.setImageViewResource(R.id.play_pause, mLibVLC.isPlaying() ? R.drawable.ic_wpause : R.drawable.ic_wplay);
view_expanded.setOnClickPendingIntent(R.id.backward, piBackward);
view_expanded.setOnClickPendingIntent(R.id.play_pause, piPlay);
view_expanded.setOnClickPendingIntent(R.id.forward, piForward);
......
......@@ -110,7 +110,7 @@ public class VLCAppWidgetProvider extends AppWidgetProvider {
views.setTextViewText(R.id.songName, title);
views.setTextViewText(R.id.artist, artist);
views.setImageViewResource(R.id.play_pause, isplaying ? R.drawable.ic_wpause : R.drawable.ic_play);
views.setImageViewResource(R.id.play_pause, isplaying ? R.drawable.ic_wpause : R.drawable.ic_wplay);
views.setViewVisibility(R.id.timeline_parent, artist != null && artist.length() > 0 ? View.VISIBLE : View.INVISIBLE);
}
else if (ACTION_WIDGET_UPDATE_COVER.equals(action)) {
......
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