Skip to content

Commit

Permalink
add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Nov 30, 2024
1 parent dccc681 commit 3059302
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions worlds/tracker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

from worlds.LauncherComponents import Component, components, Type, launch_subprocess
from worlds.LauncherComponents import Component, components, Type, launch_subprocess, icon_paths
from typing import Dict, Optional, List, Any, Union, ClassVar
from settings import Group, Bool, LocalFolderPath, _world_settings_name_cache
from worlds.AutoWorld import World
Expand Down Expand Up @@ -73,4 +73,5 @@ def map_page_index(self, data: Dict[str, Any]) -> int:
Right now it should just return 0"""
return 0

components.append(Component("Universal Tracker", None, func=launch_client, component_type=Type.CLIENT))
icon_paths["ut_ico"] = f"ap:{__name__}/icon.png"
components.append(Component("Universal Tracker", None, func=launch_client, component_type=Type.CLIENT, icon="ut_ico"))
Binary file added worlds/tracker/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3059302

Please sign in to comment.