network graph - show/hide panels based on window width/height #540

pull RandyMcMillan wants to merge 5 commits into bitcoin-core:master from RandyMcMillan:1643654791-show-hide-gui-elements-based-on-size changing 5 files +224 −192
  1. RandyMcMillan commented at 7:08 pm on January 31, 2022: contributor
    The debugwindow - network graph hides ui elements btnClearTrafficGraph, lblGraphRange, sldGraphRange when at minimumHeight, it also hides the groupBox at minimumWidth - this maximizes the dimensions of the traffic graph in these small dimensions.
  2. RandyMcMillan force-pushed on Feb 2, 2022
  3. RandyMcMillan force-pushed on Feb 2, 2022
  4. RandyMcMillan commented at 9:16 am on February 2, 2022: contributor
    commit a1bd27fa5f2c166798e331081403040027656889 rebase and set side panel to hide at 2x the minimum width of app window. Same functionality as #539 commit 874b2d8 screen cast - without other changes.
  5. jarolrod added the label Feature on Feb 2, 2022
  6. jarolrod added the label UI on Feb 2, 2022
  7. jarolrod commented at 6:27 am on February 4, 2022: member
    From a UX perspective, why would we ever want to hide access to the durations slider and the current in/out values? Perhaps we could make more efficient use of the space in displaying the slider and in/out values as was attempted in #90.
  8. RandyMcMillan commented at 3:50 pm on February 4, 2022: contributor

    @jarolrod

    Part of what I have added to my thought process is how this will translate to the mobile U/I (android/etc) - I have implemented a hybrid version of both of these approaches - but haven’t posted a PR to it.

    Some of my conclusions to these approaches (and the gui repo in general) - is that it may be beneficial to have a hybrid of both implementations - it would lend itself to a mobile portrait/landscape design idiom.

    I may be wrong - but there doesn’t seem to be enough reviewing members/contributors that have experience in the nuances of cross platform design including mobile U/I support. I don’t see the Android developers reviewing this stuff to ensure up/down stream compatibility - that seems weird/negligent to me, having done mobile UI design for web, macOS/(OSX) and iOS and (Apache/Cordova) work.

  9. RandyMcMillan commented at 7:13 pm on February 5, 2022: contributor

    I find it strange that this web interface collapses in a “responsive U/I” design - but you ask why would “we” want to do this. Who is “we”? Because most of modern UI/UX interface design has adopted this a long time ago at this point.

    Screen Shot 2022-02-05 at 2 09 05 PM

  10. luke-jr commented at 10:34 pm on February 5, 2022: member
    How about moving the current values on top of the graph (top-left?) instead?
  11. RandyMcMillan commented at 7:31 pm on February 8, 2022: contributor
    @luke-jr - I agree - thanks for your suggestion - I will revisit this PR shortly
  12. hebasto renamed this:
    gui: network graph - show/hide panels based on window width/height
    network graph - show/hide panels based on window width/height
    on Feb 9, 2022
  13. RandyMcMillan force-pushed on Feb 14, 2022
  14. RandyMcMillan commented at 6:28 pm on February 14, 2022: contributor

    @luke-jr - how about a simple overlay? Note: the transparency can (obviously) be adjusted.

    Screen Shot 2022-02-14 at 1 22 45 PM Screen Shot 2022-02-14 at 1 22 51 PM

    note: this approach removed 39 lines of code.

  15. luke-jr commented at 7:24 pm on February 14, 2022: member
    That looks kind of hard to read IMO. Maybe just make it the default widget background behind the text? (QFrame for borders?)
  16. RandyMcMillan force-pushed on Feb 14, 2022
  17. RandyMcMillan commented at 10:17 pm on February 14, 2022: contributor

    @luke-jr - This is pretty close to the original colors… I will tighten all this up - I just want to make sure the colors are good before anything else…

    Screen Shot 2022-02-14 at 5 16 03 PM Screen Shot 2022-02-14 at 5 15 55 PM

  18. luke-jr commented at 11:15 pm on February 14, 2022: member

    The correct colours to match “original” are going to vary based on the user’s colour theme.

    But maybe as long as we make sure the text and background have good contrast, the theme doesn’t need to apply within the overlay since the graph itself is unthemed.

    I do think the current screenshots are still a bit hard to read. Maybe bolding the text will do the trick?

  19. RandyMcMillan commented at 11:31 am on February 15, 2022: contributor
    I will look into toggling the graph (light/dark) themes based on system preferences - it may be a good “feature”.
  20. gui: network graph - show/hide panels based on window width/height
    The debugwindow - network graph hides ui elements
    btnClearTrafficGraph, lblGraphRange, sldGraphRange
    when at minimumHeight, it also hides the groupBox
    at minimumWidth - this maximizes the dimensions of
    the traffic graph in these small dimensions.
    5510195a7f
  21. gui: network graph - show/hide panels based on click event cf6f2324f0
  22. gui: network graph - show/hide slider based on click event dbb007e00e
  23. gui: network graph - totals frame - implement original color scheme 6577b7bae9
  24. RandyMcMillan force-pushed on Feb 15, 2022
  25. RandyMcMillan commented at 11:58 pm on February 15, 2022: contributor

    @luke-jr

    I have adjusted the colors based on the global template and an accessibility audit. If we are going to be this nuanced - please actually compile/run the PR changes. [deleted]

    Screen Shot 2022-02-15 at 6 23 37 PM

    Screen Shot 2022-02-15 at 6 23 29 PM

  26. RandyMcMillan force-pushed on Feb 16, 2022
  27. gui: network graph - totals frame - background color base on acc. audit 1afde286fc
  28. RandyMcMillan force-pushed on Feb 16, 2022
  29. RandyMcMillan marked this as a draft on Feb 17, 2022
  30. DrahtBot commented at 5:41 am on February 25, 2022: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

    Conflicts

    No conflicts as of last run.

  31. hebasto commented at 3:18 pm on March 27, 2023: member
    Closing this due to lack of activity. Feel free to reopen.
  32. hebasto closed this on Mar 27, 2023

  33. bitcoin-core locked this on Mar 26, 2024

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 11:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me