This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathThemeConstants.cs
635 lines (569 loc) · 15.1 KB
/
ThemeConstants.cs
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
using Tizen.Common;
using EColor = ElmSharp.Color;
namespace Xamarin.Forms.Platform.Tizen
{
public class ThemeConstants
{
#region Common
public class Common
{
public class Parts
{
public const string Text = "elm.text";
public const string Content = "elm.swallow.content";
}
public class ColorClass
{
public const string BackGround = "bg";
public const string Opacity = "opacity";
}
public class Resource
{
public class Mobile
{
public const double BaseScale = 2.6;
}
public class TV
{
public const double BaseScale = 2.0;
}
public class Watch
{
public const double BaseScale = 1.3;
}
public class Refrigerator
{
public const double BaseScale = 1.0;
}
public class Iot
{
public const double BaseScale = 1.8;
}
}
}
#endregion
#region Layout
public class Layout
{
public class Parts
{
public const string Text = Common.Parts.Text;
public const string Content = Common.Parts.Content;
public const string Background = "elm.swallow.background";
public const string Overlay = "elm.swallow.overlay";
}
}
#endregion
#region Button
public class Button
{
public class Styles
{
public const string Default = "default";
public const string Circle = "circle";
public const string Bottom = "bottom";
public const string Text = "textbutton";
public const string SelectMode = "select_mode";
public const string EditFieldClear = "editfield_clear";
public const string Transparent = "transparent";
public const string Popup = "popup";
public const string NavigationTitleLeft = "naviframe/title_left";
public const string NavigationTitleRight = "naviframe/title_right";
public const string NavigationBack = "naviframe/back_btn/default";
public const string NavigationDrawers = "naviframe/drawers";
public class Watch
{
public const string PopupLeft = "popup/circle/left_delete";
public const string PopupRight = "popup/circle/right_check";
public const string Text = "textbutton";
}
}
public class Parts
{
public const string Icon = "elm.swallow.content";
public const string Button = "elm.swallow.button";
}
public class ColorClass
{
public const string Icon = "icon";
public const string IconPressed = "icon_pressed";
public const string Effect = "effect";
public const string EffectPressed = "effect_pressed";
}
public class Signals
{
public const string ElementaryCode = "elm";
public const string TextVisibleState = "elm,state,text,visible";
public const string TextHiddenState = "elm,state,text,hidden";
}
}
#endregion
#region Entry
public class Entry
{
public class Parts
{
public const string PlaceHolderText = "elm.guide";
}
public class Signals
{
public const string SelectionChanged = "selection,changed";
public const string SelectionCleared = "selection,cleared";
}
}
#endregion
#region GenListItem
public class GenListItem
{
public class ColorClass
{
public const string BottomLine = "bottomline";
public const string Background = Common.ColorClass.BackGround;
}
public class Signals
{
public class TV
{
public const string SinglelineIconTextTheme = "theme,singleline,icon,text";
public const string SinglelineTextIconTheme = "theme,singleline,text,1icon";
}
}
}
#endregion
#region NaviItem
public class NaviItem
{
public class Styles
{
public const string Default = "default";
public const string NavigationBar = "navigationbar";
public class TV
{
public const string TabBar = "tabbar";
}
}
public class Parts
{
public const string Title = "default";
public const string BackButton = "elm.swallow.prev_btn";
public const string LeftToolbarButton = "title_left_btn";
public const string RightToolbarButton = "title_right_btn";
public const string NavigationBar = "navigationbar";
}
public class ColorClass
{
public const string TextUnderIconPressed = "text_under_icon_pressed";
public const string TextUnderIconSelected = "text_under_icon_selected";
}
}
#endregion
#region GenList
public static class GenList
{
public class Styles
{
public const string Solid = "solid/default";
}
}
#endregion
#region GenItemClass
public static class GenItemClass
{
public class Styles
{
public const string Default = "default";
public const string Full = "full";
public const string DoubleLabel = "double_label";
public const string GroupIndex = "group_index";
public class Watch
{
public const string Padding = "padding";
public const string SingleText = "1text";
public const string Text1Icon1 = "1text.1icon.1";
public const string TwoText1Icon1 = "2text.1icon.1";
public const string Icon2Text = "2text.1icon";//"1icon_2text"
public const string FullEffectOff = "full_effect_off";
public const string FullOff = "full_off";
}
}
public class Parts
{
public const string Text = Common.Parts.Text;
public const string Content = Common.Parts.Content;
public const string Icon = "elm.swallow.icon";
public const string End = "elm.swallow.end";
public const string SubText = "elm.text.sub";
public const string EndText = "elm.text.end";
public const string Ignore = "null";
public class Watch
{
public const string Icon = "elm.icon";
public const string Text = "elm.text.1";
}
}
}
#endregion
#region Popup
public class Popup
{
public class Styles
{
public class Watch
{
public const string Circle = "circle";
public const string ToastCircle = "toast/circle";
}
}
public class Parts
{
public const string Title = "title,text";
public const string Button1 = "button1";
public const string Button2 = "button2";
public const string Button3 = "button3";
public class Watch
{
public const string ToastIcon = "toast,icon";
}
}
public class ColorClass
{
public const string Title = "text_maintitle";
public const string TitleBackground = "bg_title";
public const string ContentBackground = "bg_content";
public class TV
{
public const string Title = "text_title";
}
}
}
#endregion
#region ContextPopup
public class ContextPopup
{
public class Styles
{
public const string SelectMode = "select_mode";
}
}
#endregion
#region DateTimeSelector
public class DateTimeSelector
{
public class Styles
{
public const string TimeLayout = "time_layout";
public const string DateLayout = "date_layout";
}
}
#endregion
#region CircleDateTimeSelector
public class CircleDateTimeSelector
{
public class Styles
{
public const string CircleDatePicker = "datepicker/circle";
public const string CircleTimePicker = "timepicker/circle";
}
}
#endregion
#region CircleSpinner
public class CircleSpinner
{
public class Styles
{
public const string Circle = "circle";
}
public class Signals
{
public static readonly string ShowList = DotnetUtil.TizenAPIVersion == 4 ? "genlist,show" : "list,show";
public static readonly string HideList = DotnetUtil.TizenAPIVersion == 4 ? "genlist,hide" : "list,hide";
}
}
#endregion
#region Toolbar
public class Toolbar
{
public class Styles
{
public const string Default = "default";
public const string NavigationBar = "navigationbar";
public const string Tabbar = "tabbar";
public const string Material = "material";
public class TV
{
public const string TabbarWithTitle = "tabbar_with_title";
}
}
}
#endregion
#region ToolbarItem
public class ToolbarItem
{
public class Parts
{
public const string Icon = "elm.swallow.icon";
}
public class ColorClass
{
public const string Background = Common.ColorClass.BackGround;
public const string Icon = "icon";
public const string IconPressed = "icon_pressed";
public const string IconSelected = "icon_selected";
public const string Text = "text";
public const string TextPressed = "text_pressed";
public const string TextSelected = "text_selected";
public const string TextUnderIcon = "text_under_icon";
public const string TextUnderIconPressed = "text_under_icon_pressed";
public const string TextUnderIconSelected = "text_under_icon_selected";
public const string Underline = "underline";
}
}
#endregion
#region ProgressBar
public class ProgressBar
{
public class Styles
{
public const string Default = "default";
public const string Pending = "pending";
public const string Small = "process_small";
public const string Large = "process_large";
public class Watch
{
public const string PopupSmall = "process/popup/small";
}
}
public class ColorClass
{
public static readonly EColor Default = new EColor(129, 198, 255);
}
}
#endregion
#region Frame
public class Frame
{
public class ColorClass
{
public static readonly EColor DefaultBorderColor = Device.Idiom == TargetIdiom.TV || Device.Idiom == TargetIdiom.Watch ? EColor.Gray : EColor.Black;
public static readonly EColor DefaultShadowColor = EColor.FromRgba(80, 80, 80, 50);
}
}
#endregion
#region Panes
public class Panes
{
public class Parts
{
public const string Left = "left";
public const string Right = "right";
}
}
#endregion
#region Scroller
public class Scroller
{
public class Signals
{
public const string StartScrollAnimation = "scroll,anim,start";
public const string StopScrollAnimation = "scroll,anim,stop";
}
}
#endregion
#region Background
public class Background
{
public class Parts
{
public const string Overlay = "overlay";
}
}
#endregion
#region Check
public class Check
{
public class Styles
{
public const string Default = "default";
public const string Toggle = "toggle";
public const string Favorite = "favorite";
public const string OnOff = "on&off";
public const string Small = "small";
public class Watch
{
public const string ListSelectMode = "genlist/select_mode";
}
}
public class ColorClass
{
public const string BackgroundOn = "bg_on";
public const string Stroke = "stroke";
public class TV
{
public const string SliderOn = "slider_on";
public const string SliderFocusedOn = "slider_focused_on";
}
public class Watch
{
public const string OuterBackgroundOn = "outer_bg_on";
public const string OuterBackgroundOnPressed = "outer_bg_on_pressed";
public const string CheckOn = "check_on";
public const string CheckOnPressed = "check_on_pressed";
}
}
}
#endregion
#region Radio
public class Radio
{
public class Signals
{
public const string ElementaryCode = "elm";
public const string TextVisibleState = "elm,state,text,visible";
public const string TextHiddenState = "elm,state,text,hidden";
}
}
#endregion
#region Index
public class Index
{
public class Styles
{
public const string PageControl = "pagecontrol";
public const string Circle = "circle";
public const string Thumbnail = "thumbnail";
}
}
#endregion
#region IndexItem
public class IndexItem
{
public class Styles
{
public const string EvenItemPrefix = "item/even_";
public const string OddItemPrefix = "item/odd_";
}
}
#endregion
#region Slider
public class Slider
{
public class ColorClass
{
public const string Bar = "bar";
public const string Background = "bg";
public const string Handler = "handler";
public const string BarPressed = "bar_pressed";
public const string HandlerPressed = "handler_pressed";
}
}
#endregion
#region RefreshView
public class RefreshView
{
public class Resources
{
public const int IconSize = 48;
public const string IconPath = "Xamarin.Forms.Platform.Tizen.Resource.refresh_48dp.png";
}
public class ColorClass
{
public static readonly Color DefaultColor = Color.FromHex("#6200EE");
}
}
#endregion
#region Span
public class Span
{
public class ColorClass
{
public static readonly EColor DefaultUnderLineColor = EColor.Black;
}
}
#endregion
#region Cell
public class EntryCell
{
public class Resources
{
public const double DefaultHeight = 65;
}
public class ColorClass
{
public static readonly EColor DefaultLabelColor = EColor.Black;
}
}
public class ImageCell
{
public class Resources
{
public const double DefaultHeight = 55;
}
}
#endregion
#region Shell
public class Shell
{
public class Resources
{
// The source of icon resources is https://materialdesignicons.com/
public const string MenuIcon = "Resource.menu.png";
public const string BackIcon = "Resource.arrow_left.png";
public const string DotsIcon = "Resource.dots_horizontal.png";
public class Watch
{
public const int DefaultNavigationViewIconSize = 60;
public const int DefaultDrawerTouchWidth = 50;
public const int DefaultDrawerIconSize = 40;
public const string DefaultDrawerIcon = "Xamarin.Forms.Platform.Tizen.Resource.wc_visual_cue.png";
}
public class TV
{
public const string MenuIconCode = "\u2630";
public const string BackIconCode = "\u2190";
public const string DotsIconCode = "\u2026";
}
}
public class ColorClass
{
public static readonly Color DefaultBackgroundColor = Color.FromRgb(33, 150, 243);
public static readonly Color DefaultForegroundColor = Color.White;
public static readonly Color DefaultTitleColor = Color.White;
public static readonly EColor DefaultNavigationViewBackgroundColor = EColor.White;
public static readonly EColor DefaultDrawerDimBackgroundColor = new EColor(0, 0, 0, 82);
public class Watch
{
public static readonly EColor DefaultNavigationViewForegroundColor = EColor.Default;
public static readonly EColor DefaultNavigationViewBackgroundColor = EColor.Black;
}
}
}
#endregion
#region CarouselView
public class CarouselView
{
public class ColorClass
{
public static readonly EColor DefaultFocusedColor = EColor.Transparent;
public static readonly EColor DefaultSelectedColor = EColor.Transparent;
}
}
#endregion
#region MediaPlayer
public class MediaPlayer
{
public class Resources
{
public const string PlayImagePath = "Xamarin.Forms.Platform.Tizen.Resource.img_button_play.png";
public const string PauseImagePath = "Xamarin.Forms.Platform.Tizen.Resource.img_button_pause.png";
}
public class ColorClass
{
public static readonly Color DefaultProgressLabelColor = Color.FromHex("#eeeeeeee");
public static readonly Color DefaultProgressBarColor = Color.FromHex($"#4286f4");
public static readonly Color DefaultProgressAreaColor = Color.FromHex("#80000000");
public static readonly Color DefaultProgressAreaBackgroundColor = Color.FromHex("#50000000");
}
}
#endregion
}
}