Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4427abb

Browse files
committedFeb 10, 2025
Add vcpkg, improve layout for Widgets panel
1 parent 138f49c commit 4427abb

9 files changed

+85
-50
lines changed
 
33.8 KB
Loading
22.1 KB
Loading

‎src/Package/Images/vcpkg_color.png

4.6 KB
Loading

‎src/Package/Package.appxmanifest

+29
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,35 @@
363363
</ThemeResources>
364364
</Definition>
365365

366+
<Definition Id="updates_vcpkg"
367+
DisplayName="vckpg updates"
368+
Description="vckpg packages that can be updated"
369+
AllowMultiple="true">
370+
<Capabilities>
371+
<Capability>
372+
<Size Name="medium" />
373+
</Capability>
374+
<Capability>
375+
<Size Name="large" />
376+
</Capability>
377+
</Capabilities>
378+
<ThemeResources>
379+
<Icons>
380+
<Icon Path="Images\vcpkg_color.png" />
381+
</Icons>
382+
<DarkMode>
383+
<Screenshots>
384+
<Screenshot Path="Images\WidgetCovers\vcpkg_dark.png" />
385+
</Screenshots>
386+
</DarkMode>
387+
<LightMode>
388+
<Screenshots>
389+
<Screenshot Path="Images\WidgetCovers\vcpkg_light.png" />
390+
</Screenshots>
391+
</LightMode>
392+
</ThemeResources>
393+
</Definition>
394+
366395

367396
</Definitions>
368397
</WidgetProvider>

‎src/Package/Widgets-for-UniGetUI Package.wapproj

