Skip to content

Commit 0f8106c

Browse files
author
gaolu
committed
feat: modidy code
1 parent 1c9bea2 commit 0f8106c

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

sketch-plugin-boilerplate.sketchplugin/Contents/Sketch/action.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sketch-plugin-boilerplate.sketchplugin/Contents/Sketch/action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sketch-plugin-boilerplate.sketchplugin/Contents/Sketch/sidePanel.js

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sketch-plugin-boilerplate.sketchplugin/Contents/Sketch/sidePanel.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/element.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export const addButton = ({ rect, size, icon, activeIcon, tooltip = '', type = 5
7272
const imageURL = getImageURL(icon)
7373
const image = createImage(imageURL, size)
7474
button.setImage(image)
75+
button.setTitle(tooltip)
76+
button.setFont(NSFont.fontWithName_size('Arial', 10))
7577

7678
if (activeIcon) {
7779
const activeImageURL = getImageURL(activeIcon)

0 commit comments

Comments
 (0)