Skip to content

Commit

Permalink
feat: modidy code
Browse files Browse the repository at this point in the history
  • Loading branch information
gaolu committed May 14, 2021
1 parent 1c9bea2 commit 0f8106c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/utils/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export const addButton = ({ rect, size, icon, activeIcon, tooltip = '', type = 5
const imageURL = getImageURL(icon)
const image = createImage(imageURL, size)
button.setImage(image)
button.setTitle(tooltip)
button.setFont(NSFont.fontWithName_size('Arial', 10))

if (activeIcon) {
const activeImageURL = getImageURL(activeIcon)
Expand Down

0 comments on commit 0f8106c

Please sign in to comment.