mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-11-07 04:51:42 +00:00
18 lines
428 B
Python
18 lines
428 B
Python
|
|
||
|
from gi.repository import Gtk, Gdk, Adw
|
||
|
|
||
|
from .constants import rootdir
|
||
|
|
||
|
|
||
|
@Gtk.Template(resource_path=f"{rootdir}/ui/plugin_row.ui")
|
||
|
class AdwcustomizerPluginRow(Adw.ActionRow):
|
||
|
__gtype_name__ = "AdwcustomizerPluginRow"
|
||
|
|
||
|
def __init__(self, name, repo, **kwargs):
|
||
|
super().__init__(**kwargs)
|
||
|
|
||
|
self.name = name
|
||
|
self.set_name(name)
|
||
|
self.set_title(name)
|
||
|
self.set_subtitle("@" + repo)
|