mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
The purpose of this feature is to create theme for every object of the AppKit. Previously, we could not theme object like CPColor, however CPColor could be very interesting to theme, value like alternateSelectedControlColor were hard coded in the framework. With this PR, we can now theme a CPColor and take some values from the current theme of the application. Then, this PR offers the possibility to refactor the themeDescriptors, some classes contains theme attributes for other class (CPTabView and CPTabViewItem for instance). How doe it work ? A new category _CPObject+Theme.j has been added to the AppKit. This category contains every theme methods needed to theme an object (previously this category was in CPView). We add utils method like _encodeThemeObjectsWithCoder: and _decodeThemeObjectsWithCoder: in this category to be able to code and decode easily a coder for every object (this is generic). This PR did not refactor the themeDescriptors, it only add this new mechanism for the methods alternateSelectedControlColor and secondarySelectedControlColor of CPColor. We will need to refactor that gradually
115 lines
3.1 KiB
Plaintext
115 lines
3.1 KiB
Plaintext
/*
|
|
* AppKit.j
|
|
* AppKit
|
|
*
|
|
* Created by Francisco Tolmasky.
|
|
* Copyright 2008, 280 North, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
@import "_CPObject+Theme.j"
|
|
@import "_CPToolTip.j"
|
|
@import "CALayer.j"
|
|
@import "CGGeometry.j"
|
|
@import "CPAccordionView.j"
|
|
@import "CPAlert.j"
|
|
@import "CPAnimation.j"
|
|
@import "CPAppearance.j"
|
|
@import "CPApplication.j"
|
|
@import "CPArrayController.j"
|
|
@import "CPBezierPath.j"
|
|
@import "CPBox.j"
|
|
@import "CPBrowser.j"
|
|
@import "CPButton.j"
|
|
@import "CPButtonBar.j"
|
|
@import "CPCheckBox.j"
|
|
@import "CPCib.j"
|
|
@import "CPCibBindingConnector.j"
|
|
@import "CPCibConnector.j"
|
|
@import "CPCibControlConnector.j"
|
|
@import "CPCibHelpConnector.j"
|
|
@import "CPCibLoading.j"
|
|
@import "CPCibOutletConnector.j"
|
|
@import "CPCibRuntimeAttributesConnector.j"
|
|
@import "CPClipView.j"
|
|
@import "CPCollectionView.j"
|
|
@import "CPCollectionViewItem.j"
|
|
@import "CPColor.j"
|
|
@import "CPColorPanel.j"
|
|
@import "CPColorSpace.j"
|
|
@import "CPColorWell.j"
|
|
@import "CPComboBox.j"
|
|
@import "CPCompatibility.j"
|
|
@import "CPControl.j"
|
|
@import "CPController.j"
|
|
@import "CPCookie.j"
|
|
@import "CPCursor.j"
|
|
@import "CPDatePicker.j"
|
|
@import "CPDocument.j"
|
|
@import "CPDocumentController.j"
|
|
@import "CPEvent.j"
|
|
@import "CPFlashMovie.j"
|
|
@import "CPFlashView.j"
|
|
@import "CPFont.j"
|
|
@import "CPFontManager.j"
|
|
@import "CPGradient.j"
|
|
@import "CPGraphics.j"
|
|
@import "CPImage.j"
|
|
@import "CPImageView.j"
|
|
@import "CPKeyBinding.j"
|
|
@import "CPLevelIndicator.j"
|
|
@import "CPMenu.j"
|
|
@import "CPMenuItem.j"
|
|
@import "CPOpenPanel.j"
|
|
@import "CPOutlineView.j"
|
|
@import "CPPanel.j"
|
|
@import "CPPasteboard.j"
|
|
@import "CPPopover.j"
|
|
@import "CPPopUpButton.j"
|
|
@import "CPPredicateEditor.j"
|
|
@import "CPPredicateEditorRowTemplate.j"
|
|
@import "CPProgressIndicator.j"
|
|
@import "CPRadio.j"
|
|
@import "CPResponder.j"
|
|
@import "CPRuleEditor.j"
|
|
@import "CPScroller.j"
|
|
@import "CPScrollView.j"
|
|
@import "CPSearchField.j"
|
|
@import "CPSecureTextField.j"
|
|
@import "CPSegmentedControl.j"
|
|
@import "CPShadow.j"
|
|
@import "CPSlider.j"
|
|
@import "CPSound.j"
|
|
@import "CPSplitView.j"
|
|
@import "CPStepper.j"
|
|
@import "CPTableColumn.j"
|
|
@import "CPTableView.j"
|
|
@import "CPTabView.j"
|
|
@import "CPText.j"
|
|
@import "CPTextField.j"
|
|
@import "CPTokenField.j"
|
|
@import "CPToolbar.j"
|
|
@import "CPToolbarItem.j"
|
|
@import "CPTreeNode.j"
|
|
@import "CPUserDefaultsController.j"
|
|
@import "CPView.j"
|
|
@import "CPViewAnimation.j"
|
|
@import "CPViewController.j"
|
|
@import "CPVisualEffectView.j"
|
|
@import "CPWebView.j"
|
|
@import "CPWindow.j"
|
|
@import "CPWindowController.j"
|
|
@import "CPWorkspace.j" |