Skip to content

Commit

Permalink
Update Linear and Slack icons
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaslombart committed Apr 26, 2024
1 parent 52057f9 commit 4c9f92a
Show file tree
Hide file tree
Showing 12 changed files with 70 additions and 43 deletions.
6 changes: 5 additions & 1 deletion extensions/linear/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Linear Changelog

## [New icons] - 2024-04-26

- Use new Linear icons

## [Fix Creating issue with milestone] - 2024-04-23

Fix defining milestoneId in payload.
- Fix defining `milestoneId` in payload.

## [Enhanced Notifications] - 2024-03-12

Expand Down
9 changes: 4 additions & 5 deletions extensions/linear/assets/dark/linear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions extensions/linear/assets/light/linear.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added extensions/linear/assets/linear-app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed extensions/linear/assets/linear.png
Binary file not shown.
33 changes: 24 additions & 9 deletions extensions/linear/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions extensions/linear/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "linear",
"title": "Linear",
"description": "Bring Linear to every corner of your Mac. Create, search, and modify your issues. Stay on top of your notifications in the menu bar.",
"icon": "linear.png",
"icon": "linear-app-icon.png",
"owner": "linear",
"access": "public",
"author": "thomaslombart",
Expand Down Expand Up @@ -116,7 +116,6 @@
"description": "Show unread notifications in the Menu Bar.",
"mode": "menu-bar",
"subtitle": "Linear",
"icon": "linear.png",
"interval": "15m",
"preferences": [
{
Expand Down Expand Up @@ -225,7 +224,7 @@
"dependencies": {
"@linear/sdk": "^13.0.0",
"@raycast/api": "^1.64.5",
"@raycast/utils": "^1.12.1",
"@raycast/utils": "^1.14.1",
"date-fns": "^3.1.0",
"file-type": "^18.7.0",
"lodash": "^4.17.21",
Expand Down
8 changes: 0 additions & 8 deletions extensions/linear/src/helpers/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ export function getNotificationTitle(notification: NotificationResult) {
return notificationTitles[notification.type] || "Unknown notification";
}

export function getNotificationMenuBarIcon(unreadNotifications: NotificationResult[]) {
return {
source: { dark: "dark/linear.svg", light: "light/linear.svg" },
tintColor:
unreadNotifications.length !== 0 ? { dark: "#5E6AD2", light: "#5E6AD2", adjustContrast: false } : undefined,
};
}

export function getNotificationMenuBarTitle(unreadNotifications: NotificationResult[]) {
return unreadNotifications.length !== 0 ? String(unreadNotifications.length) : undefined;
}
Expand Down
4 changes: 2 additions & 2 deletions extensions/linear/src/unread-notifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ function UnreadNotifications() {
return (
<MenuBarExtra
title={getNotificationMenuBarTitle(unreadNotifications)}
icon={getNotificationMenuBarIcon(unreadNotifications)}
icon={{ source: { dark: "dark/linear.svg", light: "light/linear.svg" } }}
isLoading={isLoadingNotifications}
>
<MenuBarExtra.Section>
<MenuBarExtra.Item
title="Open Inbox"
icon="linear.png"
icon="linear-app-icon.png"
shortcut={{ modifiers: ["cmd"], key: "o" }}
onAction={openInbox}
/>
Expand Down
4 changes: 4 additions & 0 deletions extensions/slack-status/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Slack Status Change

## [Fix Slack icon] - 2024-04-26

- Make the Slack icon larger on the OAuth screen

## [Set Slack status from Raycast's root search] - 2024-02-23

- You can now create quicklinks from the `Set Status` command making it possible to set your favorite Slack status from Raycast's root search.
Expand Down
33 changes: 24 additions & 9 deletions extensions/slack-status/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion extensions/slack-status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"dependencies": {
"@raycast/api": "^1.60.0",
"@raycast/utils": "^1.12.5",
"@raycast/utils": "^1.14.1",
"@slack/web-api": "^6.4.0",
"moment": "^2.29.1",
"nanoid": "^5.0.5",
Expand Down

0 comments on commit 4c9f92a

Please sign in to comment.