Files
cappuccino/AppKit/CPWindow
David Richardson d55a620223 AppKit: Move platform window decoration from application state into theme variants
Remove incomplete host-platform OS behaviour API and its platform-specific conditionals. Derive window buttons, title, and title bar layout from window view's own theme, and select platform variants through a private function.

* CPApplication.j: Remove setOSBehavior:, OSBehavior, shouldMimicWindows and the simulatesWindows accessors, with the Info.plist keys and user default they read; set the default theme through _CPThemeVariant.

* CPApplication_Constants.j: Remove the OS behaviour constants, dictionary and notification.

* CPCompatibility.j: Add _CPBrowserOperatingSystem, returning the detected host operating system.

* CPTheme.j: Remove CPThemeStateWindowsPlatform; add _CPThemeVariant, returning the base theme.

* CPWindow.j: Remove the _close call to the window view.

* _CPStandardWindowView.j:
  - Remove the OS behaviour observer, _close and _osBehaviorDidChange:.
  - Place the buttons and title from theme values on every layout, with fixed defaults where a theme supplies none.
  - Read title bar and sheet values from the window view's theme instead of the default theme.

* _CPTitleableWindowView.j: Read title-margin at layout time instead of caching it.
2026-11-08 13:51:36 -06:00
..
2013-01-23 15:48:55 +07:00