Skip to content
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

Made the toolbar show the currently selected tool #33

Merged
merged 2 commits into from
Feb 17, 2023

Conversation

marsian83
Copy link
Contributor

Overview

I have turned the toolbar buttons at the top of the activity so that we know what toolbar item has been selected

Description

I have changed the ToolButtons to RadioToolButtons

Screenshots

Screenshot_20230215_055928

Before changes: The screenshot shows the grab tool being selected but there is no indication as to it being selected

WhatsApp Image 2023-02-15 at 17 53 20

After the changes : In the above screenshot the Grab tool is selected and is shown clearly

@quozl
Copy link
Contributor

quozl commented Feb 15, 2023

No, thank you. This is a substantial change to the user interface design that would make this activity very different from all the others and the Sugar shell.

  • there is no point to showing current selection for buttons that act only once,
  • radio buttons are to be used where the buttons are mutually exclusive, and these are not.

It is however an interesting use of the radio button class I wasn't aware of. 😁

@quozl quozl closed this Feb 15, 2023
@marsian83
Copy link
Contributor Author

marsian83 commented Feb 16, 2023

Hi @quozl, I have applied the same logic as I witnessed in physics activity
this line of code in the physics activity is where I saw the same logic being employed

Also, I do not understand how these are not mutually exclusive
I have only added the [Circle, Girder, Grab, Destroy, Bridge Joint] tools as RadioToolButtons and the pause, create train and restart buttons function the same and are separate from the RadioButtons as shown in the screenshot attached

Screenshot_20230216_013724

Above screenshot shows the two buttons being activated separately, one indicating that the circle tool has been selected and the other one indicating that the game is resumes

I was also wondering if RadioToolButtons are not to be used in this case, shall I change the ones used in physics activity as well?

@quozl
Copy link
Contributor

quozl commented Feb 16, 2023

Okay, thanks.

Your commit message was too brief. Please put all details about the change into the commit message prior to making the pull request. See https://github.com/sugarlabs/sugar-docs/blob/master/src/contributing.md#making-commits

In Physics the toolbars are in submenus, so the nature and extent is clear. Please add some separator between the radio button array and the other buttons.

Tested.

@quozl quozl reopened this Feb 16, 2023
@marsian83
Copy link
Contributor Author

Hi @quozl I have added separators in the toolbar
Now the RadioButtons appear visually detached as shown in the below screenshot

image

@quozl
Copy link
Contributor

quozl commented Feb 17, 2023

Again, your commit messages are weak. Remember pull requests are not retained, only the commit messages are retained in the git history.

@quozl quozl merged commit 0255b79 into sugarlabs:master Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants