mirror of
https://github.com/lutris/lutris
synced 2024-09-04 23:13:35 +00:00
Add description label to sources
This commit is contained in:
parent
4f1706c3bb
commit
89bd6c6138
|
@ -49,9 +49,17 @@ class ServicesBox(BaseConfigBox):
|
|||
scale_factor=self.get_scale_factor(),
|
||||
visible=True)
|
||||
box.pack_start(icon, False, False, 0)
|
||||
label = Gtk.Label(service.name, visible=True)
|
||||
service_label_box = Gtk.VBox(visible=True)
|
||||
label = Gtk.Label(visible=True)
|
||||
label.set_markup(f"<b>{service.name}</b>")
|
||||
label.set_alignment(0, 0.5)
|
||||
box.pack_start(label, True, True, 0)
|
||||
service_label_box.pack_start(label, False, False, 0)
|
||||
|
||||
desc_label = Gtk.Label(visible=True)
|
||||
desc_label.set_alignment(0, 0.5)
|
||||
desc_label.set_text(service.description)
|
||||
service_label_box.pack_start(desc_label, False, False, 0)
|
||||
box.pack_start(service_label_box, True, True, 0)
|
||||
|
||||
checkbox = Gtk.Switch(visible=True)
|
||||
if settings.read_setting(service_key,
|
||||
|
|
|
@ -77,6 +77,7 @@ class BaseService(GObject.Object):
|
|||
_matcher = None
|
||||
has_extras = False
|
||||
name = NotImplemented
|
||||
description = ""
|
||||
icon = NotImplemented
|
||||
online = False
|
||||
local = False
|
||||
|
|
|
@ -127,6 +127,7 @@ class OriginService(OnlineService):
|
|||
|
||||
id = "origin"
|
||||
name = _("Origin")
|
||||
description = _("Deprecated, use EA App")
|
||||
icon = "origin"
|
||||
client_installer = "origin"
|
||||
runner = "wine"
|
||||
|
|
|
@ -23,6 +23,7 @@ class SteamWindowsGame(SteamGame):
|
|||
class SteamWindowsService(SteamService):
|
||||
id = "steamwindows"
|
||||
name = _("Steam for Windows")
|
||||
description = _("Use only for the rare games or mods requiring the Windows version of Steam")
|
||||
runner = "wine"
|
||||
game_class = SteamWindowsGame
|
||||
client_installer = "steam-wine"
|
||||
|
|
Loading…
Reference in a new issue