mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-23 16:00:41 +00:00
f62f658be8
* added system overlays for iPhone 8 Plus & iPhone 13 Pro * add device frame (wip) * scale device frame (wip) * add text to screenshots (wip) * added screenshots config json * reorganized screenshot models * cleanup * added fonts for dark screenshots * typo * store raw screenshots * added standalone script to update screenshots * wip * refined screenshots naming * skip metering layout dialog screenshot * parse ipad name * added assets for Pixel 6 * typo * added text for incident light metering * reorganized store script * typo * wip * synced outlined icons * added timer screen to screenshot generator * constrained timer screen timeline for tablets * added timer screenshot title * typo * revised scripts * track release screenshots * Update README.md * iphone 6.5" -> iphone 6.7" * Update google_play_resources.md * softened screenshot font colors * cleanup
35 lines
1.3 KiB
Dart
35 lines
1.3 KiB
Dart
enum ScreenshotLayout {
|
|
android(
|
|
size: (width: 1440, height: 2560),
|
|
contentPadding: (left: 144, top: 132, right: 144, bottom: 132),
|
|
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
|
|
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
|
|
),
|
|
iphone65inch(
|
|
size: (width: 1290, height: 2796),
|
|
contentPadding: (left: 144, top: 184, right: 144, bottom: 184),
|
|
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
|
|
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
|
|
),
|
|
iphone55inch(
|
|
size: (width: 1242, height: 2208),
|
|
contentPadding: (left: 144, top: 144, right: 144, bottom: 144),
|
|
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
|
|
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
|
|
);
|
|
|
|
final ({int height, int width}) size;
|
|
final ({int left, int top, int right, int bottom}) contentPadding;
|
|
final String titleFontPath;
|
|
final String subtitleFontPath;
|
|
|
|
String get titleFontDarkPath => '${titleFontPath.split('.').first}-dark.zip';
|
|
String get subtitleFontDarkPath => '${subtitleFontPath.split('.').first}-dark.zip';
|
|
|
|
const ScreenshotLayout({
|
|
required this.size,
|
|
required this.contentPadding,
|
|
required this.titleFontPath,
|
|
required this.subtitleFontPath,
|
|
});
|
|
}
|