[ENH] ColorScrollBars-dew

dway at riskmetrics.com dway at riskmetrics.com
Fri Mar 15 04:52:59 UTC 2002


This is a slightly updated version of my colored/flat-look scrollbar
changeset, intended for inclusion in 3.3alpha.  After discussing with
Andreas, I modified this one to use my flat look for the inboard
scrollbar, and uses the rounded look for the flop-out scrollbar, since
the rounded scrollbar was mainly designed for the flop-out type.

It also makes various other Color and window look fixes and
improvements.


from preamble:

"Change Set:		ColorScrollBars-dew
Date:			14 March 2002
Author:			Doug Way

- Changes the alternativeScrollbarLook so that the inboard scrollbar has
the flat, non-rounded look of the original scrollbar, but it matches the
window color.  (The flop-out scrollbar is still rounded, since the
rounded look looks better with the rounded arrows, and the sharper
highlighting makes more sense when only one scrollbar appears on the
screen at one time.)
- Removes border around this new inboard scrollbar, which looks cleaner,
and also saves space.
- Improves the Color>>lighter/darker family to work consistently for
lighter and darker shades of color.  Basically, #lighter and #darker
will now adjust by the same amount, no matter what shade you start from
(similar to what #dansDarker attempted).  This makes the #raised/inset
bevelling of buttons/etc look a lot better.  Also tweaks a few users of
these methods in the system to adjust for the change.  Mostly everything
looks fine as is.  (The new methods are actually about 10% slower than
the old ones on micro benchmarks, but this doesn't seem to be enough to
be noticeable in macro benchmarks or in normal use.)
- Fixes keyboard focus highlighting so that the rectangle isn't hidden
behind inboard scrollbars. (cleaned up ScrollPane>>innerBounds)
- Permanently hides scrollbars in a few short panes, since they're not
needed, and look ugly when inboard. These panes include the top pane of
a hierarchy/filecontents browser, the pattern pane of the filelist, and
the top pane of the methodfinder.
- Makes the scrollbars fit correctly within the panes, without
overlapping borders (when inboard).
- Increases lightening and darkening of window titlebars when
active/inactive, so the difference is more noticeable.
- Moves alternativeWindowLook preference to windows category (instead of
browsing), since it is window-related.
- Fixes alternativeScrollbarLook scrollbar so that the thumb doesn't
darken after you drag it the first time.
"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ColorScrollBars-dew.cs.gz
Type: application/octet-stream
Size: 7184 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020314/60e62bb1/ColorScrollBars-dew.cs.obj


More information about the Squeak-dev mailing list