Commit Graph

5207 Commits

Author SHA1 Message Date
Matthew Flatt
45b1b8419c Mac OS X: support Retina mode
Seems to work for Mac OS X 10.9 (Mavericks), at least.

In Retina mode, a drawing unit corresponds to two pixels on
the screen or in a bitmap created by `make-screen-bitmap'.
In particular, a bitmap created by `make-screen-bitmap' is
actually twice as big in each dimension as requested, and the
bitmap is scaled when transferring to other drawing contexts.
When transferring onto the screen, scalings cancel so that the
result looks right.

Adds `get-display-backing-scale` to `racket/gui/base`, and
also `get-backing-scale` to `bitmap%`.

To do: add a way to set the backing scale of a bitmap. That
option will provide a way to give controls higher-resolution
bitmaps as labels.

original commit: fac247d340455328ab7e18db10546939bb067f4a
2013-10-31 08:50:22 -06:00
Robby Findler
28a22d2290 separate out state for spell checking string constants
from that for spell checking scribble {} content

original commit: ae623ed82d361acac88f3d69220bee7d15707220
2013-10-25 22:55:07 -05:00
Robby Findler
2fa00c8972 allow 'text' as a possible category for colorizer results
original commit: a940a47aafe0b67b9a01aefaf578d02aa7d443ba
2013-10-25 22:55:06 -05:00
Matthew Flatt
5dc1631bda racket/gui: default application-file handler requeues on active-frame change
When files passed to the default application-file handler cannot be delivered
because no frame is active or the frame does not accept files, then retry
when the active frame changes in the future (in addition to when the
application-file handler itself is changed).

This adjustment should fix a long-standing problem where files are
not delivered to DrRacket on Mac OS X.

original commit: 973e650fc707deb689d4dd233c10be0d3667a3e3
2013-10-25 14:29:10 -06:00
Sam Tobin-Hochstadt
9b32497f41 Split out redex-gui-lib and redex-pict-lib packages.
original commit: 0f0920bd5c927b38c3c61bcab3a1e15e461f71b2
2013-10-19 19:05:57 -04:00
Matthew Flatt
cf59648e4e remove some unneeded dependencies
original commit: d5f6b72e6976a36d6777709711765af1117c959b
2013-10-15 17:50:32 -06:00
Robby Findler
037087bdd7 support svg-bytes for 2htdp/image images
original commit: 6e062466a0828d9689db53f3f7782e571cc90ded
2013-10-15 11:30:33 -05:00
Robby Findler
aeb68d32ab Fix collapse-newline in the case that the insertion point
is at the first position of the text.

closes PR 14043

Also, Rackety.

original commit: 88d61e096c37344747d3ead6dcbe3f36e2aa27e8
2013-10-12 18:46:57 -05:00
Robby Findler
3b456234fd contracts & units are not getting along; unbreak the build for now
original commit: 154d940a677ba8869d961b132b7fc57e65ba0bed
2013-10-02 10:34:37 -05:00
Robby Findler
ea85845cb3 tweaks to try to get more information on a new error in case it happens again
original commit: 7037120be7fca22a322f7c4fd48cce1546f4a618
2013-10-02 10:03:00 -05:00
Robby Findler
4d32cd43cc improve line number redrawing
it now checks to avoid drawing the line numbers when
the invalid region is not lined up in the X direction

original commit: f03bc18f685377d9254c5a0a2837134e5f24aac9
2013-09-30 17:01:11 -05:00
Matthew Flatt
b805bfc4ae racket/draw: faster draw-bitmap when alpha < 1.0
In common cases, use Cairo's alpha support instead of cloning the
bitmap to apply an alpha.

original commit: c3eae40f4c3dcda84096a544885751205783c1cd
2013-09-27 14:43:25 -04:00
Matthew Flatt
c10054b96a racket/gui docs: use 'compact style for some itemizations
original commit: 3b669c3c826ed06aaffc36c7828c96153118f79d
2013-09-26 14:21:39 -04:00
Robby Findler
2935b5c48b Fix a bug in color scheme setup
original commit: 9f465c4eef0f855bdb7be79968de275f65428604
2013-09-21 13:15:23 -05:00
Robby Findler
a7f437686b add 'require' to the begin keywords
and tweak the example for the color schemes

original commit: bece398a63bb8ef9d3cc07dbf10495017d0c684a
2013-09-20 16:29:13 -05:00
Ryan Culpepper
c8f58db2e9 extracted rackunit-gui package
original commit: 8512c365128064f3c1d3bdee768ce387cb358303
2013-09-15 13:49:35 -04:00
Matthew Flatt
f637542456 rackt/gui gtk: fix focus handing of group-panel%
Closes PR 14019

