styles/.dir.info
author matilk
Wed, 13 Sep 2017 09:40:34 +0200
changeset 8174 2704c965b97b
parent 7108 2fbacfb5d1ee
permissions -rw-r--r--
#BUGFIX by Maren class: DeviceGraphicsContext changed: #displayDeviceOpaqueForm:x:y: nil check
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5651
52358314cdbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2567
diff changeset
     1
Most of the stuff here is obsolete.
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
This directory contains various style sheets which are read
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
and used when the view style is changed (via View>>defaultStyle:).
2567
08de56108ad5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
     6
An initial style default is set up by the display.rc and corresponding
08de56108ad5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
     7
d_xxx.rc files (found in the projects/smalltalk directory).
08de56108ad5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
     8
However, at any later time, the preferred style can be changed either
08de56108ad5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
     9
by evaluating (View defaultStyle:#styleName) or via the launchers
08de56108ad5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
    10
settings menu.
08de56108ad5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
    11
If the settings are saved, the style will be reinstalled whenever
08de56108ad5 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2306
diff changeset
    12
ST/X is restarted later.
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
Look into generic.style, to see which parameters can be changed
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
and how they are named.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
There are still some places in the system, where style information is
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
programmed into (instead of controlled via the StyleSheet) - but these
2306
a7e674281291 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 309
diff changeset
    19
will be removed over time (these are historical leftovers).
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
So be prepared, that some things are not fully working.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
2306
a7e674281291 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 309
diff changeset
    22
Do not modify the original style files - but instead create your own.
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
Styles are read using the same path mechanism as all other file accesses,
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
so you can put your private style-files into your private directories,
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
even in case a public file exists with the same name.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
You can inherit other styles via a #include - see 'motifXXX.style' as
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
an example.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
To get your new style, perform the following steps:
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
	1. create a styleSheet, say 'foo.style'
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
	   (take any existing to start with and see 'generic.style'
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
	    for more comments)
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
7108
mawalch
parents: 5651
diff changeset
    36
	2. make sure its accessible under any 'resources' directory
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
	   of your systemPath.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
	   (for the development environment, there is a rule 'make styles'
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
	    in the 'projects/smalltalk/Makefile', which symlinks all styles
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
	    to the local directory).
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
	3. check it by evaluating: 'View defaultStyle:#foo' in
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 204
diff changeset
    43
	   a workspace (or change the style setting in the Launcher)
5651
52358314cdbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2567
diff changeset
    44
	 . Try some NEW views
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
	   (the new style will affect only new views).
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
	   Notice, that the styleSheet is only re-read if the style
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
	   has changed (the contents is cached to avoid reading the style
5651
52358314cdbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2567
diff changeset
    49
	   files over and over again). Thus, to get an updated styleSheet to be
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
	   used, either switch temporary to another style and back, or
5651
52358314cdbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2567
diff changeset
    51
	   use 'View updateAllStyleCaches' to force rereading of the current
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
	   style.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
	4. if your style is ok and you want it to become your default at startup,
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
	   add the above line (View defaultStyle:#foo) to your 'private.rc' file.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
	   It will then be automatically installed at startup time.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
A note on the existing styles:
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 204
diff changeset
    61
    Most are included as demo and to give you a starting point.
2306
a7e674281291 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 309
diff changeset
    62
    Many are not really usable for ergonomic reasons.
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    You may want to try your own, by combining features from different styles.
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 204
diff changeset
    64
    For example, if you think the #st80-style may look good combined with green-background
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    text-selection hilighting; go ahead and create your own.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 204
diff changeset
    67
Disclaimer:
5651
52358314cdbb *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2567
diff changeset
    68
    It is neither intended, nor do I claim, that these styleSheets mimic the
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    originals exactly, they are included for fun and to make your ST/X views
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
    integrate better into whatever your environment may look like.
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 204
diff changeset
    71
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
    You may improve them and send me back your updated files ....
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    ... that way, the next release will have more and/ore better styleSheets.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
    No, I do not intent to extent this mechanism the Xt way, where every
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
    individual component can be specified ... (actually, I do not like it).
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
    It could be easily done, by reading the Xresource files (a naming hierarchy
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    is already present in the views). But it either tends to make
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
    your display look very ugly and colorful, or it is not used by serious
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    81
    users. So what ?
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    82
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
    Most users prefer simple (unspectacular) styles; the most attractive being
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 204
diff changeset
    84
    the iris, motif, os2 and normal (for monochrome displays) styles.
204
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
TODO:
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    87
    The new ViewStyle supports entries of the form:
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    88
	className.styleVariable ...
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
    which makes the whole style definition easier to understand,
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    90
    and allows the style-code to be simplified.
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    91
    The style sheets will be changed till the next version to reflect
c19f4be7f2ca Initial revision
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
    this. Be prepared for this.