mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 07:20:39 +00:00
added screenshots config json
This commit is contained in:
parent
e91da61238
commit
d7a42fd73f
2 changed files with 39 additions and 4 deletions
29
screenshots/assets/content/screenshot_titles_en.json
Normal file
29
screenshots/assets/content/screenshot_titles_en.json
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"screenshots": [
|
||||
{
|
||||
"screenshotName": "light-metering_reflected",
|
||||
"title": "Quick & easy to use",
|
||||
"subtitle": "with all the necessary controls\nunder your thumb"
|
||||
},
|
||||
{
|
||||
"screenshotName": "light-metering_iso_picker",
|
||||
"title": "Lots of ISO values",
|
||||
"subtitle": "From 3 and up to 6400"
|
||||
},
|
||||
{
|
||||
"screenshotName": "light-settings",
|
||||
"title": "Useful settings",
|
||||
"subtitle": "to get the most accurate\nmetering results"
|
||||
},
|
||||
{
|
||||
"screenshotName": "light-equipment_profiles",
|
||||
"title": "Create multiple profiles",
|
||||
"subtitle": "to match your\ncamera & lens setups"
|
||||
},
|
||||
{
|
||||
"screenshotName": "dark-metering_reflected",
|
||||
"title": "Matches your style",
|
||||
"subtitle": "with various theme types and color"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -1,15 +1,21 @@
|
|||
import 'dart:convert';
|
||||
|
||||
class ScreenshotConfig {
|
||||
final String title;
|
||||
final String subtitle;
|
||||
final String screenshotPath;
|
||||
final String screenshotName;
|
||||
|
||||
const ScreenshotConfig({
|
||||
required this.title,
|
||||
required this.subtitle,
|
||||
required this.screenshotPath,
|
||||
required this.screenshotName,
|
||||
});
|
||||
|
||||
factory ScreenshotConfig.fromJson(Map<String, dynamic> data) {
|
||||
return ScreenshotConfig(
|
||||
title: data['title'] as String,
|
||||
subtitle: data['subtitle'] as String,
|
||||
screenshotName: data['screenshotName'] as String,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
enum ScreenshotLayout {
|
||||
|
|
Loading…
Reference in a new issue