Skip to content

Add color coding for class types. #5030

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 31 commits into from
Jan 17, 2023
Merged

Conversation

polina-c
Copy link
Contributor

@polina-c polina-c commented Jan 12, 2023

Screenshot 2023-01-13 at 9 54 46 AM

Screen.Recording.2023-01-12.at.5.30.17.PM.mov

@polina-c polina-c changed the title Class types Add color coding for class types. Jan 13, 2023
@polina-c
Copy link
Contributor Author

@melyndahoover

label: 'D',
alias: '\$dependency',
aliasDescription: 'dependencies',
classTooltip: 'dependency',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: try to be consistent with capitalization

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only names (Dart, Flutter) and abbreviations (SDK) are capitalized

added comments

classTooltip: 'Dart runtime class',
),
sdk(
color: Color.fromARGB(255, 122, 188, 124),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these standard colors? Can they be made into constants and placed with our other colors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I plan to do it outside of this PR.

@malloc-error plans to work on color scheme for DevTools
There is issue to handle this: #5050

return ClassType.dependency;
}

bool get isCreatedByGoolge => isPackageless || isDartOrFlutter;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@polina-c polina-c marked this pull request as ready for review January 13, 2023 22:30
@polina-c polina-c requested a review from a team as a code owner January 13, 2023 22:30
@polina-c polina-c requested review from bkonyi and removed request for a team January 13, 2023 22:30
@polina-c polina-c merged commit c8c30fc into flutter:master Jan 17, 2023
@polina-c polina-c deleted the class-types branch January 17, 2023 22:35
@CoderDake CoderDake mentioned this pull request Jan 24, 2023
7 tasks
@DartDevtoolWorkflowBot DartDevtoolWorkflowBot mentioned this pull request Jan 24, 2023
7 tasks
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