-
Notifications
You must be signed in to change notification settings - Fork 576
/
watchface.xml
831 lines (801 loc) · 41.2 KB
/
watchface.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
<!--
An example of using Complications in a watch face.
Demonstrates
- SHORT_TEXT
- MONOCHROMATIC_IMAGE
- SMALL_IMAGE
- RANGED_VALUE
- PHOTO_IMAGE
- LONG_TEXT
The other types are not demonstrated in this sample at this time.
For more guidance on using complications see:
https://developer.android.com/training/wearables/wff/complication/complication-slot
https://developer.android.com/training/wearables/wff/complication/complication
-->
<WatchFace width="450" height="450">
<Metadata key="CLOCK_TYPE" value="DIGITAL" />
<Metadata key="PREVIEW_TIME" value="10:08:32" />
<UserConfigurations>
<ColorConfiguration id="themeColor" defaultValue="0" displayName="colors_label" screenReaderText="colors_label">
<ColorOption displayName="theme_one_label" id="0" colors="#16697a #d6d5d4 #ffa62b #333333 #000000"/>
<ColorOption displayName="theme_two_label" id="1" colors="#16697a #d6d5d4 #33cd2b #333333 #000000"/>
</ColorConfiguration>
</UserConfigurations>
<Scene backgroundColor="#ff000000">
<Group name="border_and_main_label" x="0" y="0" width="112" height="112" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<PartDraw x="15" y="15" height="420" width="420">
<Ellipse x="0" y="0" width="420" height="420">
<Stroke color="[CONFIGURATION.themeColor.2]" thickness="10" />
</Ellipse>
</PartDraw>
<PartText x="158" y="16" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.2]">RANGED_VALUE</Font>
</TextCircular>
</PartText>
<PartText x="46" y="76" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.2]">SHORT_TEXT</Font>
</TextCircular>
</PartText>
<PartText x="272" y="76" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.2]">MONOCHROMATIC_IMAGE</Font>
</TextCircular>
</PartText>
<PartText x="158" y="144" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.2]">PHOTO_IMAGE / SMALL_IMAGE</Font>
</TextCircular>
</PartText>
<PartText x="100" y="370" width="250" height="20">
<Text align="CENTER">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.2]">LONG_TEXT</Font>
</Text>
</PartText>
</Group>
<Group name="border_and_main_label_ambient" x="0" y="0" width="112" height="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<PartDraw x="15" y="15" height="420" width="420">
<Ellipse x="0" y="0" width="420" height="420">
<Stroke color="[CONFIGURATION.themeColor.1]" thickness="10" />
</Ellipse>
</PartDraw>
<PartText x="158" y="16" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.1]">RANGED_VALUE</Font>
</TextCircular>
</PartText>
<PartText x="46" y="76" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.1]">SHORT_TEXT</Font>
</TextCircular>
</PartText>
<PartText x="272" y="76" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.1]">MONOCHROMATIC_IMAGE</Font>
</TextCircular>
</PartText>
<PartText x="158" y="144" width="132" height="132">
<TextCircular centerX="66" centerY="66" direction="COUNTER_CLOCKWISE"
endAngle="90" height="127" width="127" startAngle="270">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.1]">PHOTO_IMAGE / SMALL_IMAGE</Font>
</TextCircular>
</PartText>
<PartText x="100" y="370" width="250" height="20">
<Text align="CENTER">
<Font family="SYNC_TO_DEVICE" size="12" weight="NORMAL"
slant="NORMAL"
color="[CONFIGURATION.themeColor.1]">LONG_TEXT</Font>
</Text>
</PartText>
</Group>
<!--
This example contains four complications, with each allowing just one
non-EMPTY complication type, to make it easier to visualize.
In ComplicationSlot, supportedTypes should be a space-separated list.
If EMPTY is listed as supported:
- A <Complication> element with type EMPTY can optionally be specified.
- A DefaultProviderPolicy doesn't need to be set.
If EMPTY is not listed as supported:
- A DefaultProviderPolicy must be set.
See: https://developer.android.com/training/wearables/wff/complication/default-provider-policy
-->
<ComplicationSlot
x="168" y="24"
width="112" height="112"
slotId="0"
name="top_complication" displayName="Top"
supportedTypes="RANGED_VALUE">
<!--
There is no guarantee that the primaryProvider component name is
available on the device. Therefore defaultSystemProvider is mandatory in
DefaultSystemProvider, to provide a fallback.
System providers are listed here: https://developer.android.com/reference/android/support/wearable/complications/SystemProviders.html
-->
<DefaultProviderPolicy
primaryProvider="com.fitbit.FitbitMobile/com.fitbit.complications.calories.CaloriesComplicationDataSourceService"
primaryProviderType="RANGED_VALUE"
defaultSystemProvider="STEP_COUNT"
defaultSystemProviderType="RANGED_VALUE"
/>
<!--
Several different bounding shapes are supported in WFF, see:
https://developer.android.com/training/wearables/wff/complication/bounding
This example= only demonstrates a round complication.
-->
<BoundingOval x="0" y="0" width="112" height="112" outlinePadding="2" />
<!--
Basic example of a Ranged Value complication.
Ranged Value complications support optional data fields:
- Text
- Title
- Monochromatic Image
(Note that although AndroidX RangedValueComplicationData supports
containing SmallImage, Watch Face format does not expose these, so you
should use Monochromatic Image for icons.)
At least one of these must be set. This condition and set of expressions
evaluates which combination has been provided by the data source and
renders accordingly.
-->
<Complication type="RANGED_VALUE">
<Group name="ranged_value_ring_ambient" x="0" y="0" width="112" height="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<PartDraw x="0" y="0" height="112" width="112">
<Arc direction="CLOCKWISE" startAngle="-150" endAngle="150" centerX="56" centerY="56" width="94" height="94">
<Stroke color="[CONFIGURATION.themeColor.3]" cap="ROUND" thickness="10" />
</Arc>
</PartDraw>
<PartDraw x="0" y="0" height="112" width="112" >
<Arc direction="CLOCKWISE" startAngle="-150" endAngle="150" centerX="56" centerY="56" width="94" height="94">
<Transform target="endAngle" value="-150 + (((clamp(([COMPLICATION.RANGED_VALUE_VALUE]), ([COMPLICATION.RANGED_VALUE_MIN]), ([COMPLICATION.RANGED_VALUE_MAX])) - ([COMPLICATION.RANGED_VALUE_MIN])) / (([COMPLICATION.RANGED_VALUE_MAX]) - ([COMPLICATION.RANGED_VALUE_MIN]))) * (300))" />
<Stroke color="[CONFIGURATION.themeColor.1]" cap="ROUND" thickness="10" />
</Arc>
</PartDraw>
</Group>
<Group name="ranged_value_ring" x="0" y="0" width="112" height="112" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<PartDraw x="0" y="0" height="112" width="112">
<Arc direction="CLOCKWISE" startAngle="-150" endAngle="150" centerX="56" centerY="56" width="94" height="94">
<Stroke color="[CONFIGURATION.themeColor.0]" cap="ROUND" thickness="10" />
</Arc>
</PartDraw>
<PartDraw x="0" y="0" height="112" width="112">
<Arc direction="CLOCKWISE" startAngle="-150" endAngle="150" centerX="56" centerY="56" width="94" height="94">
<Transform target="endAngle" value="-150 + (((clamp(([COMPLICATION.RANGED_VALUE_VALUE]), ([COMPLICATION.RANGED_VALUE_MIN]), ([COMPLICATION.RANGED_VALUE_MAX])) - ([COMPLICATION.RANGED_VALUE_MIN])) / (([COMPLICATION.RANGED_VALUE_MAX]) - ([COMPLICATION.RANGED_VALUE_MIN]))) * (300))" />
<Stroke color="[CONFIGURATION.themeColor.2]" cap="ROUND" thickness="10" />
</Arc>
</PartDraw>
</Group>
<Condition>
<!--
Depending on which combination of Icon, Text and Title is present in
the complication will be rendered differently.
-->
<Expressions>
<!-- A Title and/or Text, with optionally an image -->
<Expression name="rangedValue_maybeImage_textAndOrTitle">
<![CDATA[[COMPLICATION.TEXT] != null || [COMPLICATION.TITLE] != null]]>
</Expression>
<!-- An Image present, with no Text or Title -->
<Expression name="rangedValue_image_noTextNorTitle">
<![CDATA[[COMPLICATION.TEXT] == null && [COMPLICATION.TITLE] == null && [COMPLICATION.MONOCHROMATIC_IMAGE] != null]]>
</Expression>
</Expressions>
<Compare expression="rangedValue_maybeImage_textAndOrTitle">
<Condition>
<Expressions>
<Expression name="monochromatic_ambientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] != null]]>
</Expression>
<Expression name="monochromatic_noAmbientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] == null]]>
</Expression>
</Expressions>
<!--
Where the complication has specified an image specifically
for ambient mode, use that, with tinting applied.
-->
<Compare expression="monochromatic_ambientImage">
<PartImage x="42" y="80" width="28" height="28" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT]" />
</PartImage>
<PartImage x="42" y="80" width="28" height="28" tintColor="[CONFIGURATION.themeColor.2]" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
</Compare>
<!--
Where the complication hasn't specified an image specifically
for ambient mode, use the normal image, with tinting applied.
-->
<Compare expression="monochromatic_noAmbientImage">
<PartImage x="42" y="80" width="28" height="28" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
<PartImage x="42" y="80" width="28" height="28" tintColor="[CONFIGURATION.themeColor.2]" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
</Compare>
</Condition>
<Condition>
<Expressions>
<Expression name="monochromatic_both_labels">
<![CDATA[([COMPLICATION.TEXT] != null && [COMPLICATION.TITLE] != null)]]>
</Expression>
</Expressions>
<!--
Both Title and Text are present, show title above text.
-->
<Compare expression="monochromatic_both_labels">
<PartText x="0" y="33" width="112" height="20" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="20" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TITLE]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="56" width="112" height="20" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="20" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="33" width="112" height="20">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="20" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TITLE]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="56" width="112" height="20">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="20" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
</Compare>
<!--
Only one of Title or Text is present, show this is slightly
larger than when both are displayed.
-->
<Default>
<PartText x="0" y="0" width="112" height="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<!-- In this example, prefer Text over Title -->
<Template>%s<Parameter expression="[COMPLICATION.TEXT] != null ? [COMPLICATION.TEXT] : [COMPLICATION.TITLE]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="0" width="112" height="112">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<!-- In this example, prefer Text over Title -->
<Template>%s<Parameter expression="[COMPLICATION.TEXT] != null ? [COMPLICATION.TEXT] : [COMPLICATION.TITLE]"/></Template>
</Font>
</Text>
</PartText>
</Default>
</Condition>
</Compare>
<!--
Image is present, but no text or title, so show the image centrally
in the complication, larger then when the text or title is available
-->
<Compare expression="rangedValue_image_noTextNorTitle">
<Condition>
<Expressions>
<Expression name="monochromatic_ambientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] != null]]>
</Expression>
<Expression name="monochromatic_noAmbientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] == null]]>
</Expression>
</Expressions>
<Compare expression="monochromatic_ambientImage">
<PartImage x="30" y="30" width="52" height="52" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT]" />
</PartImage>
<PartImage x="30" y="30" width="52" height="52" tintColor="[CONFIGURATION.themeColor.2]">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
</Compare>
<Compare expression="monochromatic_noAmbientImage">
<PartImage x="30" y="30" width="52" height="52" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
<PartImage x="30" y="30" width="52" height="52" tintColor="[CONFIGURATION.themeColor.2]">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
</Compare>
</Condition>
</Compare>
</Condition>
</Complication>
</ComplicationSlot>
<!--
Basic example of a SHORT_TEXT complication.
Text is always present. In this example, if Icon is also present, this
is shown also, and if not, then Title is shown, if present.
-->
<ComplicationSlot
x="56" y="84"
width="112" height="112"
slotId="1"
name="left_complication" displayName="Left"
supportedTypes="SHORT_TEXT">
<DefaultProviderPolicy
primaryProvider="com.google.android.gm/com.google.android.apps.gmail.wear.complications.UnreadEmailsComplicationService"
primaryProviderType="SHORT_TEXT"
defaultSystemProvider="SUNRISE_SUNSET"
defaultSystemProviderType="SHORT_TEXT"
/>
<BoundingOval x="0" y="0" width="112" height="112" outlinePadding="2" />
<Complication type="SHORT_TEXT">
<Group name="shortText_oval" x="0" y="0" width="112" height="112">
<PartDraw x="0" y="0" height="112" width="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Arc direction="CLOCKWISE" startAngle="0" endAngle="360" centerX="56" centerY="56" width="100" height="100">
<Stroke color="[CONFIGURATION.themeColor.1]" cap="ROUND" thickness="2" />
</Arc>
</PartDraw>
<PartDraw x="0" y="0" height="112" width="112" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Arc direction="CLOCKWISE" startAngle="0" endAngle="360" centerX="56" centerY="56" width="100" height="100">
<Stroke color="[CONFIGURATION.themeColor.2]" cap="ROUND" thickness="2" />
</Arc>
</PartDraw>
</Group>
<Condition>
<Expressions>
<Expression name="shortText_monochromaticImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null]]>
</Expression>
<Expression name="shortText_title">
<![CDATA[[COMPLICATION.TITLE] != null]]>
</Expression>
</Expressions>
<Compare expression="shortText_monochromaticImage">
<Condition>
<Expressions>
<Expression name="monochromatic_ambientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] != null]]>
</Expression>
<Expression name="monochromatic_noAmbientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] == null]]>
</Expression>
</Expressions>
<Compare expression="monochromatic_ambientImage">
<PartImage x="40" y="15" width="32" height="32" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT]" />
</PartImage>
<PartImage x="40" y="15" width="32" height="32" tintColor="[CONFIGURATION.themeColor.2]" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
<PartText x="0" y="56" width="112" height="20" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="56" width="112" height="20" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
</Compare>
<Compare expression="monochromatic_noAmbientImage">
<PartImage x="40" y="15" width="32" height="32" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
<PartImage x="40" y="15" width="32" height="32" tintColor="[CONFIGURATION.themeColor.2]" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
<PartText x="0" y="56" width="112" height="20" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="56" width="112" height="20" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
</Compare>
</Condition>
</Compare>
<Compare expression="shortText_title">
<Group name="shortText_title_ambient" x="0" y="0" width="200" height="200" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<PartText x="0" y="33" width="112" height="20">
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="20" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TITLE]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="56" width="112" height="20">
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
</Group>
<Group name="shortText_title" x="0" y="0" width="200" height="200" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<PartText x="0" y="33" width="112" height="20">
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="20" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TITLE]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="56" width="112" height="20">
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
</Group>
</Compare>
<!-- Text, on its own, with no Icon or Title -->
<Default>
<PartText x="0" y="0" width="112" height="112" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="0" y="0" width="112" height="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="CENTER" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
</Default>
</Condition>
</Complication>
</ComplicationSlot>
<!--
Basic example of MONOCHROMATIC_IMAGE complication.
Demonstrates tinting and use of MONOCHROMATIC_IMAGE_AMBIENT where
provided.
-->
<ComplicationSlot
x="282" y="84"
width="112" height="112"
slotId="2"
name="right_complication" displayName="Right"
supportedTypes="MONOCHROMATIC_IMAGE">
<DefaultProviderPolicy
primaryProvider="com.fitbit.FitbitMobile/com.fitbit.complications.today.TodayComplicationDataSourceService"
primaryProviderType="MONOCHROMATIC_IMAGE"
defaultSystemProvider="WATCH_BATTERY"
defaultSystemProviderType="MONOCHROMATIC_IMAGE"
/>
<BoundingOval x="0" y="0" width="112" height="112" outlinePadding="2" />
<Complication type="MONOCHROMATIC_IMAGE">
<Group name="monochromatic_oval" x="0" y="0" width="112" height="112">
<PartDraw x="0" y="0" height="112" width="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Arc direction="CLOCKWISE" startAngle="0" endAngle="360" centerX="56" centerY="56" width="100" height="100">
<Stroke color="[CONFIGURATION.themeColor.1]" cap="ROUND" thickness="2" />
</Arc>
</PartDraw>
<PartDraw x="0" y="0" height="112" width="112" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Arc direction="CLOCKWISE" startAngle="0" endAngle="360" centerX="56" centerY="56" width="100" height="100">
<Stroke color="[CONFIGURATION.themeColor.2]" cap="ROUND" thickness="2" />
</Arc>
</PartDraw>
</Group>
<Condition>
<Expressions>
<Expression name="monochromatic_ambientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] != null]]>
</Expression>
<Expression name="monochromatic_noAmbientImage">
<![CDATA[[COMPLICATION.MONOCHROMATIC_IMAGE] != null && [COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT] == null]]>
</Expression>
</Expressions>
<Compare expression="monochromatic_ambientImage">
<PartImage x="24" y="24" width="64" height="64" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE_AMBIENT]" />
</PartImage>
<PartImage x="24" y="24" width="64" height="64" tintColor="[CONFIGURATION.themeColor.2]" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
</Compare>
<Compare expression="monochromatic_noAmbientImage">
<PartImage x="24" y="24" width="64" height="64" tintColor="[CONFIGURATION.themeColor.1]" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
<PartImage x="24" y="24" width="64" height="64" tintColor="[CONFIGURATION.themeColor.2]" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.MONOCHROMATIC_IMAGE]" />
</PartImage>
</Compare>
</Condition>
</Complication>
</ComplicationSlot>
<!--
A basic example of a SMALL_IMAGE and PHOTO_IMAGE complication.
SMALL_IMAGES can be of two types: ICON and PHOTO.
Where the image is an ICON, tinting from the theme is applied. Where it
is a PHOTO, a grayscale filter is demonstrated.
-->
<ComplicationSlot
x="168" y="152"
width="112" height="112"
slotId="3"
name="bottom_complication" displayName="Bottom"
supportedTypes="PHOTO_IMAGE SMALL_IMAGE">
<DefaultProviderPolicy
primaryProvider="com.google.android.wearable.weather/com.google.android.wearable.weather.complications.WeatherProviderService"
primaryProviderType="SMALL_IMAGE"
defaultSystemProvider="APP_SHORTCUT"
defaultSystemProviderType="SMALL_IMAGE"
/>
<BoundingOval x="0" y="0" width="112" height="112" outlinePadding="2" />
<Complication type="PHOTO_IMAGE">
<PartImage x="0" y="0" height="112" width="112">
<Image resource="[COMPLICATION.PHOTO_IMAGE]" />
</PartImage>
<PartImage x="0" y="0" height="112" width="112" renderMode="MASK">
<Image resource="source" />
</PartImage>
</Complication>
<Complication type="SMALL_IMAGE">
<Group name="smallImage_oval" x="0" y="0" width="112" height="112">
<PartDraw x="0" y="0" height="112" width="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Arc direction="CLOCKWISE" startAngle="0" endAngle="360" centerX="56" centerY="56" width="100" height="100">
<Stroke color="[CONFIGURATION.themeColor.1]" cap="ROUND" thickness="2" />
</Arc>
</PartDraw>
<PartDraw x="0" y="0" height="112" width="112" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Arc direction="CLOCKWISE" startAngle="0" endAngle="360" centerX="56" centerY="56" width="100" height="100">
<Stroke color="[CONFIGURATION.themeColor.2]" cap="ROUND" thickness="2" />
</Arc>
</PartDraw>
</Group>
<Condition>
<!-- IMAGE_STYLE values: 1 = PHOTO, 2 = ICON -->
<Expressions>
<Expression name="smallImage_icon">
<![CDATA[[COMPLICATION.SMALL_IMAGE] != null && [COMPLICATION.IMAGE_STYLE] == 2]]>
</Expression>
<Expression name="smallImage_photo">
<![CDATA[[COMPLICATION.SMALL_IMAGE] != null && [COMPLICATION.IMAGE_STYLE] == 1]]>
</Expression>
</Expressions>
<!--
When the SMALL_IMAGE has type of ICON, then the resource can be
tinted. In this example, the a darker tint is applied when in
ambient mode.
-->
<Compare expression="smallImage_icon">
<Group name="smallImage_icon_ambient" x="0" y="0" width="112" height="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Condition>
<Expressions>
<Expression name="ambientImage">
<![CDATA[[COMPLICATION.SMALL_IMAGE_AMBIENT] != null]]>
</Expression>
</Expressions>
<Compare expression="ambientImage">
<PartImage x="24" y="24" width="64" height="64" tintColor="[CONFIGURATION.themeColor.1]">
<Image resource="[COMPLICATION.SMALL_IMAGE_AMBIENT]" />
</PartImage>
</Compare>
<Default>
<PartImage x="24" y="24" width="64" height="64" tintColor="[CONFIGURATION.themeColor.1]">
<Image resource="[COMPLICATION.SMALL_IMAGE]" />
</PartImage>
</Default>
</Condition>
</Group>
<PartImage x="24" y="24" width="64" height="64" tintColor="[CONFIGURATION.themeColor.2]" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.SMALL_IMAGE]" />
</PartImage>
</Compare>
<!--
SmallImage that are PHOTO type, instead of ICON type can't be tinted
so here as an example, a filter is applied to transform the image to
greyscale, when an alternative SMALL_IMAGE_AMBIENT isn't supplied.
-->
<Compare expression="smallImage_photo">
<Group name="smallImage_photo_ambient" x="0" y="0" width="112" height="112" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Condition>
<Expressions>
<Expression name="ambientImage">
<![CDATA[[COMPLICATION.SMALL_IMAGE_AMBIENT] != null]]>
</Expression>
</Expressions>
<Compare expression="ambientImage">
<PartImage x="24" y="24" width="64" height="64">
<ImageFilters>
<HsbFilter saturate="0" brightness="0.5"/>
</ImageFilters>
<Image resource="[COMPLICATION.SMALL_IMAGE_AMBIENT]" />
</PartImage>
</Compare>
<Default>
<PartImage x="24" y="24" width="64" height="64">
<ImageFilters>
<HsbFilter saturate="0" brightness="0.5"/>
</ImageFilters>
<Image resource="[COMPLICATION.SMALL_IMAGE]" />
</PartImage>
</Default>
</Condition>
</Group>
<PartImage x="24" y="24" width="64" height="64" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Image resource="[COMPLICATION.SMALL_IMAGE]" />
</PartImage>
</Compare>
</Condition>
</Complication>
</ComplicationSlot>
<Group name="big_rectangle" x="88" y="284" width="274" height="84">
<PartDraw x="0" y="0" height="84" width="274" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<RoundRectangle x="0" y="0" height="84" width="274"
cornerRadiusX="5" cornerRadiusY="5">
<Stroke color="[CONFIGURATION.themeColor.1]" thickness="2" />
</RoundRectangle>
</PartDraw>
<PartDraw x="0" y="0" height="84" width="274" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<RoundRectangle x="0" y="0" height="84" width="274"
cornerRadiusX="5" cornerRadiusY="5">
<Stroke color="[CONFIGURATION.themeColor.2]" thickness="2" />
</RoundRectangle>
</PartDraw>
</Group>
<ComplicationSlot
x="88" y="284"
width="274" height="84"
slotId="4"
name="big_complication" displayName="Large"
supportedTypes="LONG_TEXT">
<DefaultProviderPolicy
defaultSystemProvider="NEXT_EVENT"
defaultSystemProviderType="LONG_TEXT"
/>
<BoundingRoundBox x="0" y="0" width="274" height="84" cornerRadius="3" outlinePadding="2" />
<Complication type="LONG_TEXT">
<Condition>
<Expressions>
<Expression name="longText_title">
<![CDATA[[COMPLICATION.TITLE] != null]]>
</Expression>
</Expressions>
<Compare expression="longText_title">
<PartText x="8" y="10" width="262" height="24" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="START" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="24" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TITLE]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="8" y="10" width="262" height="24" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="START" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="24" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TITLE]"/>
</Template>
</Font>
</Text>
</PartText>
</Compare>
</Condition>
<PartText x="8" y="48" width="262" height="32" alpha="255">
<Variant mode="AMBIENT" target="alpha" value="0" />
<Text align="START" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.2]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
<PartText x="8" y="48" width="262" height="32" alpha="0">
<Variant mode="AMBIENT" target="alpha" value="255" />
<Text align="START" ellipsis="TRUE">
<Font family="SYNC_TO_DEVICE" size="28" weight="NORMAL" slant="NORMAL" color="[CONFIGURATION.themeColor.1]">
<Template>%s<Parameter expression="[COMPLICATION.TEXT]"/>
</Template>
</Font>
</Text>
</PartText>
</Complication>
</ComplicationSlot>
</Scene>
</WatchFace>