Blender Git Commit Log

Git Commits -> Revision 3c6b5b7

Revision 3c6b5b7 by Bastien Montagne (master)
January 1, 2014, 10:58 (GMT)
Add a new "shortening process" for UI string drawing, which keeps both right and left parts
of the drawstr and replaces the middle by '...'

Rationnal:
It's usually easier to figure out what a troncated string means if you have both its start and end parts.

Details:
It currently affects all UI items (text fields, buttons, labels...).
Only exceptions are buttons inside menus, text fields & co being edited, and numbuttons/sliders.
Note that some static texts (like panels' titles or items in outliner) do not use usual UI items,
and just draw the whole text, using OpenGL to clip it. Will make another patch to fix this.

Reviewers: campbellbarton, brecht, carter2422, #user_interface

Reviewed by: brecht, carter2422

CC: billrey

Differential Revision: https://developer.blender.org/D114

Commit Details:

Full Hash: 3c6b5b72a497dd5cdb05e3c35c4117a4e8f5daf2
Parent Commit: d8f4cb9
Lines Changed: +67, -4

1 Modified Path:

/source/blender/editors/interface/interface_widgets.c (+67, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021