Skip to content

Commit 260e0c2

Browse files
facchinmcmaglie
authored andcommitted
Abbreviate Theme name to max 40 characters
1 parent 794ef80 commit 260e0c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: app/src/processing/app/Theme.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
import org.apache.batik.transcoder.TranscoderOutput;
6565
import org.apache.batik.transcoder.image.PNGTranscoder;
6666
import org.apache.commons.compress.utils.IOUtils;
67+
import org.apache.commons.lang3.StringUtils;
6768
import processing.app.helpers.OSUtils;
6869
import processing.app.helpers.PreferencesHelper;
6970
import processing.app.helpers.PreferencesMap;
@@ -267,7 +268,8 @@ public String getVersion() {
267268
}
268269

269270
public String toString() {
270-
return String.format("%s %s (%s)", this.getName(), this.getVersion(), this.file.getName());
271+
String description = String.format("%s %s (%s)", this.getName(), this.getVersion(), this.file.getName());
272+
return StringUtils.abbreviate(description, 40);
271273
}
272274

273275
/**

0 commit comments

Comments
 (0)