Added icons to Sources sidebar

This commit is contained in:
kramo
2023-07-13 14:40:41 +02:00
parent 8f4e4e619a
commit 33e847ef94
11 changed files with 36 additions and 6 deletions

View File

@@ -188,6 +188,12 @@ class CartridgesApplication(Adw.Application):
debug_info=debug_str,
debug_info_filename="cartridges.log",
)
about.add_legal_section(
"Steam Branding",
"© 2023 Valve Corporation",
Gtk.License.CUSTOM,
"Steam and the Steam logo are trademarks and/or registered trademarks of Valve Corporation in the U.S. and/or other countries.", # pylint: disable=line-too-long
)
about.present()
def on_preferences_action(

View File

@@ -126,16 +126,26 @@ class CartridgesWindow(Adw.ApplicationWindow):
if not (removed := get_removed(source_id)):
continue
row = Gtk.Box(margin_top=12, margin_bottom=12)
row = Gtk.Box(
margin_top=12,
margin_bottom=12,
margin_start=6,
margin_end=6,
spacing=12,
)
games_no = len(shared.store.source_games[source_id]) - removed[0]
total_games_no += games_no
row.append(
Gtk.Image.new_from_icon_name(
f'{source_id.split("_")[0]}-source-symbolic'
)
)
row.append(
Gtk.Label(
label=self.get_application().get_source_name(source_id),
halign=Gtk.Align.START,
margin_start=6,
margin_end=6,
)
)
@@ -144,7 +154,6 @@ class CartridgesWindow(Adw.ApplicationWindow):
label=games_no,
hexpand=True,
halign=Gtk.Align.END,
margin_end=6,
)
)