m3_lightmeter/screenshots/models/screenshot_layout.dart

36 lines
1.3 KiB
Dart
Raw Normal View History

2024-05-11 14:07:03 +00:00
enum ScreenshotLayout {
2024-05-16 17:20:41 +00:00
android(
size: (width: 1440, height: 2560),
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',
),
2024-05-11 14:07:03 +00:00
iphone65inch(
size: (width: 1242, height: 2688),
2024-05-14 14:15:19 +00:00
contentPadding: (left: 144, top: 184, right: 144, bottom: 184),
2024-05-11 15:02:25 +00:00
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
2024-05-11 14:07:03 +00:00
),
iphone55inch(
size: (width: 1242, height: 2208),
2024-05-14 14:15:19 +00:00
contentPadding: (left: 144, top: 144, right: 144, bottom: 144),
2024-05-11 15:02:25 +00:00
titleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Bold.zip',
subtitleFontPath: 'screenshots/assets/fonts/SF-Pro-Display-Regular.zip',
2024-05-11 14:07:03 +00:00
);
final ({int height, int width}) size;
final ({int left, int top, int right, int bottom}) contentPadding;
2024-05-11 15:02:25 +00:00
final String titleFontPath;
final String subtitleFontPath;
2024-05-11 14:07:03 +00:00
2024-05-14 12:52:58 +00:00
String get titleFontDarkPath => '${titleFontPath.split('.').first}-dark.zip';
String get subtitleFontDarkPath => '${subtitleFontPath.split('.').first}-dark.zip';
2024-05-11 14:07:03 +00:00
const ScreenshotLayout({
required this.size,
required this.contentPadding,
2024-05-11 15:02:25 +00:00
required this.titleFontPath,
required this.subtitleFontPath,
2024-05-11 14:07:03 +00:00
});
}