Skip to content

Commit

Permalink
Reduced the number of icons utilizing tintColor (raycast#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
moored committed Oct 22, 2021
1 parent cd8e09c commit 7895f19
Show file tree
Hide file tree
Showing 13 changed files with 7 additions and 6 deletions.
Binary file removed extensions/git-repos/assets/bitbucket-icon-light.png
Binary file not shown.
Binary file not shown.
Binary file removed extensions/git-repos/assets/github-icon-ight.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed extensions/git-repos/assets/gitlab-icon-light.png
Binary file not shown.
13 changes: 7 additions & 6 deletions extensions/git-repos/src/list.tsx
@@ -1,5 +1,6 @@
import {
ActionPanel,
Color,
CopyToClipboardAction,
Icon,
Image,
Expand Down Expand Up @@ -65,15 +66,15 @@ export default function Main(): ReactElement {
let host = remote.host
switch (remote.host) {
case "github.com":
icon = { source: { dark: "github-icon-dark.png", light: "github-icon-light.png" } }
icon = { source: "github-icon.png", tintColor: Color.PrimaryText }
host = "GitHub"
break
case "gitlab.com":
icon = { source: { dark: "gitlab-icon-dark.png", light: "gitlab-icon-light.png" } }
icon = { source: "gitlab-icon.png", tintColor: Color.PrimaryText }
host = "GitLab"
break
case "bitbucket.org":
icon = { source: { dark: "bitbucket-icon-dark.png", light: "bitbucket-icon-light.png" } }
icon = { source: "bitbucket-icon.png", tintColor: Color.PrimaryText }
host = "Bitbucket"
break

Expand All @@ -87,21 +88,21 @@ export default function Main(): ReactElement {
title={`Code`}
key={`code ${remote.name}`}
url={remote.url}
icon = {{ source: { dark: "github-code-icon-dark.png", light: "github-code-icon-light.png" } }}
icon = {{ source: "github-code-icon.png", tintColor: Color.PrimaryText }}
shortcut={{modifiers: ["shift", "cmd"], key: "c"}}
/>
<OpenInBrowserAction
title={`Issues`}
key={`issues ${remote.name}`}
url={`${remote.url}/issues`}
icon = {{ source: { dark: "github-issues-icon-dark.png", light: "github-issues-icon-light.png" } }}
icon = {{ source: "github-issues-icon.png", tintColor: Color.PrimaryText }}
shortcut={{modifiers: ["shift", "cmd"], key: "i"}}
/>
<OpenInBrowserAction
title={`Pull Requests`}
key={`pulls ${remote.name}`}
url={`${remote.url}/pulls`}
icon = {{ source: { dark: "github-pulls-icon-dark.png", light: "github-pulls-icon-light.png" } }}
icon = {{ source: "github-pulls-icon.png", tintColor: Color.PrimaryText }}
shortcut={{modifiers: ["shift", "cmd"], key: "p"}}
/>
</ActionPanel.Submenu>
Expand Down

0 comments on commit 7895f19

Please sign in to comment.