Skip to content

Commit

Permalink
feat(clients): custom command icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkasa committed Nov 12, 2024
1 parent 1be455c commit ba68d2a
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 2 deletions.
84 changes: 84 additions & 0 deletions images/svg/client.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions ulauncher_toggl_extension/commands/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

from ulauncher_toggl_extension.images import (
ADD_IMG,
APP_IMG,
BROWSER_IMG,
CLIENT_IMG,
DELETE_IMG,
EDIT_IMG,
REFRESH_IMG,
Expand All @@ -30,7 +30,7 @@ class ClientCommand(SubCommand[TogglClient]):

PREFIX = "client"
ALIASES = ("cli", "clients")
ICON = APP_IMG # TODO: Need a custom image
ICON = CLIENT_IMG
EXPIRATION = None
OPTIONS = ()

Expand Down
2 changes: 2 additions & 0 deletions ulauncher_toggl_extension/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class TipSeverity(enum.Enum):
EDIT_IMG = SVG_PATH / Path("edit.svg")
ADD_IMG = SVG_PATH / Path("add.svg")
PROJECT_IMG = SVG_PATH / Path("project.svg")
CLIENT_IMG = SVG_PATH / Path("client.svg")
STOP_IMG = SVG_PATH / Path("stop.svg")
DELETE_IMG = SVG_PATH / Path("delete.svg")
CONTINUE_IMG = SVG_PATH / Path("continue.svg")
Expand All @@ -51,6 +52,7 @@ class TipSeverity(enum.Enum):
"BLANK_IMG",
"BROWSER_IMG",
"CIRCULAR_SVG",
"CLIENT_IMG",
"CONTINUE_IMG",
"DELETE_IMG",
"EDIT_IMG",
Expand Down

0 comments on commit ba68d2a

Please sign in to comment.