Alexander Ljungberg
70b5105daa
Fixed: CPColor colorWithHue:saturation:brightness: returning undefined.
...
A hue of 1.0 would cause the CPColor colorWithHue:saturation:brightness: method to return `undefined` instead of a CPColor instance.
2013-04-21 14:22:34 +01:00
Alexander Ljungberg
d00846aae7
Fixed: CPColor colorWithHue:saturation:brightness: parameters not clamped.
...
Previously, the parameters to CPColor colorWithHue:saturation:brightness: could be specified below 0 or above 1.0.
Now the values are clamped so that values below 0 are taken as 0 and values above 1.0 and taken as 1.0.
2013-04-21 14:21:47 +01:00
Alexander Ljungberg
95d4bef3ea
New: - CPColor hueComponent, saturationComponent and brightnessComponent.
2013-04-20 13:42:05 +01:00
Alexander Ljungberg
4e1a1415f6
Fixed: - CPColor hsbComponents range.
...
Previously, - CPColor hsbComponents returned degrees and percents. With the latest change to - CPColor colorWithHue:saturation:brightness: this was inconsistent.
Now - CPColor hsbComponents returns its components as factors in the 0-1.0 range.
2013-04-20 13:41:16 +01:00
Alexander Ljungberg
40579b5d56
Fixed: parameter range of CPColor colorWithHue:saturation:brightness:.
...
Previously, + CPColor colorWithHue:saturation:brightness: took its parameters as degrees and percent (e.g. hue between 0º and 360º, saturation and brightness between 0% and 100%). However, in Cocoa the components are given as factors (0.0-1.0) like other colour methods.
This fix makes + CPColor colorWithHue:saturation:brightness: work like in Cocoa.
2013-04-20 12:41:13 +01:00
Aparajita Fishman
7c677de10a
Fixed bugs in CPColorWithImages and CPImageInBundle
2013-02-22 21:58:12 -05:00
Aparajita Fishman
b28ff18918
Adding missing key
2013-02-08 07:48:41 +08:00
Aparajita Fishman
6a7e0ff921
Reworked PatternColor to be a lot smarter, supports much more concise expression of images.
...
- Removed unused images.
- Renamed slices to make more sense.
- Fixed typos in slice names.
2013-01-26 15:50:07 +08:00
Aparajita Fishman
95790d55d5
Object description formatting
...
- Made CPDescriptionOfObject smarter about detecting CG objects
- CPObject, CPArray, CPDictionary do a better (as in perfect) job of indenting nested objects
- CPDictionary is displayed using Cocoa-style key = value; notation
2013-01-25 19:19:01 +08:00
Martin Carlberg
458fa9d02e
Fixed a lot of small bugs found by new warning message from compiler
2013-01-18 14:24:37 +01:00
Alexander Ljungberg
7c56ea47dd
Skeleton CPColor colorUsingColorSpaceName:.
...
The method does nothing but is provided for API compatibility with `NSColor`.
2012-10-15 01:00:29 +01:00
Alexander Ljungberg
eeca40c6f0
Implemented CPColor colorWithSRGBRed:green:blue:alpha:.
2012-03-10 11:52:49 +00:00
Alexander Ljungberg
2a031e82a4
Constrain CPColor components to [0.0, 1.0].
2012-03-10 10:11:35 +00:00
Alexander Ljungberg
107103bcbb
Fixes #1413 : Internet Explorer colorWithCSSString crash.
...
Syntax such as [[CPColor colorWithCSSString:@"rgba(0,0,0,0.5)"] cssString] lead to a CSS string incompatible with browsers without the CSS rgba feature.
2011-12-06 22:45:26 +00:00
Alexander Ljungberg
3cee00323c
Don't separate statements by commas.
2011-11-10 12:31:16 +00:00
Aparajita Fishman
860f0d5846
CPColor and CPImage enhancements
...
- Enhanced -description method of CPImage and CPColor to show the exact content, especially for pattern colors.
- Added CPColorWithImages() convenience function, analogous to PatternColor() function used in theme descriptors.
- Added @cond/@endcond in CPColor to ignore local variables.
- Sample app included.
2011-05-20 00:23:55 -07:00
Alexander Ljungberg
5a2e5a7de3
Fixed CPColor isEqual: for pattern images.
2011-05-09 21:38:32 -04:00
Alexander Ljungberg
3db05c94ab
Closes #682 . Fix CPColor isEqual:.
2011-05-09 20:59:38 -04:00
Alexander Ljungberg
ff7f469f9f
Fixed: CPColor colorWithCSSString did not properly handle the alpha component of the CSS rbga() syntax. Fixes #687 .
2011-04-10 22:16:28 -04:00
Stephen Ierodiaconou
6a942630e4
Fixing spelling mistakes
2011-01-24 11:05:48 +02:00
Alexander Ljungberg
1ae31c9374
Style fixes.
2010-10-01 17:28:55 -04:00
Sami Samhuri
032639234e
Use CPTextFields for RGB, HSB, and hex inputs in CPSliderColorPicker
...
The old DOM based fields only accepted a few characters. Backspace and
other expected functionality was broken. Switching to CPTextFields
makes them behave as expected.
2010-09-13 15:20:26 +02:00
Sami Samhuri
c78b5e580a
Reliably convert colors to hex strings
...
Converting a hex string to CPColor and back to a hex string now returns
the same initial hex string. (Fixed an off-by-one error)
2010-09-10 10:01:57 +02:00
Aparajita Fishman
0a26288d88
Fix for issue #804 (doxygen fails to generate class references), also did a bit of formatting cleanup in CPColor.j
2010-07-30 15:48:06 -07:00
Scott Kyle
1899250a53
Semicolons are nice...
2010-06-10 16:42:28 -05:00
Ross Boucher
af11b4e423
Fix for pattern images not being displayed correctly under the new background color system
2010-03-23 14:32:24 -07:00
Ross Boucher
0cf86318ce
Make semi-transparent background colors work in browsers that don't support RGBA.
...
Closes #569 .
2010-03-23 14:26:32 -07:00
Francisco Ryan Tolmasky I
78cb522874
Temporarily revert "Make semi-transparent background colors work in browsers that don't support RGBA."
...
This fix was making lots of resources not show up.
This reverts commit f8c13f1e30 .
2010-03-23 01:22:59 -07:00
Ross Boucher
f8c13f1e30
Make semi-transparent background colors work in browsers that don't support RGBA.
...
Closes #569 .
2010-03-22 19:00:49 -07:00
Tom Robinson
0791fa0ad3
Eliminate a couple accidental globals.
2010-01-28 00:18:40 -08:00
Francisco Ryan Tolmasky I
ddc9334af3
Merge branch 'master' into tableview
...
Conflicts:
AppKit/CPTableColumn.j
AppKit/CPTableView.j
2009-08-10 15:09:10 -07:00
lowell vizon
377f331b47
Documentation Edits: Replaced <code> and <pre> tags with \c; this allows monospaced text to be displayed with formatted text without needing a new line. See AppKit/CPView after generating documentation for examples. Also added - and + signs to the above changes when referring to either an -instanceMethod or a +classMethod. --lowell@cocoastep
...
Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com >
2009-08-08 03:50:50 +08:00
Francisco Ryan Tolmasky I
cb81eeed15
Fix for selection in tableview.
...
Reviewed by me.
2009-07-07 18:42:44 -07:00
Nabil Elisa
c7f81691bf
Added more colors to satisfy issue #182
2009-06-20 14:32:57 -07:00
Ross Boucher
cfa21b0c96
Add a randomColor method. Useful for debugging.
2009-05-23 17:28:21 -07:00
Ross Boucher
850125b8ab
Add documentation groups
2009-05-18 15:43:36 -07:00
Ross Boucher
e05816419e
Some documentation enhancements.
2009-05-14 22:48:42 -07:00
Ross Boucher
9c7f07979b
Add CPBezierPath, clean up some of CGPath and CGContext
2009-05-14 19:06:58 -07:00
Ross Boucher
0501f12017
Add support for clear color. Closes #60 .
2009-05-04 18:07:16 -07:00
Ross Boucher
6d8d4b59cc
Add an opacity slider to the color panel
2009-04-16 22:51:47 -07:00
Francisco Tolmasky
844919cfda
Combined brightness bar and slider.
...
Reviewed by me.
2009-04-15 00:57:43 -07:00
Ross Boucher
51b0231f68
Cached +color returned colors so we create fewer objects in most apps.
2009-04-04 22:34:59 -07:00
Ross Boucher
b55140d50a
Add isEqual: to CPColor.
2009-04-04 22:34:42 -07:00
Francisco Tolmasky
880e4dfb3a
Merge branch 'master' into tolmasky
...
Conflicts:
AppKit/CPControl.j
AppKit/CPTextField.j
2009-03-18 17:41:17 -07:00
Leif Singer
547ed38855
Modified CPColor's hexToRGB to also accept hex colors with only three characters, as is possible in CSS. E.g., 'ccc' will expand to 'cccccc', etc.
2009-02-26 17:24:34 -08:00
Francisco Ryan Tolmasky I
492f4b6480
First pass at themes in Cappuccino.
...
Reviewed by me.
2009-02-01 00:19:50 -08:00
Ross Boucher
8b68729041
Fix for http://cappuccino.lighthouseapp.com/projects/16499/tickets/60-cpcolorpanel-does-not-update-color-correctly
...
and for http://cappuccino.lighthouseapp.com/projects/16499/tickets/59-cpcolorpanel-defaults-to-white-on-init
[#59 state:resolved milestone:0.6.5]
[#60 state:resolved milestone:0.6.5]
2008-12-22 11:46:25 -05:00
Francisco Ryan Tolmasky I
d92fc8c4d0
Cleaned up old deprecated documentation stuff and added documentation to deploy.
...
Reviewed by me.
2008-12-10 15:57:31 -08:00
Francisco Ryan Tolmasky I
5144a5a579
Added @accessor support, @import, and fixed spacing bug with @selector.
...
Reviewed by ross.
2008-10-26 00:48:49 -07:00
Ross Boucher
f228934e54
Initial conversion to Doxygen style comments.
2008-10-12 15:57:01 -07:00