+48-45
Original file line numberDiff line numberDiff line change
@@ -46,70 +46,70 @@
4646
</AppxManifest>
4747
</ItemGroup>
4848
<ItemGroup>
49-
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-16.png" >
49+
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-16.png">
5050
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5151
</Content>
52-
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-24.png" >
52+
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-24.png">
5353
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5454
</Content>
55-
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-256.png" >
55+
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-256.png">
5656
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
5757
</Content>
58-
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-32.png" >
58+
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-32.png">
5959
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6060
</Content>
61-
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-48.png" >
61+
<Content Include="Images\AppIcon.altform-lightunplated_targetsize-48.png">
6262
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6363
</Content>
64-
<Content Include="Images\AppIcon.altform-unplated_targetsize-16.png" >
64+
<Content Include="Images\AppIcon.altform-unplated_targetsize-16.png">
6565
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6666
</Content>
67-
<Content Include="Images\AppIcon.altform-unplated_targetsize-24.png" >
67+
<Content Include="Images\AppIcon.altform-unplated_targetsize-24.png">
6868
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
6969
</Content>
70-
<Content Include="Images\AppIcon.altform-unplated_targetsize-256.png" >
70+
<Content Include="Images\AppIcon.altform-unplated_targetsize-256.png">
7171
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7272
</Content>
73-
<Content Include="Images\AppIcon.altform-unplated_targetsize-32.png" >
73+
<Content Include="Images\AppIcon.altform-unplated_targetsize-32.png">
7474
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7575
</Content>
76-
<Content Include="Images\AppIcon.altform-unplated_targetsize-48.png" >
76+
<Content Include="Images\AppIcon.altform-unplated_targetsize-48.png">
7777
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7878
</Content>
79-
<Content Include="Images\AppIcon.png" >
79+
<Content Include="Images\AppIcon.png">
8080
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8181
</Content>
82-
<Content Include="Images\AppIcon.scale-100.png" >
82+
<Content Include="Images\AppIcon.scale-100.png">
8383
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8484
</Content>
85-
<Content Include="Images\AppIcon.scale-125.png" >
85+
<Content Include="Images\AppIcon.scale-125.png">
8686
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8787
</Content>
88-
<Content Include="Images\AppIcon.scale-150.png" >
88+
<Content Include="Images\AppIcon.scale-150.png">
8989
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
9090
</Content>
91-
<Content Include="Images\AppIcon.scale-200.png" >
91+
<Content Include="Images\AppIcon.scale-200.png">
9292
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
9393
</Content>
94-
<Content Include="Images\AppIcon.scale-400.png" >
94+
<Content Include="Images\AppIcon.scale-400.png">
9595
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
9696
</Content>
97-
<Content Include="Images\AppIcon.targetsize-16.png" >
97+
<Content Include="Images\AppIcon.targetsize-16.png">
9898
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
9999
</Content>
100-
<Content Include="Images\AppIcon.targetsize-24.png" >
100+
<Content Include="Images\AppIcon.targetsize-24.png">
101101
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
102102
</Content>
103-
<Content Include="Images\AppIcon.targetsize-256.png" >
103+
<Content Include="Images\AppIcon.targetsize-256.png">
104104
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
105105
</Content>
106-
<Content Include="Images\AppIcon.targetsize-32.png" >
106+
<Content Include="Images\AppIcon.targetsize-32.png">
107107
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
108108
</Content>
109-
<Content Include="Images\AppIcon.targetsize-48.png" >
110-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
111-
</Content>
112-
<Content Include="Images\BadgeLogo.scale-100.png">
109+
<Content Include="Images\AppIcon.targetsize-48.png">
110+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
111+
</Content>
112+
<Content Include="Images\BadgeLogo.scale-100.png">
113113
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
114114
</Content>
115115
<Content Include="Images\BadgeLogo.scale-125.png">
@@ -124,7 +124,7 @@
124124
<Content Include="Images\BadgeLogo.scale-400.png">
125125
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
126126
</Content>
127-
<Content Include="Images\cargo_color.png" >
127+
<Content Include="Images\cargo_color.png">
128128
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
129129
</Content>
130130
<Content Include="Images\choco_color.png">
@@ -208,22 +208,22 @@
208208
<Content Include="Images\LargeTile.scale-400.png">
209209
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
210210
</Content>
211-
<Content Include="Images\MediumTile.png" >
211+
<Content Include="Images\MediumTile.png">
212212
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
213213
</Content>
214-
<Content Include="Images\MediumTile.scale-100.png" >
214+
<Content Include="Images\MediumTile.scale-100.png">
215215
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
216216
</Content>
217-
<Content Include="Images\MediumTile.scale-125.png" >
217+
<Content Include="Images\MediumTile.scale-125.png">
218218
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
219219
</Content>
220-
<Content Include="Images\MediumTile.scale-150.png" >
220+
<Content Include="Images\MediumTile.scale-150.png">
221221
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
222222
</Content>
223-
<Content Include="Images\MediumTile.scale-200.png" >
223+
<Content Include="Images\MediumTile.scale-200.png">
224224
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
225225
</Content>
226-
<Content Include="Images\MediumTile.scale-400.png" >
226+
<Content Include="Images\MediumTile.scale-400.png">
227227
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
228228
</Content>
229229
<Content Include="Images\node_color.png">
@@ -232,7 +232,7 @@
232232
<Content Include="Images\pip_color.png">
233233
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
234234
</Content>
235-
<Content Include="Images\powershell7_color.png" >
235+
<Content Include="Images\powershell7_color.png">
236236
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
237237
</Content>
238238
<Content Include="Images\powershell_color.png">
@@ -256,22 +256,22 @@
256256
<Content Include="Images\SmallTile.scale-400.png">
257257
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
258258
</Content>
259-
<Content Include="Images\SplashScreen.png" >
259+
<Content Include="Images\SplashScreen.png">
260260
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
261261
</Content>
262-
<Content Include="Images\SplashScreen.scale-100.png" >
262+
<Content Include="Images\SplashScreen.scale-100.png">
263263
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
264264
</Content>
265-
<Content Include="Images\SplashScreen.scale-125.png" >
265+
<Content Include="Images\SplashScreen.scale-125.png">
266266
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
267267
</Content>
268-
<Content Include="Images\SplashScreen.scale-150.png" >
268+
<Content Include="Images\SplashScreen.scale-150.png">
269269
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
270270
</Content>
271-
<Content Include="Images\SplashScreen.scale-200.png" >
271+
<Content Include="Images\SplashScreen.scale-200.png">
272272
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
273273
</Content>
274-
<Content Include="Images\SplashScreen.scale-400.png" >
274+
<Content Include="Images\SplashScreen.scale-400.png">
275275
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
276276
</Content>
277277
<Content Include="Images\StoreLogo.scale-100.png">
@@ -289,22 +289,23 @@
289289
<Content Include="Images\StoreLogo.scale-400.png">
290290
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
291291
</Content>
292-
<Content Include="Images\WideTile.png" >
292+
<Content Include="Images\vcpkg_color.png" />
293+
<Content Include="Images\WideTile.png">
293294
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
294295
</Content>
295-
<Content Include="Images\WideTile.scale-100.png" >
296+
<Content Include="Images\WideTile.scale-100.png">
296297
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
297298
</Content>
298-
<Content Include="Images\WideTile.scale-125.png" >
299+
<Content Include="Images\WideTile.scale-125.png">
299300
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
300301
</Content>
301-
<Content Include="Images\WideTile.scale-150.png" >
302+
<Content Include="Images\WideTile.scale-150.png">
302303
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
303304
</Content>
304-
<Content Include="Images\WideTile.scale-200.png" >
305+
<Content Include="Images\WideTile.scale-200.png">
305306
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
306307
</Content>
307-
<Content Include="Images\WideTile.scale-400.png" >
308+
<Content Include="Images\WideTile.scale-400.png">
308309
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
309310
</Content>
310311
<Content Include="Images\WidgetCovers\all_dark.png">
@@ -319,7 +320,7 @@
319320
<Content Include="Images\WidgetCovers\cargo_light.png">
320321
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
321322
</Content>
322-
<Content Include="Images\WidgetCovers\choco_dark.png" >
323+
<Content Include="Images\WidgetCovers\choco_dark.png">
323324
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
324325
</Content>
325326
<Content Include="Images\WidgetCovers\choco_light.png">
@@ -361,6 +362,8 @@
361362
<Content Include="Images\WidgetCovers\scoop_light.png">
362363
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
363364
</Content>
365+
<Content Include="Images\WidgetCovers\vcpkg_dark.png" />
366+
<Content Include="Images\WidgetCovers\vcpkg_light.png" />
364367
<Content Include="Images\WidgetCovers\winget_dark.png">
365368
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
366369
</Content>

