Place to park issues that we want to track but aren't active/higher priority. Some times will be moved here/feel free to add tickets that can easily be moved to the active project
0
stars
0
forks
source link
chore(global): add global state bindings to UI for common getter methods #3
We should automatically update state with common UI data so that we can act on them, a suggested list for state would be the following:
struct UiMeta {
fullscreen: bool, // Should automatically toggle
last_resized: Duration, // Any time the window is resized, after we finish resizing ( not during the resize) we should set this to the timestamp it happened.
focused: bool, // if app is the currently focused window.
height: u64, // Duh
width: u64, // Duh
platform: Platform, // We can probably reuse an existing enum here, but this should be windows, macos, etc.
mobile_size: bool // Used to determine if the UI is below the min-size, i.e. mobile view
}
We should automatically update state with common UI data so that we can act on them, a suggested list for state would be the following: