look into vendor/shopware/platform/src/Storefront/Resources/theme.json for up-to-date syntax:
"sw-logo-desktop": {
"label": {
"en-GB": "Desktop",
"de-DE": "Desktop"
},
"helpText": {
"en-GB": "Displayed for viewports of above 991px",
"de-DE": "Wird über einem Viewport von 991px angezeigt"
},
"type": "media",
"value": "app/storefront/dist/assets/logo/demostore-logo.png",
"editable": true,
"block": "media",
"order": 100
},
"sw-logo-tablet": {
"label": {
"en-GB": "Tablet",
"de-DE": "Tablet"
},
"helpText": {
"en-GB": "Displayed between a viewport of 767px to 991px",
"de-DE": "Wird zwischen einem viewport von 767px bis 991px angezeigt"
},
"type": "media",
"value": "app/storefront/dist/assets/logo/demostore-logo.png",
"editable": true,
"block": "media",
"order": 200
},
"sw-logo-mobile": {
"label": {
"en-GB": "Mobile",
"de-DE": "Mobil"
},
"helpText": {
"en-GB": "Displayed up to a viewport of 767px",
"de-DE": "Wird bis zu einem Viewport von 767px angezeigt"
},
"type": "media",
"value": "app/storefront/dist/assets/logo/demostore-logo.png",
"editable": true,
"block": "media",
"order": 300
},
Then, when you make changes in this theme.json config, it will only notice changes (as far as I noticed) when you deaktivate the theme plugin and acivate it then again.
Eh, yes also, when you generate a theme plugin with bin/console theme:generate default for asset in config is the „src“ folder not dist… so in my theme.json its the same as obove but /src/ insted of /dist/ in all places… and the actual files are also in /src/assets
"asset": [
"app/storefront/src/assets"
],
...
"sw-logo-desktop": {
"label": {
"en-GB": "Desktop",
"de-DE": "Desktop"
},
"helpText": {
"en-GB": "Displayed for viewports of above 991px",
"de-DE": "Wird über einem Viewport von 991px angezeigt"
},
"type": "media",
"value": "app/storefront/src/assets/logo/myprojectname-logo.png",
"editable": true,
"block": "media",
"order": 100
}