Skip to content
프로젝트

kenmoore/sketch-relabel-button

GitHub에서 보기

소개

Sketch.app에서 버튼(또는 이와 비슷하게 그룹화된 레이어)의 레이블을 바꾸고 크기를 자동으로 조정하는 플러그인

기타 프로젝트

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Relabel Button plugin for Sketch

The Relabel Button plug-in for Sketch.app prompts for a button's new label then applies the text, resizes the button background and repositions any other interior elements while maintaining the existing padding.

Demo

Have a look...

Usage

  • Select any group or symbol that contains a text layer and one or more other layers (dividers, icons, drop-arrows, etc)
  • Press Cmd+J and enter the new text for the button (or Cmd+Ctrl+J for right aligned resize)

That's it! The text and other objects will be updated maintaining the button's original padding and relative layout.

Guidelines

  • nested groups not supported
  • for symbols, elements SHOULD NOT be placed within a group
  • for symbols, child elements should have Resizing set to Pin To Corner so they do not get shrunk/stretched
  • see the Relabel Button Guidelines Sketch file for example buttons

Changing the Default Keyboard Shortcut

  1. Choose "Reveal Plugins Folder..." from Sketch's Plugins menu.
  2. Open the file "Relabel Button.sketchplugin" in a text editor.
  3. Edit the shortcut specifications in manifest.json:
"shortcut" : "command j",

Credits

Many thanks to Alexander Kudymov, who wrote the Dynamic Button plugin which I modified.

Also thanks to @fuggfuggfugg, who graciously shared useful code for manipulating symbols.

Twitter

관련 프로젝트 살펴보기

불러오는 중…