Files
installer/iridium_installer/ui/pages/welcome.py

37 lines
975 B
Python

import gi
gi.require_version("Gtk", "4.0")
gi.require_version("Adw", "1")
from gi.repository import Adw, Gtk
class WelcomePage(Adw.Bin):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
page = Adw.StatusPage()
page.set_title("Welcome to Iridium OS")
page.set_description("The installation will begin shortly")
page.set_icon_name("system-software-install-symbolic")
# Content Box
box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
box.set_spacing(12)
box.set_halign(Gtk.Align.CENTER)
lbl = Gtk.Label(label="Select your language:")
lbl.add_css_class("heading")
box.append(lbl)
# Language Dropdown
languages = [
"English",
]
dropdown = Gtk.DropDown.new_from_strings(languages)
dropdown.set_margin_bottom(20)
box.append(dropdown)
page.set_child(box)
self.set_child(page)