# SPDX-License-Identifier: GPL-3.0-only
from __future__ import annotations

from gi.repository import Gtk
from gi.repository.GdkPixbuf import Pixbuf


@Gtk.Template(resource_path="/org/gnome/PasswordSafe/welcome_page.ui")
class WelcomePage(Gtk.Box):
    __gtype_name__ = "WelcomePage"

    _app_logo = Gtk.Template.Child()

    def __init__(self):
        """Welcome Page widget"""
        super().__init__()

        pix = Pixbuf.new_from_resource_at_scale(
            "/org/gnome/PasswordSafe/images/welcome.png", 256, 256, True)
        self._app_logo.set_from_pixbuf(pix)
