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

Audio : add white pause audio icon

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent f3e78728
<?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_normal.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" />
<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)">
<g
transform="translate(-877.50064,402.49978)"
id="g4187">
<rect
y="547.36194"
x="904.99988"
height="75.000923"
width="29.997608"
id="rect3345"
style="opacity:0.9;fill:#fafafa;fill-opacity:1;stroke:#1e1e1e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
<rect
style="opacity:0.9;fill:#fafafa;fill-opacity:1;stroke:#1e1e1e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="rect3347"
width="29.997608"
height="75.000923"
x="950.00378"
y="547.36194" />
</g>
</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_wplay_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"
x="-0.38784611"
width="1.7756922"
y="-0.33588457"
height="1.6717691">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="7.2721143"
id="feGaussianBlur4688" />
</filter>
<filter
color-interpolation-filters="sRGB"
inkscape:collect="always"
id="filter7490"
x="-0.35999858"
width="1.7199972"
y="-0.36000142"
height="1.7200028">
<feGaussianBlur
inkscape:collect="always"
stdDeviation="11.250182"
id="feGaussianBlur7492" />
</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(-877.50064,302.49978)"
id="g7522">
<g
transform="translate(1.4709474e-7,100)"
id="g7501"
style="fill:#ff8800;fill-opacity:1;stroke:none;filter:url(#filter7490)">
<path
style="opacity:0.9;fill:#ff8800;fill-opacity:1;stroke:none"
d="m 904.99988,547.36194 29.99761,0 0,75.00092 -29.99761,0 z"
id="path7503"
inkscape:connector-curvature="0" />
<path
style="opacity:0.9;fill:#ff8800;fill-opacity:1;stroke:none"
d="m 950.00378,547.36194 29.99761,0 0,75.00092 -29.99761,0 z"
id="path7505"
inkscape:connector-curvature="0" />
</g>
<g
id="g7518">
<rect
style="opacity:0.8;fill:#f0f0f0;fill-opacity:1;stroke:#1e1e1e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id="rect3365"
width="29.997608"
height="75.000923"
x="904.99988"
y="647.36194" />
<rect
y="647.36194"
x="950.00378"
height="75.000923"
width="29.997608"
id="rect3367"
style="opacity:0.8;fill:#f0f0f0;fill-opacity:1;stroke:#1e1e1e;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</g>
</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_wpause_normal" android:state_focused="true" android:state_pressed="false"/>
<item android:drawable="@drawable/ic_wpause_pressed" android:state_focused="true" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_wpause_pressed" android:state_focused="false" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_wpause_normal"/>
</selector>
\ No newline at end of file
......@@ -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_pause : R.drawable.ic_play);
view.setImageViewResource(R.id.play_pause, mLibVLC.isPlaying() ? R.drawable.ic_wpause : R.drawable.ic_play);
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_pause : R.drawable.ic_play);
view_expanded.setImageViewResource(R.id.play_pause, mLibVLC.isPlaying() ? R.drawable.ic_wpause : R.drawable.ic_play);
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_pause : R.drawable.ic_play);
views.setImageViewResource(R.id.play_pause, isplaying ? R.drawable.ic_wpause : R.drawable.ic_play);
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