You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

384 lines
21 KiB

1 year ago
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <?xaml-comp compile="true" ?>
  3. <ResourceDictionary
  4. xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml">
  6. <Style TargetType="ActivityIndicator">
  7. <Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  8. </Style>
  9. <Style TargetType="IndicatorView">
  10. <Setter Property="IndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}"/>
  11. <Setter Property="SelectedIndicatorColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray100}}"/>
  12. </Style>
  13. <Style TargetType="Border">
  14. <Setter Property="Stroke" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
  15. <Setter Property="StrokeShape" Value="Rectangle"/>
  16. <Setter Property="StrokeThickness" Value="1"/>
  17. </Style>
  18. <Style TargetType="BoxView">
  19. <Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
  20. </Style>
  21. <Style TargetType="Button">
  22. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Primary}}" />
  23. <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  24. <Setter Property="FontFamily" Value="OpenSansRegular"/>
  25. <Setter Property="FontSize" Value="14"/>
  26. <Setter Property="CornerRadius" Value="8"/>
  27. <Setter Property="Padding" Value="14,10"/>
  28. <Setter Property="VisualStateManager.VisualStateGroups">
  29. <VisualStateGroupList>
  30. <VisualStateGroup x:Name="CommonStates">
  31. <VisualState x:Name="Normal" />
  32. <VisualState x:Name="Disabled">
  33. <VisualState.Setters>
  34. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
  35. <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
  36. </VisualState.Setters>
  37. </VisualState>
  38. </VisualStateGroup>
  39. </VisualStateGroupList>
  40. </Setter>
  41. </Style>
  42. <Style TargetType="CheckBox">
  43. <Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  44. <Setter Property="VisualStateManager.VisualStateGroups">
  45. <VisualStateGroupList>
  46. <VisualStateGroup x:Name="CommonStates">
  47. <VisualState x:Name="Normal" />
  48. <VisualState x:Name="Disabled">
  49. <VisualState.Setters>
  50. <Setter Property="Color" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  51. </VisualState.Setters>
  52. </VisualState>
  53. </VisualStateGroup>
  54. </VisualStateGroupList>
  55. </Setter>
  56. </Style>
  57. <Style TargetType="DatePicker">
  58. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
  59. <Setter Property="BackgroundColor" Value="Transparent" />
  60. <Setter Property="FontFamily" Value="OpenSansRegular"/>
  61. <Setter Property="FontSize" Value="14"/>
  62. <Setter Property="VisualStateManager.VisualStateGroups">
  63. <VisualStateGroupList>
  64. <VisualStateGroup x:Name="CommonStates">
  65. <VisualState x:Name="Normal" />
  66. <VisualState x:Name="Disabled">
  67. <VisualState.Setters>
  68. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
  69. </VisualState.Setters>
  70. </VisualState>
  71. </VisualStateGroup>
  72. </VisualStateGroupList>
  73. </Setter>
  74. </Style>
  75. <Style TargetType="Editor">
  76. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
  77. <Setter Property="BackgroundColor" Value="Transparent" />
  78. <Setter Property="FontFamily" Value="OpenSansRegular"/>
  79. <Setter Property="FontSize" Value="14" />
  80. <Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
  81. <Setter Property="VisualStateManager.VisualStateGroups">
  82. <VisualStateGroupList>
  83. <VisualStateGroup x:Name="CommonStates">
  84. <VisualState x:Name="Normal" />
  85. <VisualState x:Name="Disabled">
  86. <VisualState.Setters>
  87. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  88. </VisualState.Setters>
  89. </VisualState>
  90. </VisualStateGroup>
  91. </VisualStateGroupList>
  92. </Setter>
  93. </Style>
  94. <Style TargetType="Entry">
  95. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
  96. <Setter Property="BackgroundColor" Value="Transparent" />
  97. <Setter Property="FontFamily" Value="OpenSansRegular"/>
  98. <Setter Property="FontSize" Value="14" />
  99. <Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
  100. <Setter Property="VisualStateManager.VisualStateGroups">
  101. <VisualStateGroupList>
  102. <VisualStateGroup x:Name="CommonStates">
  103. <VisualState x:Name="Normal" />
  104. <VisualState x:Name="Disabled">
  105. <VisualState.Setters>
  106. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  107. </VisualState.Setters>
  108. </VisualState>
  109. </VisualStateGroup>
  110. </VisualStateGroupList>
  111. </Setter>
  112. </Style>
  113. <Style TargetType="Frame">
  114. <Setter Property="HasShadow" Value="False" />
  115. <Setter Property="BorderColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
  116. <Setter Property="CornerRadius" Value="8" />
  117. </Style>
  118. <Style TargetType="ImageButton">
  119. <Setter Property="Opacity" Value="1" />
  120. <Setter Property="BorderColor" Value="Transparent"/>
  121. <Setter Property="BorderWidth" Value="0"/>
  122. <Setter Property="CornerRadius" Value="0"/>
  123. <Setter Property="VisualStateManager.VisualStateGroups">
  124. <VisualStateGroupList>
  125. <VisualStateGroup x:Name="CommonStates">
  126. <VisualState x:Name="Normal" />
  127. <VisualState x:Name="Disabled">
  128. <VisualState.Setters>
  129. <Setter Property="Opacity" Value="0.5" />
  130. </VisualState.Setters>
  131. </VisualState>
  132. </VisualStateGroup>
  133. </VisualStateGroupList>
  134. </Setter>
  135. </Style>
  136. <Style TargetType="Label">
  137. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
  138. <Setter Property="FontFamily" Value="OpenSansRegular" />
  139. <Setter Property="FontSize" Value="14" />
  140. <Setter Property="VisualStateManager.VisualStateGroups">
  141. <VisualStateGroupList>
  142. <VisualStateGroup x:Name="CommonStates">
  143. <VisualState x:Name="Normal" />
  144. <VisualState x:Name="Disabled">
  145. <VisualState.Setters>
  146. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  147. </VisualState.Setters>
  148. </VisualState>
  149. </VisualStateGroup>
  150. </VisualStateGroupList>
  151. </Setter>
  152. </Style>
  153. <Style TargetType="ListView">
  154. <Setter Property="SeparatorColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray500}}" />
  155. <Setter Property="RefreshControlColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
  156. </Style>
  157. <Style TargetType="Picker">
  158. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
  159. <Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
  160. <Setter Property="BackgroundColor" Value="Transparent" />
  161. <Setter Property="FontFamily" Value="OpenSansRegular"/>
  162. <Setter Property="FontSize" Value="14"/>
  163. <Setter Property="VisualStateManager.VisualStateGroups">
  164. <VisualStateGroupList>
  165. <VisualStateGroup x:Name="CommonStates">
  166. <VisualState x:Name="Normal" />
  167. <VisualState x:Name="Disabled">
  168. <VisualState.Setters>
  169. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  170. <Setter Property="TitleColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  171. </VisualState.Setters>
  172. </VisualState>
  173. </VisualStateGroup>
  174. </VisualStateGroupList>
  175. </Setter>
  176. </Style>
  177. <Style TargetType="ProgressBar">
  178. <Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  179. <Setter Property="VisualStateManager.VisualStateGroups">
  180. <VisualStateGroupList>
  181. <VisualStateGroup x:Name="CommonStates">
  182. <VisualState x:Name="Normal" />
  183. <VisualState x:Name="Disabled">
  184. <VisualState.Setters>
  185. <Setter Property="ProgressColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  186. </VisualState.Setters>
  187. </VisualState>
  188. </VisualStateGroup>
  189. </VisualStateGroupList>
  190. </Setter>
  191. </Style>
  192. <Style TargetType="RadioButton">
  193. <Setter Property="Background" Value="Transparent"/>
  194. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource White}}" />
  195. <Setter Property="FontFamily" Value="OpenSansRegular"/>
  196. <Setter Property="FontSize" Value="14"/>
  197. <Setter Property="VisualStateManager.VisualStateGroups">
  198. <VisualStateGroupList>
  199. <VisualStateGroup x:Name="CommonStates">
  200. <VisualState x:Name="Normal" />
  201. <VisualState x:Name="Disabled">
  202. <VisualState.Setters>
  203. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  204. </VisualState.Setters>
  205. </VisualState>
  206. </VisualStateGroup>
  207. </VisualStateGroupList>
  208. </Setter>
  209. </Style>
  210. <Style TargetType="RefreshView">
  211. <Setter Property="RefreshColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
  212. </Style>
  213. <Style TargetType="SearchBar">
  214. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
  215. <Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
  216. <Setter Property="CancelButtonColor" Value="{StaticResource Gray500}" />
  217. <Setter Property="BackgroundColor" Value="Transparent" />
  218. <Setter Property="FontFamily" Value="OpenSansRegular" />
  219. <Setter Property="FontSize" Value="14" />
  220. <Setter Property="VisualStateManager.VisualStateGroups">
  221. <VisualStateGroupList>
  222. <VisualStateGroup x:Name="CommonStates">
  223. <VisualState x:Name="Normal" />
  224. <VisualState x:Name="Disabled">
  225. <VisualState.Setters>
  226. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  227. <Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  228. </VisualState.Setters>
  229. </VisualState>
  230. </VisualStateGroup>
  231. </VisualStateGroupList>
  232. </Setter>
  233. </Style>
  234. <Style TargetType="SearchHandler">
  235. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
  236. <Setter Property="PlaceholderColor" Value="{StaticResource Gray500}" />
  237. <Setter Property="BackgroundColor" Value="Transparent" />
  238. <Setter Property="FontFamily" Value="OpenSansRegular" />
  239. <Setter Property="FontSize" Value="14" />
  240. <Setter Property="VisualStateManager.VisualStateGroups">
  241. <VisualStateGroupList>
  242. <VisualStateGroup x:Name="CommonStates">
  243. <VisualState x:Name="Normal" />
  244. <VisualState x:Name="Disabled">
  245. <VisualState.Setters>
  246. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  247. <Setter Property="PlaceholderColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  248. </VisualState.Setters>
  249. </VisualState>
  250. </VisualStateGroup>
  251. </VisualStateGroupList>
  252. </Setter>
  253. </Style>
  254. <Style TargetType="Shadow">
  255. <Setter Property="Radius" Value="15" />
  256. <Setter Property="Opacity" Value="0.5" />
  257. <Setter Property="Brush" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
  258. <Setter Property="Offset" Value="10,10" />
  259. </Style>
  260. <Style TargetType="Slider">
  261. <Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  262. <Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray600}}" />
  263. <Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  264. <Setter Property="VisualStateManager.VisualStateGroups">
  265. <VisualStateGroupList>
  266. <VisualStateGroup x:Name="CommonStates">
  267. <VisualState x:Name="Normal" />
  268. <VisualState x:Name="Disabled">
  269. <VisualState.Setters>
  270. <Setter Property="MinimumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
  271. <Setter Property="MaximumTrackColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
  272. <Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}"/>
  273. </VisualState.Setters>
  274. </VisualState>
  275. </VisualStateGroup>
  276. </VisualStateGroupList>
  277. </Setter>
  278. </Style>
  279. <Style TargetType="SwipeItem">
  280. <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
  281. </Style>
  282. <Style TargetType="Switch">
  283. <Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  284. <Setter Property="ThumbColor" Value="{StaticResource White}" />
  285. <Setter Property="VisualStateManager.VisualStateGroups">
  286. <VisualStateGroupList>
  287. <VisualStateGroup x:Name="CommonStates">
  288. <VisualState x:Name="Normal" />
  289. <VisualState x:Name="Disabled">
  290. <VisualState.Setters>
  291. <Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  292. <Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  293. </VisualState.Setters>
  294. </VisualState>
  295. <VisualState x:Name="On">
  296. <VisualState.Setters>
  297. <Setter Property="OnColor" Value="{AppThemeBinding Light={StaticResource Secondary}, Dark={StaticResource Gray200}}" />
  298. <Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  299. </VisualState.Setters>
  300. </VisualState>
  301. <VisualState x:Name="Off">
  302. <VisualState.Setters>
  303. <Setter Property="ThumbColor" Value="{AppThemeBinding Light={StaticResource Gray400}, Dark={StaticResource Gray500}}" />
  304. </VisualState.Setters>
  305. </VisualState>
  306. </VisualStateGroup>
  307. </VisualStateGroupList>
  308. </Setter>
  309. </Style>
  310. <Style TargetType="TimePicker">
  311. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource White}}" />
  312. <Setter Property="Background" Value="Transparent"/>
  313. <Setter Property="FontFamily" Value="OpenSansRegular"/>
  314. <Setter Property="FontSize" Value="14"/>
  315. <Setter Property="VisualStateManager.VisualStateGroups">
  316. <VisualStateGroupList>
  317. <VisualStateGroup x:Name="CommonStates">
  318. <VisualState x:Name="Normal" />
  319. <VisualState x:Name="Disabled">
  320. <VisualState.Setters>
  321. <Setter Property="TextColor" Value="{AppThemeBinding Light={StaticResource Gray300}, Dark={StaticResource Gray600}}" />
  322. </VisualState.Setters>
  323. </VisualState>
  324. </VisualStateGroup>
  325. </VisualStateGroupList>
  326. </Setter>
  327. </Style>
  328. <Style TargetType="Page" ApplyToDerivedTypes="True">
  329. <Setter Property="Padding" Value="0"/>
  330. <Setter Property="BackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
  331. </Style>
  332. <Style TargetType="Shell" ApplyToDerivedTypes="True">
  333. <Setter Property="Shell.BackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
  334. <Setter Property="Shell.ForegroundColor" Value="{OnPlatform WinUI={StaticResource Primary}, Default={StaticResource White}}" />
  335. <Setter Property="Shell.TitleColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource White}}" />
  336. <Setter Property="Shell.DisabledColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
  337. <Setter Property="Shell.UnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray200}}" />
  338. <Setter Property="Shell.NavBarHasShadow" Value="False" />
  339. <Setter Property="Shell.TabBarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Black}}" />
  340. <Setter Property="Shell.TabBarForegroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  341. <Setter Property="Shell.TabBarTitleColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  342. <Setter Property="Shell.TabBarUnselectedColor" Value="{AppThemeBinding Light={StaticResource Gray900}, Dark={StaticResource Gray200}}" />
  343. </Style>
  344. <Style TargetType="NavigationPage">
  345. <Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource Gray950}}" />
  346. <Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
  347. <Setter Property="IconColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource White}}" />
  348. </Style>
  349. <Style TargetType="TabbedPage">
  350. <Setter Property="BarBackgroundColor" Value="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray950}}" />
  351. <Setter Property="BarTextColor" Value="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource White}}" />
  352. <Setter Property="UnselectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray200}, Dark={StaticResource Gray950}}" />
  353. <Setter Property="SelectedTabColor" Value="{AppThemeBinding Light={StaticResource Gray950}, Dark={StaticResource Gray200}}" />
  354. </Style>
  355. </ResourceDictionary>