original commit: 61e5633a8c1ab86e0335c56c2d3f5821f2e347af
2013-09-15 08:29:44 -06:00
Robby Findler
3fae6207cf audit framework begin-edit-sequence calls
original commit: 2b30be326505b7073d71292de8edc20259af152c
2013-09-14 19:27:08 -05:00
Robby Findler
d9ee4d600f adjust esc;w so that it clears the anchor
original commit: c0462d0fed6d37c1f038dde141021f63505902b5
2013-09-13 21:44:31 -05:00
Robby Findler
dd39016e04 color scheme improvements
- shorten the example text
- fix a bug that would prevent info-based color schemes
  to be set properly when drracket first starts up
- make the preferences dialog examples use the user's
  preferred font, not the default font
- move the documentation and info buttons to the top
  of color scheme section of the prefs dialog
- added a checkbox to go back to the default version
  of the color scheme

original commit: a37d5399ae5f2e0cd6ea165612b282f5978b27c8
2013-09-13 21:18:01 -05:00
Robby Findler
1a2ab9f02d tweaks to fix multi-line labels (via newlines) in button%
original commit: 54f283bf86c99b6c3ee9ba30d144468b9e97c0cf
2013-09-13 16:03:38 -05:00
Matthew Flatt
9133d9cbc3 racket/gui gtk: drop initial selection of list-box item
Make behavior on Gtk more consistent with other platforms.

original commit: 2ea55efeec603d6b0a0c74a745ed39791f46c43a
2013-09-12 18:37:25 -06:00
Robby Findler
efff874295 fix test:set-list-box! contract
0 should be allowed

original commit: 7384af40b660c632f2ebb8a73ffdfa64e2090e4b
2013-09-12 19:00:20 -05:00
Robby Findler
f86e16a744 some improvements to color schemes
- better overview docs (now in the drracket manual)
- something inside the drracket gui to get the list of the
  available style names and to send you to the new docs

original commit: da4bb5991f760fff53cd5e1792e6ee1d1fb2a961
2013-09-10 12:42:37 -05:00
Robby Findler
745d56c49a clean up get-current-color-scheme{-name}
original commit: 78fbe54da018738634248745f5de24bc1d1de86f
2013-09-08 11:23:33 -05:00
Robby Findler
19a6ddbf32 make the example in the prefs dialog pick up the background color
more accurately

original commit: 49bd79ddb88c56359b48203bf95a71ef8e46b713
2013-09-08 11:23:33 -05:00
Robby Findler
47922f0da3 make the 'name field of color scheme be more forgiving
and improve the example in the docs to be more fool-proof
for copy/paste

original commit: 8311b620b4aa2ce7ce566174efb258e704ee8463
2013-09-08 11:23:33 -05:00
Robby Findler
b6500eee00 add string-constants? and rearrange string-constants pkgs
the rearrangement moves the string constants documentation
into a package over by the string-constants implementation
and adds the string-constants (meta) pkg.

original commit: 8cdd106b87b028522ad01a5304709d010db3cb9d
2013-09-08 11:23:32 -05:00
Robby Findler
3dcb304a79 add support for color schemes to the framework and use it in DrRacket
original commit: 1186f23543ccb017e35b40ffc012aa971f21f764
2013-09-07 13:12:04 -05:00
Robby Findler
3ab9f555d1 Revert "change the default colors a bit based on color-blindness feedback"
This reverts commit 3c439a773138ca86a3810de6a37912ff588f7d0e.

Instead of changing the default colors, add support for color
schemes and then use these colors as a starting point for a new
color scheme

original commit: 136c18f7e925a04115f631c7d17164ed2c8d268d
2013-09-07 13:12:04 -05:00
Robby Findler
099f76a83d adjust racket mode to restore the wordbreak map when it is removed
original commit: 2e49672561238acbceaa5e6e32e43d7202c50dff
2013-09-06 15:38:03 -05:00
Matthew Flatt
1fbac2ed6e racket/gui: fix get-plain-label and docs about labels
original commit: 5d7f1363e53b7dd8b6f8ba73ea402da807756e7d
2013-09-05 12:14:25 -06:00
Robby Findler
7157abc322 move unstable/2d out of the gui-lib pkg
original commit: f0539f0e651766c682333aef05e2e1c658337b24
2013-09-04 13:19:02 -05:00
Robby Findler
557c68fca8 add support for colors with alpha to get-color-from-user
Also, a bit of Rackety (triggered because I would have had to turn a
letrec into a letrec-values to support disabling the ok button (and
also because the code was indented with tabs and not just spaces))

