mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-10-31 22:52:59 +01:00
Galaxy Buds: add custom icons for batteries
This commit is contained in:
parent
cf4e4952ea
commit
a6a6bfef17
78
app/src/main/assets/ic_galaxy_buds_l.svg
Normal file
78
app/src/main/assets/ic_galaxy_buds_l.svg
Normal file
@ -0,0 +1,78 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="22.722658mm"
|
||||
height="24.000002mm"
|
||||
viewBox="0 0 22.722658 24.000001"
|
||||
version="1.1"
|
||||
id="svg7609"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
sodipodi:docname="ic_galaxy_buds_l.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:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview7611"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
fit-margin-left="2"
|
||||
fit-margin-right="2"
|
||||
fit-margin-bottom="2"
|
||||
fit-margin-top="2"
|
||||
inkscape:zoom="5.0814254"
|
||||
inkscape:cx="74.093384"
|
||||
inkscape:cy="61.104902"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1035"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="45"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs7606" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(4.0001844,3.9998056)">
|
||||
<g
|
||||
id="g1406"
|
||||
transform="matrix(1.3339122,0,0,1.3438174,-98.67174,-164.47229)"
|
||||
style="display:inline;stroke:#000000;stroke-width:0.74690652;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.74690652;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 80.707855,121.04264 c -1.01885,0.26765 -1.65323,1.66683 -2.43737,2.32029 -1.04852,0.87375 -2.21948,1.35316 -2.91032,2.60741 -0.52565,0.95434 -0.38154,2.31718 -0.93985,3.15709 -0.29192,0.43915 -0.8728,0.64296 -1.20255,1.07824 -1.02698,1.35557 -0.91369,3.40161 0.31962,4.59246 0.81316,0.78509 2.09427,1.10747 3.1937,0.85385 0.46858,-0.10813 0.92029,-0.49721 1.41111,-0.45694 1.1463,0.094 1.85787,0.65296 3.07879,0.33508 4.31184,-1.1226 5.92705,-6.16249 4.97237,-10.0729 -0.50492,-2.06804 -3.02696,-5.06045 -5.4855,-4.41458"
|
||||
id="path3559" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.74690652;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 75.335215,131.12944 c -0.94858,1.31848 -0.26706,3.35249 2.35997,3.35394"
|
||||
id="path10585"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:0.74690652;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 77.749325,125.52752 c 1.77783,-0.71339 3.04493,-0.68717 4.67949,-0.21743 0.76552,0.22 1.36638,1.12151 1.42838,1.9156 0.28599,3.66326 -1.93567,5.44894 -4.17558,5.28724 -1.3729,-0.0991 -2.75373,-1.82993 -3.08505,-3.34193 -0.27878,-1.27217 -0.0559,-3.1585 1.15276,-3.64348 z"
|
||||
id="path5256"
|
||||
sodipodi:nodetypes="ssssss" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:0.74690652;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 79.296745,123.82804 c 2.35625,-0.33954 4.76904,0.66271 5.7504,2.912 1.31529,3.01478 -0.58112,7.91081 -4.08272,8.42805 -6.4448,0.95186 -8.53815,-10.35004 -1.66768,-11.34005"
|
||||
id="path3567" />
|
||||
</g>
|
||||
<g
|
||||
aria-label="L"
|
||||
id="text23582"
|
||||
style="font-size:7.05556px;line-height:124%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;stroke:#000000;stroke-width:0.264583px">
|
||||
<path
|
||||
d="M 6.9078682,5.6385593 H 7.6037779 V 10.196424 H 10.108364 V 10.78209 H 6.9078682 Z"
|
||||
id="path24331" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 3.8 KiB |
82
app/src/main/assets/ic_galaxy_buds_r.svg
Normal file
82
app/src/main/assets/ic_galaxy_buds_r.svg
Normal file
@ -0,0 +1,82 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="22.722673mm"
|
||||
height="24.000002mm"
|
||||
viewBox="0 0 22.722673 24.000002"
|
||||
version="1.1"
|
||||
id="svg1002"
|
||||
inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
|
||||
sodipodi:docname="ic_galaxy_buds_r.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:svg="http://www.w3.org/2000/svg">
|
||||
<sodipodi:namedview
|
||||
id="namedview1004"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:document-units="mm"
|
||||
showgrid="false"
|
||||
fit-margin-left="2"
|
||||
fit-margin-top="2"
|
||||
fit-margin-right="2"
|
||||
fit-margin-bottom="2"
|
||||
inkscape:zoom="5.0814254"
|
||||
inkscape:cx="66.024782"
|
||||
inkscape:cy="37.292686"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1035"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="45"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="layer1" />
|
||||
<defs
|
||||
id="defs999" />
|
||||
<g
|
||||
inkscape:label="Layer 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(2.0000914,1.9999036)">
|
||||
<g
|
||||
id="g12091"
|
||||
transform="matrix(0.88927548,0,0,0.8958785,-64.445881,-120.41835)"
|
||||
style="display:inline;stroke:#000000;stroke-width:1.1203592;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
|
||||
<g
|
||||
id="g12078"
|
||||
style="stroke:#000000;stroke-width:1.1203592;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1">
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.1203592;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 89.229326,149.75243 c 1.422876,1.97773 0.400592,5.02874 -3.539949,5.03091"
|
||||
id="path10585-6"
|
||||
sodipodi:nodetypes="cc" />
|
||||
<path
|
||||
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:1.1203592;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 85.608172,141.34954 c -2.666757,-1.07007 -4.567397,-1.03074 -7.019236,-0.32613 -1.148282,0.32999 -2.049576,1.68227 -2.142569,2.8734 -0.428995,5.49489 2.903496,8.17341 6.263367,7.93085 2.05934,-0.14867 4.130587,-2.74489 4.627575,-5.01288 0.41816,-1.90826 0.08389,-4.73774 -1.729137,-5.46524 z"
|
||||
id="path5256-7"
|
||||
sodipodi:nodetypes="ssssss" />
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:1.1203592;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 83.287036,138.80034 c -3.534371,-0.50931 -7.153563,0.99406 -8.625608,4.36799 -1.972926,4.52216 0.871682,11.86623 6.124093,12.64208 9.667201,1.42779 12.807218,-15.52506 2.501515,-17.01007"
|
||||
id="path3567-5" />
|
||||
</g>
|
||||
<path
|
||||
style="fill:none;stroke:#000000;stroke-width:1.1203592;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
|
||||
d="m 81.17037,134.62224 c 1.528272,0.40147 2.479848,2.50023 3.65606,3.48042 1.57278,1.31064 3.329209,2.02976 4.365471,3.91113 0.788477,1.43151 0.572308,3.47576 1.409777,4.73562 0.43788,0.65873 1.309196,0.96445 1.803823,1.61735 1.540471,2.03338 1.370542,5.10243 -0.479425,6.88871 -1.219739,1.17764 -3.141402,1.6612 -4.790555,1.28077 -0.702868,-0.16221 -1.380432,-0.74583 -2.116667,-0.68541 -1.719445,0.14105 -2.786803,0.97944 -4.618181,0.50261 -6.467763,-1.6839 -8.890577,-9.24373 -7.458556,-15.10934 0.757382,-3.10205 4.540443,-7.59068 8.228253,-6.62186"
|
||||
id="path3559-3" />
|
||||
</g>
|
||||
<g
|
||||
aria-label="R"
|
||||
id="text20823"
|
||||
style="font-size:7.05556px;line-height:124%;font-family:Sans;-inkscape-font-specification:Sans;letter-spacing:0px;word-spacing:0px;stroke:#000000;stroke-width:0.264583px">
|
||||
<path
|
||||
d="m 9.0560585,10.458658 q 0.2239314,0.07579 0.4340823,0.32384 0.2135961,0.248047 0.4271921,0.682129 l 0.7062451,1.4056 H 9.8759918 L 9.2179781,11.550754 Q 8.9630409,11.03399 8.721884,10.86518 8.4841723,10.69637 8.0707606,10.69637 H 7.3128391 v 2.173857 H 6.6169293 V 7.726696 h 1.5709646 q 0.881945,0 1.3160273,0.3686254 0.4340823,0.3686255 0.4340823,1.1127666 0,0.4857588 -0.2273764,0.806153 -0.2239314,0.320394 -0.6545686,0.444417 z M 7.3128391,8.2985822 v 1.8259018 h 0.8750548 q 0.5029843,0 0.7579215,-0.2308216 0.2583823,-0.2342666 0.2583823,-0.6855744 0,-0.4513078 -0.2583823,-0.6786843 Q 8.6908782,8.2985822 8.1878939,8.2985822 Z"
|
||||
id="path21707" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 4.6 KiB |
@ -48,8 +48,8 @@ public class GalaxyBudsDeviceCoordinator extends AbstractDeviceCoordinator {
|
||||
|
||||
@Override
|
||||
public BatteryConfig[] getBatteryConfig() {
|
||||
BatteryConfig battery1 = new BatteryConfig(0, R.drawable.ic_tws_bud_l, R.string.left_earbud);
|
||||
BatteryConfig battery2 = new BatteryConfig(1, R.drawable.ic_tws_bud_r, R.string.right_earbud);
|
||||
BatteryConfig battery1 = new BatteryConfig(0, R.drawable.ic_galaxy_buds_l, R.string.left_earbud);
|
||||
BatteryConfig battery2 = new BatteryConfig(1, R.drawable.ic_galaxy_buds_r, R.string.right_earbud);
|
||||
return new BatteryConfig[]{battery1, battery2};
|
||||
}
|
||||
|
||||
|
25
app/src/main/res/drawable/ic_galaxy_buds_l.xml
Normal file
25
app/src/main/res/drawable/ic_galaxy_buds_l.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22.722658dp"
|
||||
android:height="24.000002dp"
|
||||
android:tint="#7E7E7E"
|
||||
android:viewportWidth="22.722658"
|
||||
android:viewportHeight="24.000002">
|
||||
<path
|
||||
android:pathData="M12.986 2.187c-1.36 0.36-2.206 2.24-3.252 3.118-1.398 1.174-2.96 1.818-3.882 3.504-0.7 1.282-0.509 3.114-1.253 4.242-0.39 0.59-1.165 0.864-1.604 1.45-1.37 1.82-1.22 4.57 0.426 6.17 1.085 1.056 2.793 1.489 4.26 1.148 0.625-0.145 1.228-0.668 1.882-0.614 1.53 0.126 2.478 0.878 4.107 0.45 5.752-1.508 7.906-8.281 6.633-13.536-0.674-2.779-4.038-6.8-7.317-5.932"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#000000" />
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M5.819 15.742c-1.265 1.771-0.356 4.505 3.148 4.507M9.04 8.214c2.37-0.96 4.06-0.924 6.241-0.293 1.021 0.296 1.823 1.507 1.905 2.575 0.382 4.922-2.582 7.322-5.57 7.105-1.83-0.133-3.673-2.46-4.115-4.491C7.13 11.4 7.427 8.865 9.04 8.214z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#000000" />
|
||||
<path
|
||||
android:pathData="M11.103 5.93c3.143-0.456 6.362 0.89 7.67 3.913 1.755 4.051-0.774 10.63-5.445 11.326C4.73 22.448 1.938 7.26 11.103 5.929"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#000000" />
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M10.908 9.638h0.696v4.558h2.505v0.586h-3.2z"
|
||||
android:strokeWidth="0.264583"
|
||||
android:strokeColor="#000000" />
|
||||
</vector>
|
25
app/src/main/res/drawable/ic_galaxy_buds_r.xml
Normal file
25
app/src/main/res/drawable/ic_galaxy_buds_r.xml
Normal file
@ -0,0 +1,25 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="22.722673dp"
|
||||
android:height="24.000002dp"
|
||||
android:tint="#7E7E7E"
|
||||
android:viewportWidth="22.722673"
|
||||
android:viewportHeight="24.000002">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M16.904 15.742c1.265 1.771 0.356 4.505-3.148 4.507M13.684 8.214C11.312 7.254 9.622 7.29 7.442 7.92 6.42 8.217 5.619 9.428 5.536 10.496c-0.381 4.922 2.582 7.322 5.57 7.105 1.831-0.133 3.673-2.46 4.115-4.491 0.372-1.71 0.075-4.245-1.537-4.896z"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#000000" />
|
||||
<path
|
||||
android:pathData="M11.62 5.93C8.475 5.474 5.257 6.82 3.948 9.843c-1.755 4.051 0.775 10.63 5.446 11.326 8.597 1.279 11.389-13.909 2.224-15.24"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#000000" />
|
||||
<path
|
||||
android:pathData="M9.737 2.187c1.36 0.36 2.205 2.24 3.251 3.118 1.399 1.174 2.96 1.818 3.882 3.504 0.701 1.282 0.51 3.114 1.254 4.242 0.39 0.59 1.164 0.864 1.604 1.449 1.37 1.822 1.219 4.571-0.426 6.171-1.085 1.055-2.794 1.489-4.26 1.148-0.625-0.145-1.228-0.668-1.883-0.614-1.529 0.126-2.478 0.877-4.106 0.45C3.3 20.146 1.146 13.374 2.42 8.12c0.673-2.78 4.038-6.8 7.317-5.932"
|
||||
android:strokeWidth="1"
|
||||
android:strokeColor="#000000" />
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M11.056 12.459q0.224 0.075 0.434 0.323 0.214 0.248 0.428 0.683l0.706 1.405h-0.748l-0.658-1.32q-0.255-0.516-0.496-0.685-0.238-0.169-0.651-0.169H9.313v2.174H8.617V9.727h1.571q0.882 0 1.316 0.368 0.434 0.369 0.434 1.113 0 0.486-0.227 0.806-0.224 0.32-0.655 0.445zm-1.743-2.16v1.825h0.875q0.503 0 0.758-0.23 0.258-0.235 0.258-0.686 0-0.451-0.258-0.679-0.255-0.23-0.758-0.23z"
|
||||
android:strokeWidth="0.264583"
|
||||
android:strokeColor="#000000" />
|
||||
</vector>
|
Loading…
Reference in New Issue
Block a user