Skip to content

Commit

Permalink
feat(projects): custom command icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ddkasa committed Nov 12, 2024
1 parent d12a010 commit 1be455c
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 3 deletions.
88 changes: 88 additions & 0 deletions images/svg/project.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/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

from ulauncher_toggl_extension.images import (
ADD_IMG,
APP_IMG,
BROWSER_IMG,
CIRCULAR_SVG,
DELETE_IMG,
EDIT_IMG,
PROJECT_IMG,
REFRESH_IMG,
)
from ulauncher_toggl_extension.utils import get_distance, quote_member
Expand All @@ -34,7 +34,7 @@ class ProjectCommand(SubCommand[TogglProject]):

PREFIX = "project"
ALIASES = ("proj", "projects")
ICON = APP_IMG # TODO: Need a custom image
ICON = PROJECT_IMG
EXPIRATION = None
OPTIONS = ()

Expand Down
3 changes: 2 additions & 1 deletion ulauncher_toggl_extension/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class TipSeverity(enum.Enum):
START_IMG = SVG_PATH / Path("start.svg")
EDIT_IMG = SVG_PATH / Path("edit.svg")
ADD_IMG = SVG_PATH / Path("add.svg")
PROJECT_IMG = SVG_PATH / Path("project.svg") # TODO: Needs to be created.
PROJECT_IMG = SVG_PATH / Path("project.svg")
STOP_IMG = SVG_PATH / Path("stop.svg")
DELETE_IMG = SVG_PATH / Path("delete.svg")
CONTINUE_IMG = SVG_PATH / Path("continue.svg")
Expand Down Expand Up @@ -55,6 +55,7 @@ class TipSeverity(enum.Enum):
"DELETE_IMG",
"EDIT_IMG",
"PROJECT_IMG",
"PROJECT_IMG",
"REPORT_IMG",
"START_IMG",
"STOP_IMG",
Expand Down

0 comments on commit 1be455c

Please sign in to comment.