Add description label to sources

This commit is contained in:
Mathieu Comandon 2023-10-16 05:23:20 -07:00
parent 4f1706c3bb
commit 89bd6c6138
4 changed files with 13 additions and 2 deletions

View file

@ -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,

View file

@ -77,6 +77,7 @@ class BaseService(GObject.Object):
_matcher = None
has_extras = False
name = NotImplemented
description = ""
icon = NotImplemented
online = False
local = False

View file

@ -127,6 +127,7 @@ class OriginService(OnlineService):
id = "origin"
name = _("Origin")
description = _("Deprecated, use EA App")
icon = "origin"
client_installer = "origin"
runner = "wine"

View file

@ -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"