Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Added and cabled windows definition files
Browse files Browse the repository at this point in the history
  • Loading branch information
olivab committed Nov 18, 2017
1 parent 62f0b88 commit 89a6532
Show file tree
Hide file tree
Showing 4 changed files with 234 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ Supported platforms:
- **Android**
- icons
- splash
- **Windows**
- icons
- splash
- **Blackberry 10**
- icons

Expand Down
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
];
Expand Down
145 changes: 145 additions & 0 deletions platforms/icons/windows.js
Original file line number Diff line number Diff line change
@@ -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'
}
]
};
83 changes: 83 additions & 0 deletions platforms/splash/windows.js
Original file line number Diff line number Diff line change
@@ -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"
}
]
};

0 comments on commit 89a6532

Please sign in to comment.