Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add some explanation text to top of widgets#139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
samcunliffe merged 1 commit intomatplotlib:mainfromdstansby:explain-widgets
Jun 1, 2023

Conversation

dstansby
Copy link
Member

@dstansbydstansby commentedMay 31, 2023
edited
Loading

This PR adds some text to the top of widgets explaining how many layers it takes as input. I'm hoping this improves user experience somewhat.

Screenshot 2023-06-01 at 09 59 14

The name of the widget should probably have some title styling applied to it -@samcunliffe can you advise on the best way to do this? If you don't know off the top of your head I can look into it.

Fixes#27

@samcunliffe
Copy link
Collaborator

samcunliffe commentedMay 31, 2023
edited
Loading

@samcunliffe can you advise on the best way to do this? If you don't know off the top of your head I can look into it.

Off the top of my head: not, I'm afraid. I can tell you button sizes in the CSS or colours. Text formatting is advanced stuff. From a quick cmd-F search ofthe CSS it looks like you could try and use<h1> inside theQLabel, or put it in aQCustomTitleBar (or something similar) and it should just work™️.


Worth noting that Napari already tells you the widget name (albeit quite faintly)

Screenshot 2023-05-31 at 18 24 48

@samcunliffe
Copy link
Collaborator

samcunliffe commentedMay 31, 2023
edited
Loading

🚀Almost fixes

Do you know how to domy wishlist for that? (Make the help hints disappear when the user has selected the required number of layers.)

That said, a staticQLabel is simpler (and therefore probably better).

@dstansby
Copy link
MemberAuthor

To keep this simple (partly because there's already the widget name as you pointed out), I've updated it to just add the text for how many layers need selecting.

samcunliffe reacted with thumbs up emoji

@dstansbydstansby marked this pull request as ready for reviewJune 1, 2023 09:00
@samcunliffesamcunliffe added this pull request to the merge queueJun 1, 2023
@samcunliffesamcunliffe linked an issueJun 1, 2023 that may beclosed by this pull request
Merged via the queue intomatplotlib:main with commite742e3bJun 1, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@samcunliffesamcunliffesamcunliffe approved these changes

@ruaridhgruaridhgAwaiting requested review from ruaridhg

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Add contextual GUI hints on using widgets
2 participants
@dstansby@samcunliffe

[8]ページ先頭

©2009-2025 Movatter.jp