changed some text
This commit is contained in:
parent
deaede3bd5
commit
9d9c873fe4
33 changed files with 15 additions and 109 deletions
30
usr/share/parchlinux-kernel-manager/ui/SplashScreen.py
Normal file
30
usr/share/parchlinux-kernel-manager/ui/SplashScreen.py
Normal file
|
@ -0,0 +1,30 @@
|
|||
import gi
|
||||
import libs.functions as fn
|
||||
|
||||
gi.require_version("Gtk", "4.0")
|
||||
from gi.repository import Gtk, Gio
|
||||
|
||||
base_dir = fn.os.path.abspath(fn.os.path.join(fn.os.path.dirname(__file__), ".."))
|
||||
|
||||
|
||||
class SplashScreen(Gtk.Window):
|
||||
def __init__(self, app_name, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.set_decorated(False)
|
||||
self.set_resizable(False)
|
||||
self.set_default_size(600, 400)
|
||||
|
||||
self.set_modal(True)
|
||||
self.set_title(app_name)
|
||||
self.set_icon_name("archlinux-kernel-manager-tux")
|
||||
|
||||
tux_icon = Gtk.Picture.new_for_file(
|
||||
file=Gio.File.new_for_path(
|
||||
fn.os.path.join(base_dir, "images/600x400/akm-tux-splash.png")
|
||||
)
|
||||
)
|
||||
|
||||
tux_icon.set_content_fit(content_fit=Gtk.ContentFit.FILL)
|
||||
|
||||
self.set_child(child=tux_icon)
|
||||
self.present()
|
Loading…
Add table
Add a link
Reference in a new issue