Files
cappuccino/AppKit
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
..
2020-08-30 09:47:21 +02:00
2013-01-23 15:48:55 +07:00
2025-09-02 17:38:10 +03:00
2026-04-03 19:00:09 +02:00
2013-01-23 15:48:55 +07:00
2026-10-25 17:41:02 +01:00
2025-12-26 10:42:41 +01:00
2013-01-24 19:18:39 +08:00
2016-02-06 20:39:49 +01:00
2016-02-06 20:39:49 +01:00
2026-10-25 17:41:02 +01:00
2026-07-21 15:15:53 -06:00
2026-07-21 15:15:53 -06:00
2026-07-21 15:15:53 -06:00
2026-10-25 17:55:46 +01:00
2026-10-25 17:41:02 +01:00
2026-01-03 19:44:24 +01:00
2026-07-21 15:15:53 -06:00
2026-08-25 21:09:51 +02:00