mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-10 00:48:45 +00:00
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.