from odoo.addons.web.controllers.webmanifest import WebManifest


class XenoWebManifest(WebManifest):

    def _get_webmanifest(self):
        manifest = super()._get_webmanifest()
        manifest['background_color'] = '#1a1a1a'
        manifest['theme_color'] = '#1a1a1a'
        manifest['icons'] = [{
            'src': '/xeno_theme_slate/static/img/icon-%s.png' % size,
            'sizes': '%sx%s' % (size, size),
            'type': 'image/png',
        } for size in (192, 512)]
        return manifest
