Aparajita Fishman
32dc0826cb
Text size and theming enhancements
...
- _CPImageAndTextView adds extra pixels to allow for fractional pixels in -sizeToFit.
- NSButton now allows buttons that are not fixed height, if the theme allows it.
- Documented the mapping between bezel style constants and their IB style names.
2012-07-13 21:00:02 -07:00
aparajita
7586af8f91
Merge pull request #1606 from slevenbits/system-font
...
Overhaul of system font handling
- System fonts now track the currently configured system font at runtime.
- You can specify CPFontCurrentSystemSize as a system font size to track the currently configured system font size at runtime.
- Theme fonts and nib2cib now determine face and size at runtime, there is no need to recompile if the system font is changed in Info.plist.
- All hard-coded references to 12.0 as a system font size have been replaced by the current system font size.
- Documented the font substitution algorithm and how to use custom fonts in the CPFont class docs.
- See Tests/Manual/FontEnhancementTest for a demo.
2012-07-12 07:01:30 -07:00
Aparajita Fishman
99cd246ed8
Fix clipping of text due to fractional pixels
2012-07-10 18:08:33 -07:00
Aparajita Fishman
6b6f5d98e4
Overhaul of system font handling
...
- System fonts now track the currently configured system font at runtime.
- You can specify CPFontCurrentSystemSize as a system font size to track the currently configured system font size at runtime.
- Theme fonts and nib2cib now determine face and size at runtime, there is no need to recompile if the system font is changed in Info.plist.
- All hard-coded references to 12.0 as a system font size have been replaced by the current system font size.
2012-07-09 15:29:56 -07:00
Aparajita Fishman
aeb2671fc0
CPImageView enhancements
...
- Changed from deprecated image scaling constants to new ones.
- Added support for CPImageScaleProportionallyUpOrDown (thanks BlairDuncan).
- Cleaned up image layout code.
2012-04-12 14:55:46 -04:00
aparajita
22fc8337a3
Merge pull request #1257 from aparajita/_CPImageAndTextView-API
...
Add textFrame method to locate the text within the view
2012-04-07 10:51:10 -07:00
Aparajita Fishman
029e45d027
Use === when possible, made it clearer where the ternary operator ends
2012-04-03 17:17:26 -07:00
Alexander Ljungberg
9367566e61
Fixes #1412 . IE rendered clearColor shadows in black.
2011-12-06 23:01:26 +00:00
Aparajita Fishman
bfd8eefa0e
Added textFrame method to locate the text within the view
2011-05-09 21:15:12 -04:00
Aparajita Fishman
739c844b10
Make sure multiple _CPImageAndTextViews sharing the same image are all notified when it is loaded.
2011-05-04 12:16:43 -04:00
Alexander Ljungberg
43f4ecc1b4
More consistent CPCompatibility constant naming.
2011-03-23 23:54:56 -04:00
Aparajita Fishman
5cd00d71c7
Fixed sizeToFit drawing when there is no image, setNeedsDisplay is no longer needed after sizeToFit.
2010-11-06 17:12:09 -04: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
Aparajita Fishman
a175e71906
- Fixed type of _textSize.
...
- Changed NULL to nil.
2010-09-30 17:30:58 -04:00
Aparajita Fishman and Klaas Pieter Annema
6680a1f2a7
Overhaul of CPButton and supporting classes to support image positioning the way Cocoa does
2010-09-08 22:13:39 +02:00
Klaas Pieter Annema
c9752195ac
several CPButton theming additions
...
- made image and alternate image a theme property
- made image margins theme-able
2010-08-25 13:26:44 +02:00
Alexander Ljungberg
3fa47ee9ec
Fixed: [_CPImageAndTextView setDimsImage] wasn't working right due to checking if a non existent variable equalled the current value.
2010-05-26 20:09:01 -04:00
Klaas Pieter Annema and Ross Boucher
ee2f361425
Reimplemented setImageDimsWhenDisabled: on CPButton to only dim the image instead of the entire button
2010-05-12 16:51:28 -07:00
Ross Boucher
12db25a829
Fix for a potential error in IE when setting a width to a negative value.
2010-03-31 12:11:21 -07:00
Ross Boucher
64da7f8775
define out DOM code from _CPImageAndTextView.
...
Closes #562 .
2010-03-27 13:37:13 -07:00
Scott Kyle and Ross Boucher
b0d355a71c
Some somewhat minor style fixes
2010-03-24 19:46:38 -07:00
Ross Boucher
c9cf21be80
Fix for sizeWithFont: in Internet Explorer.
2010-03-16 16:01:44 -07:00
Ross Boucher
1328bc732f
Move around some imports and constant declarations.
2010-02-17 16:29:57 -08:00
Ross Boucher
f61a6ba5ff
Fix an issue where _CPImageAndTextView, if it had an image, wouldn't show the image if it hadn't already been loaded. In other words, it now listens for image load events and redisplays.
2010-01-08 09:34:43 -08:00
Ross Boucher
37c1d804f6
Fix for text shadows sometimes being the wrong color.
...
Closes #359 .
2009-12-11 16:54:38 -08:00
Ross Boucher
1e723945f8
Should have removed rather than commented out these lines
2009-12-04 11:25:20 -08:00
Ross Boucher
dfb7599bb6
Remove the cursor hack from CPImageAndTextView, set the cursor globally to the default in CPApplication
2009-12-04 11:22:57 -08:00
Francisco Ryan Tolmasky I
e8dd56bda7
Added HTML 5 drag and drop support for WebKit/Safari.
...
Reviewed by me.
2009-08-17 03:50:52 -07:00
Ross Boucher
717781655f
Support CPImageOverlaps mode for _CPImageAndTextView
2009-03-27 11:27:08 -07:00
Francisco Tolmasky
44d837c1eb
A number of improvements to theming and bug fixes.
...
Reviewed by me.
2009-02-13 01:48:44 -08:00
Francisco Ryan Tolmasky I
d0db80335b
Fixed bug where buttons wouldn't shrink after sizeToFitting.
...
Reviewed by me.
2009-01-28 12:38:55 -08:00
Francisco Ryan Tolmasky I
f0defa1799
Fix for exception in IE with new imageandtextview code.
...
Reviewed by me.
2009-01-28 00:10:37 -08:00
Francisco Ryan Tolmasky I
f28f2c6e8c
Performance improvements to pop up menus.
...
Reviewed by me.
2009-01-27 16:57:46 -08:00
Francisco Ryan Tolmasky I
10b34965bd
Added support for cross-browser text shadows in _CPImageAndTextView.
...
Reviewed by me.
2009-01-27 15:41:32 -08:00
Francisco Ryan Tolmasky I
9e7fd7f74f
Began integrating new imageandtextview into CPButton.
...
Reviewed by me.
2009-01-27 01:06:21 -08:00
Francisco Ryan Tolmasky I
b0d5ca2830
Added vertical alignment support to _CPImageAndTextView.
...
Reviewed by me.
2009-01-26 22:35:01 -08:00
Francisco Ryan Tolmasky I
9e9266712a
Changed _CPImageAndTitleView to _CPImageAndTextView.
...
Reviewed by me.
2009-01-23 18:01:05 -08:00