original commit: c0c6861497ea714e2259a8b55bcdc9d28f83ef5d
2013-09-02 10:03:55 -05:00
Robby Findler
857a7a485f fix another error message from the preferences system
original commit: 6c601bfc2af634bb07c76bf548c3a46ec9612f7f
2013-09-01 15:06:12 -05:00
Robby Findler
d2bc8a709c adjust some error messages based on new conventions
original commit: 09458af39f91e7505d8162fe5748c6eba14fc22c
2013-09-01 07:57:08 -05:00
Matthew Flatt
994faa418c include license with each package
original commit: ff9da94cfb852d25cd54bc0d9a904c8ae46fe64c
2013-08-31 06:25:31 -06:00
Matthew Flatt
85ae8a5ddb fix multi-file drag-and-drop on Unix
Thanks to Laurent Orseau.

original commit: b5b2f1c2ad13436c2bf19ff9e6f35d8400505ff7
2013-08-31 06:25:30 -06:00
Robby Findler
a6f846ea8d fix default text adjustment
it no longer changes the background to the inverse of the
foreground (for the default text color) but instead uses
the color of the 'framework:basic-canvas-background preference

Thanks to Laurent Orseau for the fix

original commit: f9df5ad4e92ec8bba8012ab3d49c75523af83592
2013-08-30 07:29:42 -05:00
Matthew Flatt
4e0c73448d auto-fix dependencies for "scheme-lib" and "srfi-lite-lib"
original commit: c709af5bf4d3af8f8c7a5918cf0b521ac1846f78
2013-08-27 15:20:58 -06:00
Matthew Flatt
e0c31e0667 move "scheme" collection to a "scheme-lib" package
Also, move remaining "srfi" libraries to "srfi-lite-lib".

In principle, "base" should depend on "scheme-lib" and
"srfi-lite-lib", and a new "base2" package would represent the new,
smaller base. But I don't think the window has yet closed on
determining the initial "base" package.

The "srfi" libraries moved to "srfi-lite-lib", instead of "srfi-lib",
to avoid creating many extra dependencies on "srfi-lib" and all of its
dependencies. The SRFIs in "srfi-lite-lib" depend only on "base",
and they are used relatively widely.

original commit: d175c3949c602672d61734b3fc54750da1d57f89
2013-08-27 15:19:24 -06:00
Robby Findler
c41b64b1b6 another fix to the 102 column guide
This should make it disappear properly when
the file's width goes down below the column guide

fix a bug in 27603faf, I believe

original commit: 5800ce1cec7a678b3e67ba259baa507dfc6b7b82
2013-08-26 06:47:32 -05:00
Robby Findler
1e8179046f change the default colors a bit based on color-blindness feedback
- paren color from brown to a neon blue
- string and number constants from green to a bright purple
- lighten the comment color

the basic problem is to try to keep the red error color very distinct
from the others and try to keep the others distinct from each other
(but that's less important)

original commit: 3c439a773138ca86a3810de6a37912ff588f7d0e
2013-08-23 10:40:57 -05:00
Matthew Flatt
73ab128a7a mrlib/terminal: add options
original commit: ef54fc470cd25c9e3bc58e809e38baf67d7d623c
2013-08-21 10:55:25 -06:00
Matthew Flatt
325b1c306d racket/gui: fix problem with reparent and container sequences
In a container sequence, hides and shows are delayed, but
reparenting needs the hide operation to really complete.

original commit: 76aa80c0e9dd13d3fdc3a78353b32ca6ad30ad1c
2013-08-21 09:20:12 -06:00
Matthew Flatt
6470a18652 mrlib/terminal: fix eventspace handling in non-frame mode
original commit: e2247fe0a5edd04ee5eb75895404618ebc43720b
2013-08-20 16:42:59 -06:00
Matthew Flatt
20eba81d85 racket/gui: add 'disallow-invalid style to `get-text-from-user'
original commit: 0ecd04787aec941f5f6683159a80fdc3c5c0ee86
2013-08-20 15:27:33 -06:00
Matthew Flatt
2f9536a416 racket/gui: adjust label size on some controls
Extra margins added by instantiating `message%' inside
`radio-box%', etc., made labels line up especially badly.

original commit: b24eb311dd744db70f0ae29a18994555b4499dea
2013-08-20 15:27:33 -06:00
Robby Findler
4d701a01d3 adjust the square-bracket prefs so they are saved
relative to some default settings instead of saving
the actual values

so changes to the default imply changes to everyone's actual
values for the prefs

closes PR 13810

original commit: 5f0c06956a2726a64b158ef1fc828c326a93a7ef
2013-08-20 00:20:28 -05:00
Robby Findler
5979c8fd7f adjust the way the tabify preferences are saved so that new
additions to the default preferences are seen by everyone

related to PR 13810

original commit: 940ccc8b5cad414e397b10c61f6a524fdafd950c
2013-08-19 23:39:00 -05:00