flutter / devtools

Performance tools for Flutter
https://flutter.dev/docs/development/tools/devtools/
BSD 3-Clause "New" or "Revised" License
1.59k stars 329 forks source link

DevTools Treemap UX/UI Color Updates #2139

Open raison00 opened 4 years ago

raison00 commented 4 years ago

General DevTools Treemap UX Color Updates Treemap Update:

Lighter Darker Opacity
#88b1de #2c5daa 100%
#9aafd0 #5163a5 100%
#aaacc3 #6c68a0 100%
#b9a8b7 #836e9b 100%
#c6a5ac #9a7496 100%
#d2a1a0 #c7838b 100%
#e99889 #dd8b85 100%
#f6937d #f6937d 100%

maptree-gradient

_Values have been provided for the base color + opacity + _dominant color__ The determined threshold will follow this pattern: Extra Large: 100% opacity #88b1de and #f6937d Large: 75% opacity Medium: 50% opacity Small: 25% opacity

Dark Mode Updates

Dark Mode Hot Spot Updates

Light Mode Updates

Light Mode Hot Spot Updates

Lighter Darker 100%
#88b1de #2c5daa 100%
#9aafd0 #5163a5 100%
#aaacc3 #6c68a0 100%
#b9a8b7 #836e9b 100%
#c6a5ac #9a7496 100%
#d2a1a0 #c7838b 100%
#e99889 #dd8b85 100%
#f6937d #f6937d 100%

Below is a conceptual mock of rendering using opacity to show size. _Note: Color is not representative of actual intended size here; it is provided for maximum visibility to show intended color range._

maptree-monocromatic-v3Artboard 1@3x maptree-dark-select1Artboard 1@3x

Dark Mode Hot Spot Colors

maptree-v2-monocromaticArtboard 1@3x

maptree-dark-hotspotArtboard 1@3x maptree-dark-selected-hotspotArtboard 1@3x maptree-dark-selected-hotspot-wholeArtboard 1@3x maptree-dark-selected-hotspot-whole-selectArtboard 1@3x

maptree-dark-gradient Alt range: color-range-tree-map-dark-mode-red-green

Light Mode

maptree-monocromatic-v1 maptree-v2s-monocromaticArtboard 1@3x

Light Mode Hot Spot Colors

Light Mode Gradient Colors image image

#88b1de #2c5daa #5163a5 #6c68a0 #836e9b #9a7496 #c7838b #dd8b85 #f6937d #88b1de #9aafd0 #aaacc3 #b9a8b7 #c6a5ac #d2a1a0 #e99889 #f6937d

kenzieschmoll commented 4 years ago

Thanks Felicia. Can you provide some input on building a diffing tool? If we were to build a treemap to show the diff between two snapshots, how do you recommend we use colors to show the positive and negative size changes in the diff? We were thinking we could use red to show code size increases and green to show code size decreases.

raison00 commented 4 years ago

Here's some ideas for building the diffing tool. The top image shows the same color palette with visibility to the positive and negative size changes in the diff using red and green to show increases/decreases, but still uses the primary color scheme. The base colors remain the same with orange being the "hot" color and blue being the "cooler" color.

code-size-increases-blue-orange-dark

In the area above the tabular data section, summary information for each snapshot is presented.

code-size-updates-02 Light Version:

note: image fidelity is compromised, ignore the stretched text, provided to show light mode with same color scheme. image

Color Options for Treechart diff comparisons code-size-updates-01

Here's a provided red/green color range and how the colors work on light/dark themes with various opacity.

code-size-updates-03

light-mode-color-range-treemap-red-green

dark-mode-color-range-treemap-red-green

"pinker-red" option range on right side of graphic

color-range-tree-;lmap-dark-mode-red-green