Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
keremciu committed Nov 9, 2016
2 parents 7e46eb4 + b9abbdb commit 34e50cd
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
9 changes: 8 additions & 1 deletion HELP.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
If you don't see any icons, please make sure you have installed your icon fonts.
=======

### First Install

First use? you need to watch ([THIS VIDEO](http://recordit.co/2PMTB04Jav))
##### Please if you have an issue, first watch the video.

If you don't see any icons, please make sure you have installed ttf files of your icon fonts.

=======

Expand Down
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
[![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)][paypal-donations]
[![Latest Version](https://img.shields.io/github/release/keremciu/sketch-iconfont.svg?style=flat-square)](https://github.com/keremciu/sketch-iconfont/releases)
[![Join the chat at https://gitter.im/keremciu/sketch-iconfont](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/keremciu/sketch-iconfont?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

### New Feature - 29 April 2016
##### Non-text layer selection problem fixed - 4 October 2016 (Version 4.4.2)

Problem here https://twitter.com/mwstrmnn/status/782979129780146178

### New Features and Fixes - 17 August 2016 (Version 4.4.0)

Hey guys, I've fixed the problem with 3.91 version of Sketch.

Also we've new features like multiple text change, I will share gifs about them soon. Before sharing gifs, you can find and use them :)

### First Install

First use? you need to watch ([THIS VIDEO](http://recordit.co/2PMTB04Jav))
##### Please if you have an issue, first watch the video.

### New Feature - Convert Command - 29 April 2016
![demo][demo-image]

Your teammates don't have your icon-fonts? don't worry now you can convert all icons with one command then share it.
Expand Down Expand Up @@ -80,6 +96,8 @@ MIT

If you want you can buy me a beer: https://www.paypal.me/keremsevencan :)

[paypal-donations]: https://www.paypal.me/keremsevencan

#### Old version

You can see an old version of this plugin here: http://i.imgur.com/EBGmlSe.gif - and you can download it from here: https://github.com/keremciu/sketch-iconfont/tree/oldversion
8 changes: 8 additions & 0 deletions iconfont.sketchplugin/Contents/Sketch/const/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ var onRun = function(context) {
fontname = "Batch"
if (fontname == "weather_iconsregular")
fontname = "Weather Icons"
if (fontname == "black_tielight")
fontname = "Black Tie Light"
if (fontname == "black_tieregular")
fontname = "Black Tie Regular"
if (fontname == "black_tiebold")
fontname = "Black Tie Bold"
if (fontname == "black_tiesolid")
fontname = "Black Tie Solid"

// 2. Create Window
var wrapper = Library.Widgets.window("Import Font",fontname)
Expand Down
3 changes: 0 additions & 3 deletions iconfont.sketchplugin/Contents/Sketch/const/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ var Library = {
var replace = configs["Replace"].value
c = this.hexToRgbPercent(color);
color = MSColor.colorWithRed_green_blue_alpha(c.r,c.g,c.b,c.a);
// color = MSColor.colorWithSVGString(color);
// var sliceColor = MSColor.colorWithRed_green_blue_alpha(239/255,239/255,239/255,1.0);

function createNew() {
// create a text layer contains the icon
Expand All @@ -96,7 +94,6 @@ var Library = {
if (replace == 1 && selection && selection.length >= 1) {
for (var j=0; j < selection.length; j++) {
selected = selection[j]
log(selected)

if (selected.class() != "MSTextLayer") {
createNew()
Expand Down

0 comments on commit 34e50cd

Please sign in to comment.