Eric Wasylishen
0d365b7d10
NSBrowser header themeing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30189 72102866-910b-0410-8b05-ffd578937521
2010-04-19 03:14:36 +00:00
Fred Kiefer
7e289df84b
Yet another set of #include -> #import replacement.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30083 72102866-910b-0410-8b05-ffd578937521
2010-03-31 08:14:50 +00:00
Eric Wasylishen
13b071dd72
* Source/NSMenu.m: Make the background color of NSMenuPanel clear
...
* Source/GSThemeDrawing.m:
in drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:,
when not using tiles, fill the background of the menu with
the window background color.
Now themes can draw semitransparent menus, and they work properly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29600 72102866-910b-0410-8b05-ffd578937521
2010-02-13 03:24:19 +00:00
Eric Wasylishen
f91e4cceec
Make the window border color customizable
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29595 72102866-910b-0410-8b05-ffd578937521
2010-02-12 23:57:21 +00:00
Eric Wasylishen
411d3e27bc
NSColorWell themeing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29594 72102866-910b-0410-8b05-ffd578937521
2010-02-12 23:09:35 +00:00
Eric Wasylishen
e7e2c06ef5
Allow customization of window title text color for key/normal/main windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29593 72102866-910b-0410-8b05-ffd578937521
2010-02-12 22:19:40 +00:00
Eric Wasylishen
94946a1f50
* GSThemeDrawing.m: Move code in NSTableHeaderView which leaves a
...
1pt gap underneath table headers to GSThemeDrawing, since it only
looks decent with a NeXT-like theme. This fixes the
misalignment between the table corner and the table headers visible
in the Narcissus theme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29567 72102866-910b-0410-8b05-ffd578937521
2010-02-12 06:59:12 +00:00
Eric Wasylishen
6a8d987dbc
Draw window title bar with image tiles, if available
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29504 72102866-910b-0410-8b05-ffd578937521
2010-02-07 22:09:32 +00:00
Eric Wasylishen
e086eb3dbe
Draw borders using image tiles, if available.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29503 72102866-910b-0410-8b05-ffd578937521
2010-02-07 21:42:50 +00:00
Eric Wasylishen
539223a674
Preliminary support for themeing the window resize bar with tiles.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29456 72102866-910b-0410-8b05-ffd578937521
2010-02-01 08:41:04 +00:00
Eric Wasylishen
82d6f25159
Add GSThemeDisabledState
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29455 72102866-910b-0410-8b05-ffd578937521
2010-02-01 08:26:40 +00:00
Eric Wasylishen
1d764b8771
Use theme tiles (if available) to draw progress bars.
...
New tile name: GSProgressIndicatorBarDeterminate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29453 72102866-910b-0410-8b05-ffd578937521
2010-02-01 06:20:11 +00:00
Eric Wasylishen
5b680cf5d2
* Source/GSThemeDrawing.m: Use theme tiles (if available)
...
to draw segmented controls, chosen based on the segment style constant,
and falling back to drawing buttons if the segment tiles are not
available.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29452 72102866-910b-0410-8b05-ffd578937521
2010-02-01 05:27:01 +00:00
Eric Wasylishen
7225f6e380
Use theme tiles (if available) to draw menu backgrounds and items.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29447 72102866-910b-0410-8b05-ffd578937521
2010-01-30 05:00:29 +00:00
Eric Wasylishen
ffc734898c
Use theme tiles (if available) to draw table headers. New tile names are
...
GSTableHeader and GSTableCorner.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29444 72102866-910b-0410-8b05-ffd578937521
2010-01-29 22:21:34 +00:00
Eric Wasylishen
cd3d1785e3
Use tiles for drawing scroller slots, if available
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29443 72102866-910b-0410-8b05-ffd578937521
2010-01-29 20:55:24 +00:00
Eric Wasylishen
a3835dbe56
Add support for looking up button tiles based on bezel style
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29441 72102866-910b-0410-8b05-ffd578937521
2010-01-29 08:08:10 +00:00
Eric Wasylishen
e6c79f2fb8
NSSegmentedCell themeing support
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29435 72102866-910b-0410-8b05-ffd578937521
2010-01-29 03:11:43 +00:00
Eric Wasylishen
2c328a83d5
Correct typo in NSTexturedRoundedBezelStyle
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29432 72102866-910b-0410-8b05-ffd578937521
2010-01-28 23:33:08 +00:00
Eric Wasylishen
253a3dff34
Factor out table header cell drawing into a new GSTheme method,
...
-drawTableHeaderCell:withFrame:inView:state:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29431 72102866-910b-0410-8b05-ffd578937521
2010-01-28 07:25:04 +00:00
Eric Wasylishen
f03ffb9793
Create a new GSTheme method for drawing the background of NSMenuView,
...
-drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29430 72102866-910b-0410-8b05-ffd578937521
2010-01-28 04:28:23 +00:00
Eric Wasylishen
b521058a3a
Remove some accidentally committed code from r29416
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29429 72102866-910b-0410-8b05-ffd578937521
2010-01-28 01:40:35 +00:00
Eric Wasylishen
4e82769c24
* Source/GSThemeDrawing.m (-buttonBorderForCell:style:state:):
...
Use the new contentRect when calculating the border for tiles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29425 72102866-910b-0410-8b05-ffd578937521
2010-01-27 23:24:21 +00:00
Quentin Mathe
84683f1c4d
Added the possibility to customize the title view look and behavior in a theme
...
with a GSTitleView subclass.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29419 72102866-910b-0410-8b05-ffd578937521
2010-01-27 11:29:07 +00:00
Eric Wasylishen
27d0e485e3
* Source/NSView.m (-setHidden:): Fix un-hiding of hidden views, loaded
...
from nib's, with subviews. The subview coordinates just need to be
invalidated when the view is unhidden.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29416 72102866-910b-0410-8b05-ffd578937521
2010-01-27 07:40:54 +00:00
Eric Wasylishen
ab285b8ea4
Finish NSColorWell interaction tweaks:
...
- activation of the now happens on mouseUp, not mouseDown
- non-bordered NSColorWells can't be activated by clicking
- non-bordered NSColorWells start a drag operation upon mouseDown
- disabled NSColorWells don't accept colours being dropped on them
- dropping a colour on the well inside the NSColorPanel now
also updates the active NSColorWell
Also moved the static variable for keeping track of where the mouseDown
occurred to an instance variable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29150 72102866-910b-0410-8b05-ffd578937521
2009-12-21 00:31:24 +00:00
Wolfgang Lux
06dc196682
Prevent division by zero exception if a theme has no images for a
...
spinning or indeterminate progress indicator.
Ensure that a running animation is stopped when an indeterminate
indicator is changed into a determinate one.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29136 72102866-910b-0410-8b05-ffd578937521
2009-12-17 02:36:22 +00:00
Richard Frith-MacDonald
f2a8d1d58c
api cleanup
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29039 72102866-910b-0410-8b05-ffd578937521
2009-11-19 20:37:43 +00:00
Richard Frith-MacDonald
09c902f201
theming cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29024 72102866-910b-0410-8b05-ffd578937521
2009-11-16 14:28:11 +00:00
Hans Baier
0a872453bc
Source/GSThemeDrawing.m: fix bug introduced in last commit (progress bar fills the whole area)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29004 72102866-910b-0410-8b05-ffd578937521
2009-11-14 03:52:59 +00:00
Hans Baier
4e4a09f7de
Factor out drawing of progress indicator's bezel and bar
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29003 72102866-910b-0410-8b05-ffd578937521
2009-11-14 03:46:00 +00:00
Hans Baier
be3a29fd05
make the arrow image in NSMenuItemCell themeable
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29001 72102866-910b-0410-8b05-ffd578937521
2009-11-14 02:56:29 +00:00
Fred Kiefer
139258eec5
Move initialisation and drawing of progress indicator into GSTheme.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28987 72102866-910b-0410-8b05-ffd578937521
2009-11-09 20:15:36 +00:00
Fred Kiefer
882cecd516
Move the colour well border drawing into GSTheme.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28986 72102866-910b-0410-8b05-ffd578937521
2009-11-09 18:00:54 +00:00
Fred Kiefer
17ef668924
Move corner view drawing into GSTheme.
...
Add new 10.3 methods for NSTableHeaderCell.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28985 72102866-910b-0410-8b05-ffd578937521
2009-11-09 14:53:59 +00:00
Fred Kiefer
3bfc5beceb
Move stepper drawing code into GSTheme.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28983 72102866-910b-0410-8b05-ffd578937521
2009-11-09 13:01:48 +00:00
Fred Kiefer
6d3f57e366
dd a few more includes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28946 72102866-910b-0410-8b05-ffd578937521
2009-11-03 18:33:35 +00:00
Fred Kiefer
eecdf96f4b
Extract a few more drawing and colour methods to GSTheme.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28937 72102866-910b-0410-8b05-ffd578937521
2009-11-02 11:48:22 +00:00
Richard Frith-MacDonald
0400de2215
get things working on mingw again
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28925 72102866-910b-0410-8b05-ffd578937521
2009-10-30 20:32:24 +00:00
Richard Frith-MacDonald
a49d3efb05
give theme more control over drawing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28839 72102866-910b-0410-8b05-ffd578937521
2009-10-18 16:23:34 +00:00
Fred Kiefer
28c709afdf
Move all the window border drawing code into GSTheme.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28792 72102866-910b-0410-8b05-ffd578937521
2009-10-10 17:37:01 +00:00
Hans Baier
73a9ff2af5
GSTheme.h: fix typo in method name: Toobar -> Toolbar
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28688 72102866-910b-0410-8b05-ffd578937521
2009-09-16 02:44:28 +00:00
Gregory John Casamento
3300a0b948
Correct images used for H/V orientation of the dimple.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28570 72102866-910b-0410-8b05-ffd578937521
2009-08-28 22:08:16 +00:00
Gregory John Casamento
1aa8213925
Correct the image name to be consistent with the other image names.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28568 72102866-910b-0410-8b05-ffd578937521
2009-08-28 21:33:37 +00:00
Gregory John Casamento
989fb01d6d
* Images/common_DimpleH.tiff: Horizontal image for dimple. This
...
image is not different from the vertical dimple for the default
theme. It's here so that it can be overriden by a theme, if
needed.
* Images/GNUmakefile: Add new image.
* Source/GSThemeDrawing.m: Modify code in cellForScrollerKnob
to use common_Dimple.tiff or common_DimpleH.tiff depending
on the orientation of the scroller.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28567 72102866-910b-0410-8b05-ffd578937521
2009-08-28 21:22:52 +00:00
Gregory John Casamento
5d839b7f81
* Headers/Additions/GNUstepGUI/GSTheme.h: Add image parameter,
...
* Source/GSThemeDrawing.m: Add image parameter. Correctly
handle disabled buttons.
* Source/NSButtonCell.m: Change to use new signature.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28523 72102866-910b-0410-8b05-ffd578937521
2009-08-23 18:24:34 +00:00
Gregory John Casamento
bc95107253
* Headers/Additions/GNUstepGUI/GSTheme.h: Added new method declaration
...
for drawButtonCell:...
* Source/GSThemeDrawing.m: Added implementation for new method. The
purpose of the method is to allow the theme to override images with
native images which may be theme dependent.
* Source/NSButtonCell.m: Use the new method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28522 72102866-910b-0410-8b05-ffd578937521
2009-08-23 18:07:39 +00:00
Gregory John Casamento
b6789caaeb
* Headers/Additions/GNUstepGUI/GSTheme.h: Add methods for drawing
...
stepper cell here.
* Source/GSThemeDrawing.m: Implementations for stepper cell functions.
* Source/NSStepperCell.m: Use new stepper cell functions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28510 72102866-910b-0410-8b05-ffd578937521
2009-08-22 23:50:14 +00:00
Fred Kiefer
ee49afcb9b
Changed all title methods on NSButtonCell to use the
...
super string value methods and redefine the local string value
methods to work with the object value.
Patch by Matt Rice <ratmice@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27946 72102866-910b-0410-8b05-ffd578937521
2009-02-21 23:15:22 +00:00
Fred Kiefer
71f807b1c7
Add theme drawing for toolbar view.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27806 72102866-910b-0410-8b05-ffd578937521
2009-02-07 21:58:12 +00:00
Richard Frith-MacDonald
774a9ec1d4
Fix typo in method to set parent window of a child, optimise color handling in themes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27742 72102866-910b-0410-8b05-ffd578937521
2009-01-31 09:59:32 +00:00
Richard Frith-MacDonald
aca8c4b62c
Improve color control for theming
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27546 72102866-910b-0410-8b05-ffd578937521
2009-01-07 06:50:14 +00:00
Richard Frith-MacDonald
2f75abcf2e
Add support for temporary elements which go away when the theme is deactivated.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27528 72102866-910b-0410-8b05-ffd578937521
2009-01-06 05:08:58 +00:00
Richard Frith-MacDonald
23f7bcc0e6
Fix memory leak and commit latest scroller theming workings
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27521 72102866-910b-0410-8b05-ffd578937521
2009-01-05 14:55:34 +00:00
Richard Frith-MacDonald
62492a9158
Some moves towards making scrollers more themable
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27518 72102866-910b-0410-8b05-ffd578937521
2009-01-05 09:43:25 +00:00
Richard Frith-MacDonald
664c7cadd2
Some code for scroller theming
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27498 72102866-910b-0410-8b05-ffd578937521
2009-01-02 12:40:07 +00:00
Richard Frith-MacDonald
539faec0d3
clean up somewhat.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27448 72102866-910b-0410-8b05-ffd578937521
2008-12-29 10:28:59 +00:00