-
Notifications
You must be signed in to change notification settings - Fork 2
SideNavBar and TabBar Swift Orange styling #242
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
height: Constants.advancedImu.insStatusImageWidth | ||
smooth: true | ||
source: "../" + Constants.advancedImu.okStatusPath | ||
source: Constants.advancedImu.okStatusPath |
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.
Can you rebase now that your other changes (also seen here) have been merged in?
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.
Ahh right - I missed that. Will do.
* This creates a new Qt Quick Controls 2 style which I have named "SwiftNav". It is selected in the qtquickcontrols2.conf file, and is based on the Material style, with a fallback to the material style in cases where a control is not defined in the style. * Initially I added a TabBar and TabButton control. The TabBar and TabButton controls are styled similar to what is desired in the new orange styling that SwiftNav folks desired. * Note that there are a lot of changes in the colors of the TabButton elements from the old keithel-qt/orange-styling branch. This is to more closely blend in with the connection button on the bottom, and it looks nicer.
* This achieves 90% of the new orange styling guidelines for TabBars and TabButtons used in the console. * Current problems exist in the sidebar outlining. This isn't quite right, and I think the outline should not be drawn in the style control in this case, and instead drawn by the code using it. cherry-pick notes: Significant changes from the version of this commit in the old keithel-qt/orange-styling.
* Expose the orientation setting of the ListView content item of TabBar, allowing a user to specify an orientation for the TabBar. * Remove TabBar contentItem override in SideNavBar, use new orientation property of TabBar.
* Introduce a whole new SideBar implementation that does not use TabBar. * SideNavButton customized button type added, allows for much more customization to the look of the SideNavBar buttons. * ListView used to display the buttons, allows more freedom to customize look and feel over TabBar, and is designed to be used vertically. * Adopt the new design guidelines as is shown in mockups in slack: https://snav.slack.com/archives/C02DG3HAHT8/p1632876609129100 * Fix current index of MainTab corresponding to selected SideNavBar tab. (was 1s based, now 0 based)
* Add boundary line between ConnectionScreen and SideNavBar * Remove the topmost swiftnav about button in SideNavBar (it is going elsewhere) * Give SideNavBar an enable property, and have it disabled when the ConnectionScreen is showing, adjust colors appropriately for enabled status. * Make the SideNavButton left and right lines extend higher so they are continuous. This makes those lines go outside the boundary of the button, but there is no clipping, so the drawing occurs as we expect.
* TabButtons are now different colors per new design guidelines shared in https://snav.slack.com/archives/C020JLK6PK8/p1637094700036500
56a7f55
to
beb2433
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This provides a new implementation of the SideNavBar that conforms to the SwiftNav orange UI guidelines.
The guidelines that were worked off of are described in:
https://snav.slack.com/archives/C02DG3HAHT8/p1632876609129100 (older one)
https://snav.slack.com/archives/C020JLK6PK8/p1637094700036500 (which I was made aware of today, Nov 16)