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
Ross Boucher
358251ec44
Fix for #92 - CPColor colorWithHexString should accept lowercase strings
...
[#92 state:resolved]
2008-10-06 15:45:26 -07:00
Ross Boucher
a40fbd7961
Add the first draft of documentation inline.
2008-09-10 15:11:37 -07:00
Francisco Ryan Tolmasky I
a97bb72800
Initial commit.
...
Reviewed by francisco, ross and tom.
2008-09-04 03:52:20 -07:00