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

Ui Node Borders #7795

Merged
merged 34 commits into from
Jun 14, 2023
Merged

Ui Node Borders #7795

merged 34 commits into from
Jun 14, 2023

Commits on Feb 23, 2023

  1. changes:

    * Added the module `border`
    * Added `BorderStyle` and `CalculatedBorder` types.
    * Added `border_style` and `calculated_border` fields to `NodeBundle` and `ButtonBundle`
    * Added the `extract_uinode_borders` system to the UI Render App.
    * Added the `calculate_borders_system` which calculates the border geometry for each node.
    * Added the UI example `borders`
    * Changed the button example to give the button a border.
    ickshonpe committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    46b7e5e View commit details
    Browse the repository at this point in the history
  2. fix up borders example

    ickshonpe committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    f91e4f3 View commit details
    Browse the repository at this point in the history
  3. changes:

    * Changed `calculate_borders_system` to remove the previous border geometry of degnerate nodes before continuing.
    ickshonpe committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    b485e17 View commit details
    Browse the repository at this point in the history
  4. lint fix

    ickshonpe committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    de7c9d8 View commit details
    Browse the repository at this point in the history
  5. improvements to example

    ickshonpe committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    caa72fd View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d77ebe9 View commit details
    Browse the repository at this point in the history
  7. force inner_min <= inner_max to prevent overlap of opposite edge bord…

    …ers in `calculate_borders_system`
    ickshonpe committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    df56157 View commit details
    Browse the repository at this point in the history
  8. cargo fmt --all

    ickshonpe committed Feb 23, 2023
    Configuration menu
    Copy the full SHA
    ba63de0 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. Configuration menu
    Copy the full SHA
    f3f9a16 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    457648c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2b214c View commit details
    Browse the repository at this point in the history
  4. fmt

    ickshonpe committed Feb 24, 2023
    Configuration menu
    Copy the full SHA
    51e8088 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. changes:

    * moved `compute_matrix` out of loop
    * added comments to border module
    * removed border overflow clamping
    ickshonpe committed Mar 1, 2023
    Configuration menu
    Copy the full SHA
    6630107 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. changes:

    * Renamed `BorderStyle` to `BorderColor` and made it a tuple-struct.
    * Added `BorderBundle` which contains the components needed by a node to draw a border.
    * Renamed the `border_style` fields of `NodeBundle` and `ButtonBundle` to `border_color`.
    ickshonpe committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    0e7fdff View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2023

  1. changes:

    * Removed the `borders` module.
    * Removed the `CalculatedBorder` type.
    * Removed the `calculate_borders_system
    * Moved the border rect calculations into `extract_uinode_borders`.
    ickshonpe committed Mar 11, 2023
    Configuration menu
    Copy the full SHA
    d806d33 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4202bde View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2023

  1. Configuration menu
    Copy the full SHA
    9eb6262 View commit details
    Browse the repository at this point in the history
  2. format and build pages

    ickshonpe committed Apr 14, 2023
    Configuration menu
    Copy the full SHA
    98c88b6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    29e2205 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ac9278f View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2023

  1. Update examples/ui/borders.rs

    Co-authored-by: Nico Burns <nico@nicoburns.com>
    ickshonpe and nicoburns committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    f496b54 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e886d7b View commit details
    Browse the repository at this point in the history
  3. changes:

    * fixed viewport size calculation in `extract_uinode_borders`
    * added `viewport_debug` example
    ickshonpe committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    4f0e38b View commit details
    Browse the repository at this point in the history

Commits on May 31, 2023

  1. Configuration menu
    Copy the full SHA
    5dcae37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d045842 View commit details
    Browse the repository at this point in the history
  3. cargo fmt --all

    ickshonpe committed May 31, 2023
    Configuration menu
    Copy the full SHA
    1550763 View commit details
    Browse the repository at this point in the history
  4. some minor fixes:

    * To calculate the logical size of the viewport for viewport coordinates, the physical size of the window shouldn't be multipied by the `UiScale` only the window's scale factor.
    * Use the viewport width to determine the border thickness for root UI nodes with percentage border values.
    ickshonpe committed May 31, 2023
    Configuration menu
    Copy the full SHA
    ad17940 View commit details
    Browse the repository at this point in the history
  5. Fixed unused imports.

    ickshonpe committed May 31, 2023
    Configuration menu
    Copy the full SHA
    f8878cf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    e3dcf7c View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2023

  1. Configuration menu
    Copy the full SHA
    af4c565 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fbf687e View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2023

  1. Configuration menu
    Copy the full SHA
    7adbf2c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d2bc8c6 View commit details
    Browse the repository at this point in the history

Commits on Jun 14, 2023

  1. cargo fmt --all

    ickshonpe committed Jun 14, 2023
    Configuration menu
    Copy the full SHA
    b34f363 View commit details
    Browse the repository at this point in the history