Skip to content
Snippets Groups Projects
Commit 0e75abd1 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Display a different icon in the app when in debug mode for VLC4

parent d6f3ea3b
No related branches found
No related tags found
Loading
Pipeline #380904 passed with stage
in 17 minutes and 42 seconds
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg width="48" height="48" viewBox="0 0 48.000001 48.000001" id="svg4826" version="1.1"
inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)" sodipodi:docname="icon_vlc4.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
<defs
id="defs4828">
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath4813">
<path
id="path4815"
d="m 256,24 c -10,0 -16.56131,4.44436 -22,10 -7.51989,7.68159 -14,30 -14,30 l -84,252 -34,0 c -10.63636,0 -20.71454,9.30699 -24,20 L 43,456 c -4.67669,16.03434 -3,31.99999 19,32 l 194,0 194,0 c 22,-10e-6 23.67669,-15.96566 19,-32 L 434,336 c -3.28546,-10.69301 -13.36364,-20 -24,-20 l -34,0 -84,-252 c 0,0 -6.48011,-22.31841 -14,-30 -5.43869,-5.55564 -12,-10 -22,-10 z"
style="fill:#ff8800"
inkscape:connector-curvature="0" />
</clipPath>
<clipPath
clipPathUnits="userSpaceOnUse"
id="clipPath4792">
<path
style="fill:#ff8800"
d="m 48.196759,963.10825 c -1.65441,1.23855 -2.321076,3.2256 -3.761719,7.51954 -1.440643,4.29394 -1.503906,4.51171 -1.503906,4.51171 l -5.265625,15.79688 -6.015625,18.05082 -3.007812,9.0234 -6.34375,0 c -2,0 -3.860873,1.5107 -4.445313,3.5039 l -3.503906,11.9199 c -1.144783,3.9115 -2.279638,7.7947 -3.429687,11.7266 -0.481394,1.6434 0.0011,2.852 0.777343,3.6875 0.481014,0.5172 1.074588,0.8913 1.621094,1.1406 0.54688,0.2429 0.920775,0.3731 1.351562,0.3731 1.004345,0 18.539258,-0.01 36.572266,-0.01 l 0,0 c 18.033008,0 35.567921,0.01 36.572266,0.01 0.430787,0 0.804682,-0.1302 1.351562,-0.3731 0.546506,-0.2493 1.14008,-0.6234 1.621094,-1.1406 0.776228,-0.8355 1.258738,-2.0441 0.777344,-3.6875 -1.150049,-3.9319 -2.284905,-7.8151 -3.429688,-11.7266 l -3.503906,-11.9199 c -0.58444,-1.9932 -2.445313,-3.5039 -4.445313,-3.5039 l -6.34375,0 -3.007812,-9.0234 -6.015625,-18.05082 -5.265625,-15.79688 c 0,0 -0.06885,-0.23443 -1.503906,-4.51171 -1.435052,-4.27728 -2.097358,-6.25133 -3.761719,-7.51954 -0.831195,-0.63336 -1.999923,-0.74609 -3.044922,-0.74609 -1.044999,0 -2.208378,0.11982 -3.044922,0.74609 z"
id="path4794"
inkscape:connector-curvature="0"
sodipodi:nodetypes="szccccscccccsccscccccscccczsas" />
</clipPath>
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="11.313709"
inkscape:cx="47.287766"
inkscape:cy="38.581514"
inkscape:document-units="px"
inkscape:current-layer="g57640"
showgrid="true"
units="px"
inkscape:window-width="2560"
inkscape:window-height="1376"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:pagecheckerboard="0">
<inkscape:grid
type="xygrid"
id="grid4142" />
</sodipodi:namedview>
<metadata
id="metadata4831">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-1004.3622)">
<g
transform="matrix(0.09482759,0,0,0.09482759,-0.27586304,1004.0863)"
id="g4807"
clip-path="url(#clipPath4813)">
<path
id="path4795"
d="m 256,24 c -10,0 -16.56131,4.444363 -22,10 -7.51989,7.681589 -14,30 -14,30 l -84,252 -34,0 c -10.63636,0 -20.71454,9.30699 -24,20 L 43,456 c -4.67669,16.03434 -3,31.99999 19,32 l 194,0 194,0 c 22,-10e-6 23.67669,-15.96566 19,-32 L 434,336 c -3.28546,-10.69301 -13.36364,-20 -24,-20 l -34,0 -84,-252 c 0,0 -6.48011,-22.318411 -14,-30 -5.43869,-5.555637 -12,-10 -22,-10 z"
style="fill:#ff8800"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path4790"
d="m 376,316 c 0,0 5.33596,15.99774 8,24 3.86569,11.61172 5.72158,17.44905 -0.0566,24.10156 C 352.00038,395.99957 301.0881,408.013 256,408 210.88287,407.987 160.2209,395.52936 128,364 l 116,116 -200.46875,0 c 2.987307,4.87249 8.73663,8 18.46875,8 l 194,0 194,0 c 22,-10e-6 23.67669,-15.96566 19,-32 L 434,336 c -3.28546,-10.69301 -13.36364,-20 -24,-20 l -34,0 z"
style="fill:#f46e00;fill-opacity:1" />
<path
id="path3151-2-6-0"
sodipodi:nodetypes="cacccccssacsccacc"
inkscape:connector-curvature="0"
d="m 184,172 c 24,18 46.36799,27 72,27 25.63201,0 48,-9 72,-27 48,0 32,-108 -28,-84 -33.16814,17.49548 -55.99922,15.99974 -88,0 -60,-24 -76,84 -28,84 z m -48,144 c 0,0 -5.33263,16.0004 -8,24 -4.00162,12.00101 -6.03383,18.09576 0,24 32.2209,31.52936 82.88287,43.98701 128,44 45.0881,0.013 96,-12 127.94294,-43.89801 C 389.7212,357.44948 387.86569,351.61172 384,340 c -2.66404,-8.00226 -8,-24 -8,-24 28,0 0,-68 -16,-48 -32,32 -66.85763,40 -104,40 -37.14237,0 -72,-8 -104,-40 -16,-16 -44,48 -16,48 z"
style="fill:#fafafa" />
<path
sodipodi:nodetypes="sssss"
inkscape:connector-curvature="0"
id="path4246"
d="m 152,312 c -16.66494,51.58194 52.97315,57.34558 59.63772,19.87924 L 260,60 c 4.46875,-25.122067 -15.31793,-34.873087 -24,-8 z"
style="opacity:0.6;fill:#ffffff;fill-opacity:0.31372549;fill-rule:evenodd;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<g
id="g57640"
transform="translate(128.44727,83.8633)">
<path
id="path49528-1"
style="fill:#ffffff;fill-opacity:1"
d="m -92.94727,943.4989 c -6.903559,0 -12.5,5.59644 -12.5,12.5 0,6.90356 5.596441,12.5 12.5,12.5 6.903559,0 12.5,-5.59644 12.5,-12.5 0,-6.90356 -5.596441,-12.5 -12.5,-12.5 z"
sodipodi:nodetypes="sssss" />
<path
id="path49528"
style="fill:#011422;fill-opacity:1;stroke-width:0.92"
d="m -92.94727,944.4989 a 11.5,11.5 0 0 0 -11.5,11.5 11.5,11.5 0 0 0 11.5,11.5 11.5,11.5 0 0 0 11.5,-11.5 11.5,11.5 0 0 0 -11.5,-11.5 z m 1.060153,5.39424 h 1.651335 v 8.10934 h 1.694447 v 1.26674 h -1.694447 v 2.8337 h -1.559694 v -2.8337 h -5.559532 v -0.91457 z m 0.09163,2.12216 -0.183273,0.33598 -3.615315,5.6512 h 3.798588 z" />
</g>
</g>
</svg>
<vector android:height="54dp" android:viewportHeight="48"
android:viewportWidth="48" android:width="54dp" xmlns:android="http://schemas.android.com/apk/res/android">
<group>
<clip-path android:pathData="m24,2c-0.948,0 -1.57,0.421 -2.086,0.948 -0.713,0.728 -1.328,2.845 -1.328,2.845l-7.966,23.897 -3.224,0c-1.009,0 -1.964,0.883 -2.276,1.897L3.802,42.966c-0.443,1.52 -0.284,3.034 1.802,3.034l18.397,0 18.397,0c2.086,-0 2.245,-1.514 1.802,-3.034L40.879,31.586c-0.312,-1.014 -1.267,-1.897 -2.276,-1.897l-3.224,0 -7.966,-23.897c0,0 -0.614,-2.116 -1.328,-2.845 -0.516,-0.527 -1.138,-0.948 -2.086,-0.948z"/>
<path android:fillColor="#ff8800" android:pathData="m24,2c-0.948,0 -1.57,0.421 -2.086,0.948 -0.713,0.728 -1.328,2.845 -1.328,2.845l-7.966,23.897 -3.224,0c-1.009,0 -1.964,0.883 -2.276,1.897L3.802,42.966c-0.443,1.52 -0.284,3.034 1.802,3.034l18.397,0 18.397,0c2.086,-0 2.245,-1.514 1.802,-3.034L40.879,31.586c-0.312,-1.014 -1.267,-1.897 -2.276,-1.897l-3.224,0 -7.966,-23.897c0,0 -0.614,-2.116 -1.328,-2.845 -0.516,-0.527 -1.138,-0.948 -2.086,-0.948z"/>
<path android:fillColor="#f46e00" android:pathData="m35.379,29.69c0,0 0.506,1.517 0.759,2.276 0.367,1.101 0.543,1.655 -0.005,2.285C33.103,37.276 28.276,38.415 24,38.414 19.722,38.413 14.917,37.231 11.862,34.241l11,11 -19.01,0c0.283,0.462 0.828,0.759 1.751,0.759l18.397,0 18.397,0c2.086,-0 2.245,-1.514 1.802,-3.034L40.879,31.586c-0.312,-1.014 -1.267,-1.897 -2.276,-1.897l-3.224,0z"/>
<path android:fillColor="#fafafa" android:pathData="m17.172,16.034c2.276,1.707 4.397,2.56 6.828,2.56 2.431,0 4.552,-0.853 6.828,-2.56 4.552,0 3.034,-10.241 -2.655,-7.966 -3.145,1.659 -5.31,1.517 -8.345,0 -5.69,-2.276 -7.207,7.966 -2.655,7.966zM12.621,29.69c0,0 -0.506,1.517 -0.759,2.276 -0.379,1.138 -0.572,1.716 0,2.276 3.055,2.99 7.86,4.171 12.138,4.172 4.276,0.001 9.103,-1.138 12.133,-4.163C36.68,33.62 36.505,33.067 36.138,31.966c-0.253,-0.759 -0.759,-2.276 -0.759,-2.276 2.655,0 0,-6.448 -1.517,-4.552 -3.034,3.034 -6.34,3.793 -9.862,3.793 -3.522,0 -6.828,-0.759 -9.862,-3.793 -1.517,-1.517 -4.172,4.552 -1.517,4.552z"/>
<path android:fillAlpha="0.1882353" android:fillColor="#ffffff"
android:fillType="evenOdd"
android:pathData="m14.138,29.31c-1.58,4.891 5.023,5.438 5.655,1.885L24.379,5.414c0.424,-2.382 -1.453,-3.307 -2.276,-0.759z"
android:strokeAlpha="0.6" android:strokeColor="#00000000"
android:strokeLineCap="butt" android:strokeLineJoin="miter" android:strokeWidth="1"/>
</group>
<path android:fillColor="#ffffff" android:pathData="m35.5,23c-6.904,0 -12.5,5.596 -12.5,12.5 0,6.904 5.596,12.5 12.5,12.5 6.904,0 12.5,-5.596 12.5,-12.5 0,-6.904 -5.596,-12.5 -12.5,-12.5z"/>
<path android:fillColor="#011422"
android:pathData="m35.5,24a11.5,11.5 0,0 0,-11.5 11.5,11.5 11.5,0 0,0 11.5,11.5 11.5,11.5 0,0 0,11.5 -11.5,11.5 11.5,0 0,0 -11.5,-11.5zM36.56,29.394h1.651v8.109h1.694v1.267h-1.694v2.834h-1.56v-2.834h-5.56v-0.915zM36.652,31.516 L36.468,31.852 32.853,37.504h3.799z" android:strokeWidth="0.92"/>
</vector>
......@@ -43,6 +43,7 @@ import org.videolan.resources.ACTIVITY_RESULT_PREFERENCES
import org.videolan.resources.ACTIVITY_RESULT_SECONDARY
import org.videolan.resources.EXTRA_TARGET
import org.videolan.tools.*
import org.videolan.vlc.BuildConfig
import org.videolan.vlc.R
import org.videolan.vlc.StartActivity
import org.videolan.vlc.gui.audio.AudioBrowserFragment
......@@ -217,7 +218,7 @@ class MainActivity : ContentActivity(),
private fun updateIncognitoModeIcon() {
val incognito = Settings.getInstance (this).getBoolean(KEY_INCOGNITO, false)
toolbarIcon.setImageDrawable(ContextCompat.getDrawable(this, if (incognito) R.drawable.ic_incognito else R.drawable.ic_icon))
toolbarIcon.setImageDrawable(ContextCompat.getDrawable(this, if (incognito) R.drawable.ic_incognito else if (BuildConfig.DEBUG && BuildConfig.VLC_MAJOR_VERSION == 4) R.drawable.ic_icon_vlc4 else R.drawable.ic_icon))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment