m3_lightmeter/screenshots/models/screenshot_layout.dart

30 lines
1.1 KiB
Dart
Raw Normal View History

2024-05-11 14:07:03 +00:00
enum ScreenshotLayout {
iphone65inch(
size: (width: 1242, height: 2688),
contentPadding: (left: 150, top: 192, right: 150, bottom: 192),
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),
contentPadding: (left: 150, top: 192, right: 150, bottom: 192),
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
});
}