‎src/Widgets/Templates/Enums.cs

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class Widgets
2424
public const string PowerShell5 = "updates_powershell";
2525
public const string PowerShell7 = "updates_powershell7";
2626
public const string Cargo = "updates_cargo";
27+
public const string Vcpkg = "updates_vcpkg";
2728
}
2829

2930
}

‎src/Widgets/Templates/Template_UpdatesList.cs

+5-4
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ public static int GetMaxPackageCount(WidgetSize size)
1515
{
1616
return size switch
1717
{
18-
WidgetSize.Medium => 4,
19-
WidgetSize.Large => 8,
18+
WidgetSize.Medium => 3,
19+
WidgetSize.Large => 7,
2020
_ => 1
2121
};
2222
}
@@ -58,7 +58,8 @@ protected override string GenerateTemplateBody()
5858
"wrap": true,
5959
"weight": "Bolder",
6060
"size": "Default",
61-
"spacing": "None"
61+
"horizontalAlignment": "Center",
62+
"spacing": "Large"
6263
},
6364
{
6465
"type": "Container",
@@ -92,7 +93,7 @@ protected override string GenerateTemplateBody()
9293
}
9394
],
9495
"height": "stretch",
95-
"spacing": "None",
96+
"spacing": "Medium",
9697
"verticalContentAlignment": "Top"
9798
},
9899
{

‎src/Widgets/Widgets-for-UniGetUI.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<OutputType>WinExe</OutputType>
4+
<OutputType>Exe</OutputType>
55
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
66
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
77
<TargetMinVersion>10.0.19041.0</TargetMinVersion>

‎src/Widgets/WingetUIConnector.cs

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ internal class WingetUIConnector
3333
{Widgets.PowerShell5, "PowerShell"},
3434
{Widgets.PowerShell7, "PowerShell7"},
3535
{Widgets.Cargo, "Cargo"},
36+
{Widgets.Vcpkg, "vcpkg"}
3637
};
3738

3839
public WingetUIConnector()

0 commit comments

Comments
 (0)
Please sign in to comment.