Skip to content

Commit

Permalink
refactor(runtime/window/manager.cc): improve window JSON output
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Jan 30, 2025
1 parent 7c0a759 commit 1b7a17b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/runtime/window/manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -451,8 +451,25 @@ namespace ssc::runtime::window {
{"location", this->bridge->navigator.location.json()},
{"width", this->options.headless ? screen.width : size.width},
{"height", this->options.headless ? screen.height : size.height},
{"minWidth", this->options.headless ? screen.width : this->options.minWidth},
{"minHeight", this->options.headless ? screen.height : this->options.minHeight},
{"margin", this->options.margin},
{"radius", this->options.radius},
{"minimizable", this->options.minimizable},
{"maximizable", this->options.maximizable},
{"resizable", this->options.resizable},
{"closable", this->options.closable},
{"frameless", this->options.frameless},
{"utility", this->options.utility},
{"status", this->status},
{"readyState", readyState},
{"origin", this->options.origin},
{"aspectRatio", this->options.aspectRatio},
{"titlebarStyle", this->options.titlebarStyle},
{"windowControlOffsets", this->options.windowControlOffsets},
{"backgroundColorDark", this->options.backgroundColorDark},
{"backgroundColorLight", this->options.backgroundColorLight},
{"resourcesDirectory", this->options.resourcesDirectory},
{"backgroundColor", this->backgroundColor.json()},
{"screen", JSON::Object::Entries {
{"width", screen.width},
Expand Down

0 comments on commit 1b7a17b

Please sign in to comment.