scipion-em / scipion-pyworkflow

Underlying pyworkflow module for the Scipion framework
GNU General Public License v3.0
6 stars 5 forks source link

Sprites #490

Closed pconesa closed 7 months ago

pconesa commented 9 months ago

users:

pconesa commented 9 months ago

no, sprites are a 32 pixel size that is too much.... I plan to make them back to 16 with a "zoom" parameter at 50% then will be back to normal. In case someone wants a bigger zoom then this may appear... unless we find a way to make trees respond to icon sizes. I failed so far.

pconesa commented 9 months ago

@plosana will work on the other icons still to change. Once ready this can be merge. I change it to draft for now

azazellochg commented 9 months ago

Since you are working on this, could we please change the order of buttons? It takes me 5 seconds to find the stop protocol or browse button. The most used buttons should go first.

pconesa commented 9 months ago
That is not a common practice… most software group icons by “similar functionality”, may be the problema is tha icons are not enough? You alway have the resourc of learning the shortcuts!! 😉 We are far from customizing the order… not sure if we Will do it, but thanks, I’ll make a note….. what others (Reading this) think about this?.   De: Grigory SharovEnviado: miércoles, 10 de enero de 2024 13:09Para: scipion-em/scipion-pyworkflowCC: Pablo Conesa; AuthorAsunto: Re: [scipion-em/scipion-pyworkflow] Sprites (PR #490) Since you are working on this, could we please change the order of buttons? It takes me 5 seconds to find the stop protocol or browse button. The most used buttons should go first.—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***> 
plosana commented 9 months ago

Hi everyone! I agree with Grigory that I find more intuitive a different order for the icons. I did a bit of a study grouping the icons by the functionality that they had and came up with this: image

To me, a more intuitive order would be the one I propose below, but any ideas are welcome :) image

delarosatrevin commented 9 months ago

Patricia,

You are using nicer icons in your proposal screenshot, so biasing us toward it. ;)

In any grouping, I suggest briefly asking some users and hiding some icons for actions that are not used that frequently. (in my opinion, for example: labels, workflow selected, etc)

Best, Jose Miguel

On Wed, Jan 10, 2024 at 9:27 AM Patricia Losana @.***> wrote:

Hi everyone! I agree with Grigory that I find more intuitive a different order for the icons. I did a bit of a study grouping the icons by the functionality that they had and came up with this: image.png (view on web) https://github.com/scipion-em/scipion-pyworkflow/assets/8470316/488713ae-88ea-49b9-9eec-2d19f05ff9bd

To me, a more intuitive order would be the one I propose below, but any ideas are welcome :) image.png (view on web) https://github.com/scipion-em/scipion-pyworkflow/assets/8470316/0972fb54-bf37-4aa8-b1bf-e4ba1bf5ec56

— Reply to this email directly, view it on GitHub https://github.com/scipion-em/scipion-pyworkflow/pull/490#issuecomment-1885063885, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAM6WB5AIC44GPSDJ7XBH3YN2XNDAVCNFSM6AAAAABBUQ6AKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVGA3DGOBYGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

azazellochg commented 9 months ago

@plosana that looks beautiful! Labels are definitely helpful, otherwise I often have to hover over every button to find the meaning 😁

pconesa commented 9 months ago

There is a variable to Show or not the labels. Do we want it active by default?

azazellochg commented 9 months ago

Yes please 🥺

plosana commented 9 months ago

Yes!! I believe it would be very very helpful

JorMaister commented 9 months ago

After the last changes, it looks nice! I've checked all the windows with icons and they all behave well in terms of appearance. My only question is regarding the "Browse" window, if the last two options of the toolbar ("Recent" and "Protocol folder") not have an associated icon, or it is not being displayed properly.

image

JorMaister commented 9 months ago

On the other hand, I had some execution problems when using this branch. Here's an example:

00001: Traceback (most recent call last): 00002: File "/home/jjimenez/scipion3/scipion-pyworkflow/pyworkflow/protocol/protocol.py", line 203, in run 00003: self._run() 00004: File "/home/jjimenez/scipion3/scipion-pyworkflow/pyworkflow/protocol/protocol.py", line 254, in _run 00005: resultFiles = self._runFunc() 00006: File "/home/jjimenez/scipion3/scipion-pyworkflow/pyworkflow/protocol/protocol.py", line 250, in _runFunc 00007: return self._func(*self._args) 00008: File "/home/jjimenez/scipion3/scipion-em-emantomo/emantomo/protocols/protocol_template_matching.py", line 136, in prepareEmanPrj 00009: self.convertOrLink(inTomoName, tomo.getTsId(), TOMOGRAMS_DIR, sRate) 00010: File "/home/jjimenez/scipion3/scipion-em-emantomo/emantomo/protocols/protocol_base.py", line 208, in convertOrLink 00011: self.convertBetweenHdfAndMrc(abspath(inFile), outFile, extraArgs=f'--apix {sRate:.3f}') 00012: File "/home/jjimenez/scipion3/scipion-em-emantomo/emantomo/protocols/protocol_base.py", line 212, in convertBetweenHdfAndMrc 00013: program = Plugin.getProgram("e2proc3d.py") 00014: File "/home/jjimenez/scipion3/scipion-em-eman2/eman2/init.py", line 114, in getProgram 00015: return f"{cls.getActivationCmd()} && {cmd} {program} " 00016: File "/home/jjimenez/scipion3/scipion-em-eman2/eman2/init.py", line 108, in getActivationCmd 00017: cls.getEmanEnvActivation()) 00018: File "/home/jjimenez/scipion3/scipion-em-eman2/eman2/init.py", line 100, in getEmanEnvActivation 00019: scipionHome = Config.SCIPION_HOME + os.path.sep 00020: TypeError: unsupported operand type(s) for +: 'Variable' and 'str' 00021: Protocol failed: unsupported operand type(s) for +: 'Variable' and 'str'

pconesa commented 9 months ago

Thanks JOrge, I think we need to overload more methods of the Variable class. I'll fix it

pconesa commented 9 months ago

Those "actions" never had an icon.

JorMaister commented 9 months ago

Haha, my bad! Sorry

pconesa commented 9 months ago

If you pull latest changes there should be no error with the plugin now.

JorMaister commented 9 months ago

Solved! Thanks

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud