-
Notifications
You must be signed in to change notification settings - Fork 48
Fix view toolbar button to properly show menu when clicked #112
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Good catch! Thank you! Could you edit your commit message to include some of the details in your opening commit. Would also be nice to have an extra button that'll return the zoom to the normal width if it was zoomed in or out at any point, the write activity has something similar, I can't think of another activity that does at the moment, one keeps eluding me. |
|
Some of my comments in #109 also apply here. |
cd19dd5 to
d7e14a2
Compare
|
Along with fixing the view menu button, I included a reset button that reverts any change in font to it's normal size. |
|
What activity did you see using that icon for that purpose? |
d7e14a2 to
481f551
Compare
|
I changed the icon for reset width to normal size to |
|
Thanks, good progress. Tested.
It is unfortunate that Pippy has "Normal Colors" and "Inverted Colors" yet Terminal has "Switch to Light Theme" and "Switch to Dark Theme", but as these have already been translated and the purpose of the two activities differs I suppose it can be left as is. Ctrl-0 shortcut is missing from Terminal. I've not checked them, but other activities that use "Zoom in" include Develop, Help, ImageViewer, Labyrinth, Measure, Read, ReadETexts, SolarSystem and ViewSlides. For your interest, the activities were initially written for a fixed display size of the OLPC XO laptop, and a deployment, school or teacher would set font name and size to meet their requirements. Children learn best without font changes, as they form connections between the letter shapes. Older children handle font changes better. |
481f551 to
e389a19
Compare
|
Thanks for the detailed feedback!
|
toolbars.py
Outdated
| # Try multiple approaches to catch the plus key | ||
| if (event.keyval == ord('+') or | ||
| event.keyval == Gdk.KEY_plus or | ||
| event.keyval == Gdk.KEY_KP_Add or | ||
| event.keyval == Gdk.KEY_equal): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need multiple approaches for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I kept one approach responding to ctrl++, also ctrl+=(on most keboards).
toolbars.py
Outdated
| # Print debug info to help diagnose the issue | ||
| print("Caught key press: ", event.keyval) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary comment and print statement.
The activity uses logging that you should take advantage of if you need to, we don't need to in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last commit removes the comments and print statement as it's logging is not currently required. I'll use the activity's logging system if needed in the future.
…iew menubar, add tooltips and accessibility shortcuts. - Fixed view toolbar button to properly show menu when clicked - Created a reset button to revert text size to actual size - Moved dark mode(invert colors) in view menu - Added respective tooltips - Added shortcuts(ctrl++,ctrl+- and ctrl+0) for accessibility
e389a19 to
71085c3
Compare

Issue
The view menu from
toolbars.pywas not visible because page setup was missing.Fixes
view_toolbar.view_toolbarand opens the panel when clicked.