Skip to content

Commit a804e30

Browse files
Merge pull request #22759 from unoplatform/copilot/add-scale-prop-for-unosplashscreen
feat: Add UnoSplashScreenScale MSBuild property to Uno.Sdk
2 parents 03bec1b + 2869ae9 commit a804e30

File tree

2 files changed

+29
-12
lines changed

2 files changed

+29
-12
lines changed

src/Uno.Sdk/Sdk/Sdk.props.buildschema.json

Lines changed: 28 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,22 @@
285285
"MicrosoftIdentityClientVersion": {
286286
"description": "Provides an explicit override for the version of Microsoft.Identity.Client to use.",
287287
"type": "nuget-version"
288+
},
289+
"UnoSplashScreenFile": {
290+
"description": "The path to the splash screen image file.",
291+
"type": "file"
292+
},
293+
"UnoSplashScreenBaseSize": {
294+
"description": "The base size of the splash screen image. e.g.: '300,300'.",
295+
"type": "string"
296+
},
297+
"UnoSplashScreenColor": {
298+
"description": "The background color of the splash screen.",
299+
"type": "color"
300+
},
301+
"UnoSplashScreenScale": {
302+
"description": "Used to scale the image that will be used as the SplashScreen.",
303+
"type": "float"
288304
}
289305
},
290306
"metadata": [
@@ -339,27 +355,27 @@
339355
"description": "The path to the image file used in the foreground for your icon."
340356
},
341357
"ForegroundScale": {
342-
"type": "int",
358+
"type": "float",
343359
"description": "The scale factor for the foreground image."
344360
},
345361
"AndroidForegroundScale": {
346-
"type": "int",
362+
"type": "float",
347363
"description": "The scale factor for the foreground image on Android."
348364
},
349365
"WasmForegroundScale": {
350-
"type": "int",
366+
"type": "float",
351367
"description": "The scale factor for the foreground image on WebAssembly."
352368
},
353369
"WindowsForegroundScale": {
354-
"type": "int",
370+
"type": "float",
355371
"description": "The scale factor for the foreground image on Windows."
356372
},
357373
"IOSForegroundScale": {
358-
"type": "int",
374+
"type": "float",
359375
"description": "The scale factor for the foreground image on iOS."
360376
},
361377
"SkiaForegroundScale": {
362-
"type": "int",
378+
"type": "float",
363379
"description": "The scale factor for the foreground image on Skia."
364380
}
365381
}
@@ -369,27 +385,27 @@
369385
"description": "Provides a splash screen asset for Uno.Resizetizer to use for the application.",
370386
"metadata": {
371387
"Scale": {
372-
"type": "int",
388+
"type": "float",
373389
"description": "Used to scale the image that will be used as SplashScreen. This property will be overridden by any platform-specific scale."
374390
},
375391
"AndroidScale": {
376-
"type": "int",
392+
"type": "float",
377393
"description": "Used to scale the image that will be used as SplashScreen on Android."
378394
},
379395
"IOSScale": {
380-
"type": "int",
396+
"type": "float",
381397
"description": "Used to scale the image that will be used as SplashScreen on iOS."
382398
},
383399
"WindowsScale": {
384-
"type": "int",
400+
"type": "float",
385401
"description": "Used to scale the image that will be used as SplashScreen on Windows."
386402
},
387403
"WasmScale": {
388-
"type": "int",
404+
"type": "float",
389405
"description": "Used to scale the image that will be used as SplashScreen on WebAssembly."
390406
},
391407
"SkiaScale": {
392-
"type": "int",
408+
"type": "float",
393409
"description": "Used to scale the image that will be used as SplashScreen on Skia."
394410
}
395411
}

src/Uno.Sdk/targets/Uno.DefaultItems.Resizetizer.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
<UnoSplashScreen Include="$(UnoSplashScreenFile)"
3232
BaseSize="$(UnoSplashScreenBaseSize)"
3333
Color="$(UnoSplashScreenColor)"
34+
Scale="$(UnoSplashScreenScale)"
3435
IsDefaultItem="true"
3536
Exclude="@(UnoSplashScreen)"
3637
Condition="Exists('$(UnoSplashScreenFile)')" />

0 commit comments

Comments
 (0)