Currently the Text Editor header is very crowded. Here's a patch to clean it up.
- Register toggle is in the Text menu
- Run Script and Refresh OSL become an icon buttons next to ID block
Differential D5686
Text Editor UI: Small changes to headers Authored by William Reynish (billreynish) on Sep 5 2019, 11:06 AM.
Details
Currently the Text Editor header is very crowded. Here's a patch to clean it up.
Diff Detail
Event TimelineComment Actions I'd:
Comment Actions Agreed, will do
Also agreed.
I tried it - that's what I did first. We could do that also. Only issue is that long file paths will push off screen. But probably it's ok
Depends on previous - if in the footer, it works better as text. Comment Actions The Play icon is used for Run here in PyCharm - without any stop/pause 2. meaning: The "Text" menu should be called "File" and be placed to the far left, because it's all file operations and it would be in consistency with all other apps: Comment Actions It's often used to run the server then it shows Restart, Pause, Stop. Video: https://www.youtube.com/watch?v=JLfd9LOdu_U Comment Actions Maybe @Andrzej Ambroz (jendrzych) could be asked to come up with an alternative icon for "Run"/"Execute", so we can avoid the not-so-nice looking text buttons in header/footers? Comment Actions Discussion about an icon to replace "Run Script" goes on here: https://devtalk.blender.org/t/new-icons-for-blender-2-8x/4651/735 Comment Actions In QtCreator, Pycharm, and in most ides/editors use a green play icon. Comment Actions Example of a 'Run Script' icon to resolve conflict with the 'Timeline Play Animation' icon. Comment Actions I personally like the most the other one you posted on devtalk @Paul (Thirio), it's simpler and also more visually different from the neighbour ones. Comment Actions @Alessio Monti di Sopra (a.monti) I agree it fits better in context. And to put more emphasis on the play symbol you can add 'script-lines': Comment Actions Prefer this icon since regular "play" icon is normally associated with play/pause, although it's not high priority to add the icon, it can be done later ----There are security issues with having register & live-edit in sub-menus, however this can be handled separately. Comment Actions Notice tough that while a generic script icon could also work for Osl nodes, if we use a python one we would need to switch the icon depending on the file extension. Comment Actions The icon on the left is more generic and communicates well enough that a script is being run, Also, "run-script" action in other IDE's often uses a generic file+play button, so I think it's something developers will be more familier with. Comment Actions So are we keeping the Register toggle in a sub-menu? Not ideal IMO. You want to know at a glance if a script will run or not on startup. |