Skip to content

Commit 55df97d

Browse files
authored
Code Quality: Added status icons (#12909)
1 parent 0419f83 commit 55df97d

File tree

1 file changed

+175
-0
lines changed

1 file changed

+175
-0
lines changed

src/Files.App/ResourceDictionaries/PathIcons.xaml

Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2347,6 +2347,181 @@
23472347
</Setter.Value>
23482348
</Setter>
23492349
</Style>
2350+
2351+
<Style x:Key="ColorIconCloudSyncing" TargetType="local:OpacityIcon">
2352+
<Setter Property="Template">
2353+
<Setter.Value>
2354+
<ControlTemplate>
2355+
<Viewbox Stretch="Fill">
2356+
<Grid Width="16" Height="16">
2357+
<Path
2358+
x:Name="Path1"
2359+
Data="M7.14645 0.646447C7.34171 0.451184 7.65829 0.451184 7.85355 0.646447L9.35355 2.14645C9.54882 2.34171 9.54882 2.65829 9.35355 2.85355L7.85355 4.35355C7.65829 4.54882 7.34171 4.54882 7.14645 4.35355C6.95118 4.15829 6.95118 3.84171 7.14645 3.64645L7.7885 3.00439C5.12517 3.11522 3 5.30943 3 8C3 9.56799 3.72118 10.9672 4.85185 11.8847C5.06627 12.0587 5.09904 12.3736 4.92503 12.588C4.75103 12.8024 4.43615 12.8352 4.22172 12.6612C2.86712 11.5619 2 9.88205 2 8C2 4.75447 4.57689 2.1108 7.79629 2.00339L7.14645 1.35355C6.95118 1.15829 6.95118 0.841709 7.14645 0.646447ZM11.075 3.41199C11.249 3.19756 11.5639 3.1648 11.7783 3.3388C13.1329 4.43806 14 6.11795 14 8C14 11.2455 11.4231 13.8892 8.20371 13.9966L8.85355 14.6464C9.04882 14.8417 9.04882 15.1583 8.85355 15.3536C8.65829 15.5488 8.34171 15.5488 8.14645 15.3536L6.64645 13.8536C6.55268 13.7598 6.5 13.6326 6.5 13.5C6.5 13.3674 6.55268 13.2402 6.64645 13.1464L8.14645 11.6464C8.34171 11.4512 8.65829 11.4512 8.85355 11.6464C9.04882 11.8417 9.04882 12.1583 8.85355 12.3536L8.2115 12.9956C10.8748 12.8848 13 10.6906 13 8C13 6.43201 12.2788 5.03283 11.1482 4.1153C10.9337 3.94129 10.901 3.62641 11.075 3.41199Z"
2360+
Fill="{ThemeResource SystemFillColorAttentionBrush}" />
2361+
</Grid>
2362+
2363+
<VisualStateManager.VisualStateGroups>
2364+
<VisualStateGroup>
2365+
<VisualState x:Name="Normal" />
2366+
<VisualState x:Name="Disabled" />
2367+
<VisualState x:Name="Selected" />
2368+
</VisualStateGroup>
2369+
</VisualStateManager.VisualStateGroups>
2370+
</Viewbox>
2371+
</ControlTemplate>
2372+
</Setter.Value>
2373+
</Setter>
2374+
</Style>
2375+
2376+
<Style x:Key="ColorIconCloud" TargetType="local:OpacityIcon">
2377+
<Setter Property="Template">
2378+
<Setter.Value>
2379+
<ControlTemplate>
2380+
<Viewbox Stretch="Fill">
2381+
<Grid Width="16" Height="16">
2382+
<Path
2383+
x:Name="Path1"
2384+
Data="M8 2C10.8166 2 12.4145 3.92329 12.6469 6.24599L12.7179 6.24599C14.5306 6.24599 16 7.75792 16 9.62299C16 11.4881 14.5306 13 12.7179 13H3.28205C1.46942 13 0 11.4881 0 9.62299C0 7.82009 1.3731 6.34717 3.10199 6.25098L3.35314 6.24599C3.58687 3.90802 5.18335 2 8 2ZM8 3C5.88606 3 4.55108 4.31588 4.34818 6.34547C4.29707 6.85669 3.86688 7.24601 3.3531 7.24599L3.28207 7.24599C2.02819 7.24599 1 8.30392 1 9.62299C1 10.9421 2.02819 12 3.28205 12H12.7179C13.9718 12 15 10.9421 15 9.62299C15 8.30393 13.9718 7.24599 12.718 7.24599L12.6469 7.24599C12.1332 7.24601 11.703 6.85673 11.6518 6.34554C11.4497 4.32493 10.1085 3 8 3Z"
2385+
Fill="{ThemeResource TextFillColorSecondaryBrush}" />
2386+
</Grid>
2387+
2388+
<VisualStateManager.VisualStateGroups>
2389+
<VisualStateGroup>
2390+
<VisualState x:Name="Normal" />
2391+
<VisualState x:Name="Disabled" />
2392+
<VisualState x:Name="Selected" />
2393+
</VisualStateGroup>
2394+
</VisualStateManager.VisualStateGroups>
2395+
</Viewbox>
2396+
</ControlTemplate>
2397+
</Setter.Value>
2398+
</Setter>
2399+
</Style>
2400+
2401+
<Style x:Key="ColorIconCloudUnavailable" TargetType="local:OpacityIcon">
2402+
<Setter Property="Template">
2403+
<Setter.Value>
2404+
<ControlTemplate>
2405+
<Viewbox Stretch="Fill">
2406+
<Grid Width="16" Height="16">
2407+
<Path
2408+
x:Name="Path1"
2409+
Data="M8 3C5.23858 3 3 5.23858 3 8C3 9.20063 3.42318 10.3024 4.12853 11.1644L11.1644 4.12853C10.3024 3.42318 9.20063 3 8 3ZM11.8715 4.83563L4.83563 11.8715C5.69757 12.5768 6.79937 13 8 13C10.7614 13 13 10.7614 13 8C13 6.79937 12.5768 5.69757 11.8715 4.83563ZM2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8Z"
2410+
Fill="{ThemeResource SystemFillColorCriticalBrush}" />
2411+
</Grid>
2412+
2413+
<VisualStateManager.VisualStateGroups>
2414+
<VisualStateGroup>
2415+
<VisualState x:Name="Normal" />
2416+
<VisualState x:Name="Disabled" />
2417+
<VisualState x:Name="Selected" />
2418+
</VisualStateGroup>
2419+
</VisualStateManager.VisualStateGroups>
2420+
</Viewbox>
2421+
</ControlTemplate>
2422+
</Setter.Value>
2423+
</Setter>
2424+
</Style>
2425+
2426+
<Style x:Key="ColorIconGitAdded" TargetType="local:OpacityIcon">
2427+
<Setter Property="Template">
2428+
<Setter.Value>
2429+
<ControlTemplate>
2430+
<Viewbox Stretch="Fill">
2431+
<Grid Width="16" Height="16">
2432+
<Path
2433+
x:Name="Path1"
2434+
Data="M4 1C2.34315 1 1 2.34315 1 4V12C1 13.6569 2.34315 15 4 15H12C13.6569 15 15 13.6569 15 12V4C15 2.34315 13.6569 1 12 1H4ZM2 4C2 2.89543 2.89543 2 4 2H12C13.1046 2 14 2.89543 14 4V12C14 13.1046 13.1046 14 12 14H4C2.89543 14 2 13.1046 2 12V4ZM8.5 4.50021C8.5 4.22407 8.27614 4.00021 8 4.00021C7.72386 4.00021 7.5 4.22407 7.5 4.50021V7.50021H4.5C4.22386 7.50021 4 7.72407 4 8.00021C4 8.27636 4.22386 8.50021 4.5 8.50021H7.5V11.5002C7.5 11.7764 7.72386 12.0002 8 12.0002C8.27614 12.0002 8.5 11.7764 8.5 11.5002V8.50021H11.5C11.7761 8.50021 12 8.27636 12 8.00021C12 7.72407 11.7761 7.50021 11.5 7.50021H8.5V4.50021Z"
2435+
Fill="{ThemeResource SystemFillColorSuccessBrush}" />
2436+
</Grid>
2437+
2438+
<VisualStateManager.VisualStateGroups>
2439+
<VisualStateGroup>
2440+
<VisualState x:Name="Normal" />
2441+
<VisualState x:Name="Disabled" />
2442+
<VisualState x:Name="Selected" />
2443+
</VisualStateGroup>
2444+
</VisualStateManager.VisualStateGroups>
2445+
</Viewbox>
2446+
</ControlTemplate>
2447+
</Setter.Value>
2448+
</Setter>
2449+
</Style>
2450+
2451+
<Style x:Key="ColorIconGitDeleted" TargetType="local:OpacityIcon">
2452+
<Setter Property="Template">
2453+
<Setter.Value>
2454+
<ControlTemplate>
2455+
<Viewbox Stretch="Fill">
2456+
<Grid Width="16" Height="16">
2457+
<Path
2458+
x:Name="Path1"
2459+
Data="M4 1C2.34315 1 1 2.34315 1 4V12C1 13.6569 2.34315 15 4 15H12C13.6569 15 15 13.6569 15 12V4C15 2.34315 13.6569 1 12 1H4ZM2 4C2 2.89543 2.89543 2 4 2H12C13.1046 2 14 2.89543 14 4V12C14 13.1046 13.1046 14 12 14H4C2.89543 14 2 13.1046 2 12V4ZM4.5 7.50021C4.22386 7.50021 4 7.72407 4 8.00021C4 8.27636 4.22386 8.50021 4.5 8.50021C10.3343 8.50021 5.66567 8.50021 11.5 8.50021C11.7761 8.50021 12 8.27636 12 8.00021C12 7.72407 11.7761 7.50021 11.5 7.50021C5.66567 7.50021 10.3343 7.50021 4.5 7.50021Z"
2460+
Fill="{ThemeResource SystemFillColorSuccessBrush}" />
2461+
</Grid>
2462+
2463+
<VisualStateManager.VisualStateGroups>
2464+
<VisualStateGroup>
2465+
<VisualState x:Name="Normal" />
2466+
<VisualState x:Name="Disabled" />
2467+
<VisualState x:Name="Selected" />
2468+
</VisualStateGroup>
2469+
</VisualStateManager.VisualStateGroups>
2470+
</Viewbox>
2471+
</ControlTemplate>
2472+
</Setter.Value>
2473+
</Setter>
2474+
</Style>
2475+
2476+
<Style x:Key="ColorIconGitModified" TargetType="local:OpacityIcon">
2477+
<Setter Property="Template">
2478+
<Setter.Value>
2479+
<ControlTemplate>
2480+
<Viewbox Stretch="Fill">
2481+
<Grid Width="16" Height="16">
2482+
<Path
2483+
x:Name="Path1"
2484+
Data="M13.5 1C13.7761 1 14 1.22386 14 1.5V9.5C14 9.77614 13.7761 10 13.5 10C13.2239 10 13 9.77614 13 9.5V1.5C13 1.22386 13.2239 1 13.5 1ZM4.14645 4.14645C4.34171 3.95118 4.65829 3.95118 4.85355 4.14645L10.8536 10.1464C11.0488 10.3417 11.0488 10.6583 10.8536 10.8536C10.6583 11.0488 10.3417 11.0488 10.1464 10.8536L4.14645 4.85355C3.95118 4.65829 3.95118 4.34171 4.14645 4.14645ZM1.5 13C1.22386 13 1 13.2239 1 13.5C1 13.7761 1.22386 14 1.5 14H9.5C9.77614 14 10 13.7761 10 13.5C10 13.2239 9.77614 13 9.5 13H1.5Z"
2485+
Fill="{ThemeResource SystemFillColorAttentionBrush}" />
2486+
</Grid>
2487+
2488+
<VisualStateManager.VisualStateGroups>
2489+
<VisualStateGroup>
2490+
<VisualState x:Name="Normal" />
2491+
<VisualState x:Name="Disabled" />
2492+
<VisualState x:Name="Selected" />
2493+
</VisualStateGroup>
2494+
</VisualStateManager.VisualStateGroups>
2495+
</Viewbox>
2496+
</ControlTemplate>
2497+
</Setter.Value>
2498+
</Setter>
2499+
</Style>
2500+
2501+
<Style x:Key="ColorIconGitUntracked" TargetType="local:OpacityIcon">
2502+
<Setter Property="Template">
2503+
<Setter.Value>
2504+
<ControlTemplate>
2505+
<Viewbox Stretch="Fill">
2506+
<Grid Width="16" Height="16">
2507+
<Path
2508+
x:Name="Path1"
2509+
Data="M10.1196 10.8267L14.1464 14.8536C14.3417 15.0488 14.6583 15.0488 14.8536 14.8536C15.0488 14.6583 15.0488 14.3417 14.8536 14.1464L1.85355 1.14645C1.65829 0.951184 1.34171 0.951184 1.14645 1.14645C0.951184 1.34171 0.951184 1.65829 1.14645 1.85355L4.37624 5.08334C3.90117 5.4183 3.5126 5.80026 3.19877 6.18295C2.75443 6.72477 2.46154 7.26493 2.27931 7.66977C2.18795 7.87274 2.12369 8.04329 2.08166 8.1653C2.06063 8.22636 2.03453 8.31047 2.03453 8.31047L2.01687 8.37186C2.01687 8.37186 1.94098 8.86907 2.37202 8.9833C2.63879 9.05404 2.91251 8.8948 2.98346 8.62815L2.98444 8.62471L2.99179 8.5997C2.9989 8.57616 3.01051 8.53927 3.02715 8.49095C3.06047 8.39421 3.11375 8.25227 3.19119 8.08023C3.34655 7.73507 3.59627 7.27523 3.97201 6.81706C4.26363 6.46146 4.63213 6.10494 5.09595 5.80306L6.67356 7.38067C5.9688 7.82277 5.50024 8.60667 5.50024 9.5C5.50024 10.8807 6.61953 12 8.00024 12C8.89358 12 9.67747 11.5314 10.1196 10.8267ZM9.3807 10.0878C9.15205 10.6241 8.62005 11 8.00024 11C7.17182 11 6.50024 10.3284 6.50024 9.5C6.50024 8.88019 6.87616 8.34819 7.41244 8.11955L9.3807 10.0878ZM6.31962 4.19853L7.174 5.05291C7.43366 5.01852 7.70875 5 8.00017 5C10.0445 5 11.2857 5.9115 12.0283 6.81706C12.4041 7.27523 12.6538 7.73507 12.8091 8.08023C12.8866 8.25227 12.9399 8.39421 12.9732 8.49095C12.9898 8.53927 13.0014 8.57616 13.0085 8.5997L13.0159 8.62471L13.0169 8.62815L13.0172 8.62937C13.0885 8.89555 13.3618 9.05397 13.6283 8.9833C13.8952 8.91253 14.0542 8.63878 13.9835 8.37186L13.9832 8.37069L13.9827 8.36916L13.9816 8.365L13.9781 8.35236C13.9752 8.34204 13.9711 8.328 13.9658 8.31047C13.9552 8.27541 13.9397 8.22636 13.9187 8.1653C13.8766 8.04329 13.8124 7.87274 13.721 7.66977C13.5388 7.26493 13.2459 6.72477 12.8016 6.18295C11.904 5.0885 10.3952 4 8.00017 4C7.38264 4 6.82403 4.07236 6.31962 4.19853Z"
2510+
Fill="{ThemeResource SystemFillColorCautionBrush}" />
2511+
</Grid>
2512+
2513+
<VisualStateManager.VisualStateGroups>
2514+
<VisualStateGroup>
2515+
<VisualState x:Name="Normal" />
2516+
<VisualState x:Name="Disabled" />
2517+
<VisualState x:Name="Selected" />
2518+
</VisualStateGroup>
2519+
</VisualStateManager.VisualStateGroups>
2520+
</Viewbox>
2521+
</ControlTemplate>
2522+
</Setter.Value>
2523+
</Setter>
2524+
</Style>
23502525
</ResourceDictionary>
23512526
</ResourceDictionary.MergedDictionaries>
23522527
</ResourceDictionary>

0 commit comments

Comments
 (0)