Klaas Pieter Annema
c87cb4bacd
properly fix CPThemeStateNormal behavior
...
- revert the previous fix
- explicitly check for CPThemeStateNormal in hasThemeState:
- update the test case
2011-01-05 12:30:14 +01:00
Klaas Pieter Annema
b6ea6530b7
hasThemeState: always returned no for normal state
2011-01-05 10:44:50 +01:00
Klaas Pieter Annema
80ec35fd0a
Merge branch 'hover-states'
2010-11-17 10:11:11 +01:00
Francisco Ryan Tolmasky I
52f7844aee
Made it so .h files are automatically included in AppKit (avoiding needing to manually include Platform.h, etc.).
...
Also changed a bunch of <AppKit/*> imports to "*" imports.
Reviewed by me.
2010-11-01 11:10:01 -07:00
Klaas Pieter Annema
c7fdad883a
add deprecation warning for class that have themeClass implemented
2010-10-25 16:14:33 +02:00
Klaas Pieter Annema
6e9f82212b
rename CPView +themeClass to +defaultThemeClass
2010-10-25 14:15:22 +02:00
Randall Luecke
99201dc3db
Initial commit for group rows in the TableView. Drawing code still needs to be cleaned up a LOT... still buggy. i.e. after you select a group row, any rows after that which are selected then get selected with a gray highlight color.
2010-10-08 00:44:17 -04:00
Klaas Pieter Annema
7aa7d61984
Implement hover states.
...
- Set CPWindow _acceptsMouseMovedEvents default to YES
- Add CPThemeStateHovered to CPTheme
- Add hovered logic to CPControl is hovered
2010-09-17 12:06:01 +02:00
Aparajita Fishman and Klaas Pieter Annema
0c4ce1e756
Additions to the theme API to open it up to developers and provide access to theme attributes defined in ThemeDescriptors.j:
...
- Current theme blend is available via CPApplication -themeBlend.
- List of themes is available via CPApplication -themes.
- CPThemeBlend adds the following methods:
themes
themeNames
- CPTheme adds a number of methods to access theme attributes:
classNames
attributesForClass:
attributeNamesForClass:
attributeWithName:forClass: (was _attributeWithName:forClass:)
valueForAttributeWithName:forClass
valueForAttributeWithName:inState:forClass:
- _CPThemeAttribute -values was added to access the dictionary of attribute values.
- Theme browser application that demonstrates the API.
- In the course of making the test app, added the function CGInsetEqualToInset().
2010-09-16 10:28:06 +02:00
Alexander Ljungberg
62f81f2601
Remove hardcoded Aristo theme from CPAlert. New CPTheme method to get the default HUD theme style, which defaults to the default theme + "-HUD". Clean up CPAlert slightly.
2010-08-19 19:11:52 -04:00
Randall Luecke
cffbf86351
TableView theming
2010-07-22 00:21:02 -05:00
Randall Luecke
d6ac30be75
CPTableView dataViews when selected now use the new CPThemeStateSelectedDataView state to avoid conflict with other CPControl theme states.
2010-05-19 01:55:01 -05:00
Ross Boucher
c478afee0f
Add a missing import to CPTheme.
...
Closes #527 .
2010-03-05 12:38:59 -08:00
Francisco Ryan Tolmasky I
b4c7af498b
Spacing fix.
...
Reviewed by me.
2009-06-01 17:38:19 -07:00
Francisco Ryan Tolmasky I
6ddb7851f6
Added generation code in a comment for future use if necessary.
...
Reviewed by me.
2009-06-01 17:17:45 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Francisco Tolmasky
99c29c5e61
Fix for subclasses not inherting themes, as well as finalizing theme API.
...
Closes #36 .
Closes #109 .
Reviewed by me.
2009-05-10 18:44:23 -07:00
Francisco Tolmasky
862af9cbae
First stab at fixing Themeing API.
...
Reviewed by me.
2009-05-10 13:04:02 -07:00
Francisco Tolmasky
0a32d13cb0
Support for blends.
...
Reviewed by me.
2009-03-16 17:00:02 -07:00
Francisco Tolmasky
a07211253c
Making CPThemedAttribute more robust.
...
Reviewed by me.
2009-03-09 15:07:29 -07:00
Francisco Tolmasky
6ad037e469
Fix for major theme state bug.
...
Reviewed by me.
2009-02-18 02:22:10 -08:00
Francisco Tolmasky
df5f6c692f
Additional theme changes.
...
Reviewed by me.
2009-02-05 21:17:59 -08:00
Francisco Ryan Tolmasky I
492f4b6480
First pass at themes in Cappuccino.
...
Reviewed by me.
2009-02-01 00:19:50 -08:00