From 89a653265c435e0359c7df12cec1b2fb229b47b5 Mon Sep 17 00:00:00 2001 From: "olivier.aboilard" Date: Sat, 18 Nov 2017 16:32:08 +0100 Subject: [PATCH] Added and cabled windows definition files --- README.md | 3 + index.js | 3 + platforms/icons/windows.js | 145 ++++++++++++++++++++++++++++++++++++ platforms/splash/windows.js | 83 +++++++++++++++++++++ 4 files changed, 234 insertions(+) create mode 100644 platforms/icons/windows.js create mode 100644 platforms/splash/windows.js diff --git a/README.md b/README.md index 2250cb2..02134c1 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ Supported platforms: - **Android** - icons - splash +- **Windows** + - icons + - splash - **Blackberry 10** - icons diff --git a/index.js b/index.js index 24d5206..3ab4776 100644 --- a/index.js +++ b/index.js @@ -200,6 +200,9 @@ function generate(imageObj, settings) { // ios require('./platforms/icons/ios'), require('./platforms/splash/ios'), + // windows + require('./platforms/icons/windows'), + require('./platforms/splash/windows'), // blackberry10 require('./platforms/icons/blackberry10'), ]; diff --git a/platforms/icons/windows.js b/platforms/icons/windows.js new file mode 100644 index 0000000..f51279b --- /dev/null +++ b/platforms/icons/windows.js @@ -0,0 +1,145 @@ +module.exports = { + // https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/app-assets + platform: 'windows', + type: 'icon', + path: 'windows/icon/', + definitions: [ + // Small tile (Square71x71Logo) + { + name: 'Square71x71Logo.scale-100.png', + size: 71, + comment: 'Square71x71Logo.scale-100.png 100% scale' + }, { + name: 'Square71x71Logo.scale-125.png', + size: 89, + comment: 'Square71x71Logo.scale-125.png 125% scale' + }, { + name: 'Square71x71Logo.scale-150.png', + size: 107, + comment: 'Square71x71Logo.scale-150.png 150% scale' + }, { + name: 'Square71x71Logo.scale-200.png', + size: 142, + comment: 'Square71x71Logo.scale-200.png 200% scale' + }, { + name: 'Square71x71Logo.scale-400.png', + size: 284, + comment: 'Square71x71Logo.scale-400.png 400% scale' + }, + // Medium tile (Square150x150Logo) + { + name: 'Square150x150Logo.scale-100.png', + size: 150, + comment: 'Square150x150Logo.scale-100.png 100% scale' + }, { + name: 'Square150x150Logo.scale-125.png', + size: 188, + comment: 'Square150x150Logo.scale-125.png 125% scale' + }, { + name: 'Square150x150Logo.scale-150.png', + size: 225, + comment: 'Square150x150Logo.scale-150.png 150% scale' + }, { + name: 'Square150x150Logo.scale-200.png', + size: 300, + comment: 'Square150x150Logo.scale-200.png 200% scale' + }, { + name: 'Square150x150Logo.scale-400.png', + size: 600, + comment: 'Square150x150Logo.scale-400.png 400% scale' + }, + // App list icon (Square44x44Logo) + { + name: 'Square44x44Logo.scale-100.png', + size: 44, + comment: 'Square44x44Logo.scale-100.png 100% scale' + }, { + name: 'Square44x44Logo.scale-125.png', + size: 55, + comment: 'Square44x44Logo.scale-125.png 125% scale' + }, { + name: 'Square44x44Logo.scale-150.png', + size: 66, + comment: 'Square44x44Logo.scale-150.png 150% scale' + }, { + name: 'Square44x44Logo.scale-200.png', + size: 88, + comment: 'Square44x44Logo.scale-200.png 200% scale' + }, { + name: 'Square44x44Logo.scale-400.png', + size: 176, + comment: 'Square44x44Logo.scale-400.png 400% scale' + }, + // Target-based assets + { + name: 'Square44x44Logo.targetsize-16.png', + size: 16, + comment: 'Square44x44Logo.targetsize-16' + }, + { + name: 'Square44x44Logo.targetsize-24.png', + size: 24, + comment: 'Square44x44Logo.targetsize-24' + }, + { + name: 'Square44x44Logo.targetsize-32.png', + size: 32, + comment: 'Square44x44Logo.targetsize-32' + }, + { + name: 'Square44x44Logo.targetsize-48.png', + size: 48, + comment: 'Square44x44Logo.targetsize-48' + }, + { + name: 'Square44x44Logo.targetsize-256.png', + size: 256, + comment: 'Square44x44Logo.targetsize-256' + }, + { + name: 'Square44x44Logo.targetsize-20.png', + size: 20, + comment: 'Square44x44Logo.targetsize-20' + }, + { + name: 'Square44x44Logo.targetsize-30.png', + size: 30, + comment: 'Square44x44Logo.targetsize-30' + }, + { + name: 'Square44x44Logo.targetsize-36.png', + size: 36, + comment: 'Square44x44Logo.targetsize-36' + }, + { + name: 'Square44x44Logo.targetsize-40.png', + size: 40, + comment: 'Square44x44Logo.targetsize-40' + }, + { + name: 'Square44x44Logo.targetsize-60.png', + size: 60, + comment: 'Square44x44Logo.targetsize-60' + }, + { + name: 'Square44x44Logo.targetsize-64.png', + size: 64, + comment: 'Square44x44Logo.targetsize-64' + }, + { + name: 'Square44x44Logo.targetsize-72.png', + size: 72, + comment: 'Square44x44Logo.targetsize-72' + }, + { + name: 'Square44x44Logo.targetsize-80.png', + size: 80, + comment: 'Square44x44Logo.targetsize-80' + }, + { + name: 'Square44x44Logo.targetsize-96.png', + size: 96, + comment: 'Square44x44Logo.targetsize-96' + } + ] +}; \ No newline at end of file diff --git a/platforms/splash/windows.js b/platforms/splash/windows.js new file mode 100644 index 0000000..4012fab --- /dev/null +++ b/platforms/splash/windows.js @@ -0,0 +1,83 @@ +module.exports = { + // https://docs.microsoft.com/en-us/windows/uwp/design/shell/tiles-and-notifications/app-assets + platform: 'windows', + type: 'splash', + path: 'windows/splash/', + definitions: [ + // Wide tile (Wide310x150Logo) + + // 100% scale 310x150 Wide310x150Logo.scale-100.png + { + name: "Wide310x150Logo.scale-100.png", + width: 310, + height: 150, + comment: "Wide310x150Logo 100% scale" + }, + // 125% scale 388x188 Wide310x150Logo.scale-125.png + { + name: "Wide310x150Logo.scale-125.png", + width: 388, + height: 188, + comment: "Wide310x150Logo 125% scale" + }, + // 150% scale 465x225 Wide310x150Logo.scale-150.png + { + name: "Wide310x150Logo.scale-150.png", + width: 465, + height: 225, + comment: "Wide310x150Logo 150% scale" + }, + // 200% scale 620x300 Wide310x150Logo.scale-200.png + { + name: "Wide310x150Logo.scale-200.png", + width: 620, + height: 300, + comment: "Wide310x150Logo 200% scale" + }, + // 400% scale 1240x600 Wide310x150Logo.scale-400.png + { + name: "Wide310x150Logo.scale-400.png", + width: 1240, + height: 600, + comment: "Wide310x150Logo 400% scale" + }, + + // Splash screen (SplashScreen) + + // 100% scale 620x300 SplashScreen.scale-100.png + { + name: "SplashScreen.scale-100.png", + width: 620, + height: 300, + comment: "Splash screen 100% scale" + }, + // 125% scale 775x375 SplashScreen.scale-125.png + { + name: "SplashScreen.scale-125.png", + width: 775, + height: 375, + comment: "Splash screen 125% scale" + }, + // 150% scale 930x450 SplashScreen.scale-150.png + { + name: "SplashScreen.scale-150.png", + width: 930, + height: 450, + comment: "Splash screen 150% scale" + }, + // 200% scale 1240x600 SplashScreen.scale-200.png + { + name: "SplashScreen.scale-200.png", + width: 1240, + height: 600, + comment: "Splash screen 200% scale" + }, + // 400% scale 2480x1200 SplashScreen.scale-400.png + { + name: "SplashScreen.scale-400.png", + width: 2480, + height: 1200, + comment: "Splash screen 400% scale" + } + ] +}; \ No newline at end of file