styles/motif.style
author Jan Vrany <jan.vrany@fit.cvut.cz>
Wed, 06 Sep 2017 09:47:50 +0200
branchjv
changeset 8179 ced410b68993
parent 6813 7c5be9306c7e
permissions -rw-r--r--
Build files: fixed project definition ...so it passes the package validation.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4468
7f09334a95f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3970
diff changeset
     1
; View defaultStyle:#motif
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     2
;
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     3
; muddy color motif style, as found on HP greyscale machines
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     4
; you may want to change the colors to brighter ones - they
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     5
; are so pessimistic ;-)
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     6
;
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     7
; on VGA displays, where the colors are a bit darkish,
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     8
; use motif_light
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
     9
;
6813
7c5be9306c7e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6807
diff changeset
    10
; $Header: /cvs/stx/stx/libview/styles/motif.style,v 1.24 2015-03-02 10:31:50 cg Exp $
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    11
2991
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    12
#if Screen current hasGreyscales
1853
c3d87b4f6051 use nearest colors to avoid dithered view backgrounds
Claus Gittinger <cg@exept.de>
parents: 1624
diff changeset
    13
;
c3d87b4f6051 use nearest colors to avoid dithered view backgrounds
Claus Gittinger <cg@exept.de>
parents: 1624
diff changeset
    14
; use #nearestOn to avoid dithered view backgrounds
c3d87b4f6051 use nearest colors to avoid dithered view backgrounds
Claus Gittinger <cg@exept.de>
parents: 1624
diff changeset
    15
;
1857
854b5ec3c7b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1853
diff changeset
    16
viewGrey                (Color grey:61) exactOrNearestOn:(Screen current)
854b5ec3c7b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1853
diff changeset
    17
lightColor              (Color grey:84) exactOrNearestOn:(Screen current)
854b5ec3c7b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1853
diff changeset
    18
shadowColor             (Color grey:33) exactOrNearestOn:(Screen current)
854b5ec3c7b9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1853
diff changeset
    19
mediumColor             (Color grey:52) exactOrNearestOn:(Screen current)
180
claus
parents: 144
diff changeset
    20
#else
claus
parents: 144
diff changeset
    21
viewGrey                Color white
1624
46064adf74a0 b&w display fixes
Claus Gittinger <cg@exept.de>
parents: 833
diff changeset
    22
lightColor              Color grey:75
180
claus
parents: 144
diff changeset
    23
shadowColor             Color black
claus
parents: 144
diff changeset
    24
mediumColor             Color grey:50.
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    25
#endif
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    26
2309
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    27
;
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    28
; use systemColors if running on windows native
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    29
2991
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    30
#if Screen current platformName = 'xxxWIN32'
2309
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    31
2991
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    32
; selectionBlue                   Screen current getSystemColor:#COLOR_HIGHLIGHT
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    33
; menu.backgroundColor            Screen current getSystemColor:#COLOR_MENU
4468
7f09334a95f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3970
diff changeset
    34
; menu.foregroundColor            Screen current getSystemColor:#COLOR_MENUTEXT
2309
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    35
; pullDownMenu.backgroundColor    =menu.backgroundColor
2991
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    36
viewGrey                        Screen current getSystemColor:#COLOR_BTNFACE
2309
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    37
2613
0a80ebe92a7a win32 prep
Claus Gittinger <cg@exept.de>
parents: 2539
diff changeset
    38
lightColor              Color white
0a80ebe92a7a win32 prep
Claus Gittinger <cg@exept.de>
parents: 2539
diff changeset
    39
shadowColor             Color black
3970
f6bd28c95e8a *** empty log message ***
ca
parents: 2991
diff changeset
    40
; mediumColor             (Form width:8 height:8 fromArray:(Color ditherBits at:32) onDevice:Screen current) colorMap:(Array with:Color black with:(Screen current getSystemColor:#COLOR_BTNFACE) )
2309
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    41
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    42
#endif
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    43
dbb2ac29bb80 if running under native windows, use the systemColor settings.
Claus Gittinger <cg@exept.de>
parents: 1951
diff changeset
    44
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    45
#include 'motif.common'
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    46
6813
7c5be9306c7e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6807
diff changeset
    47
comment  'a "Motif" look alike.\Unbelievable how ugly by todays standards...'
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 273
diff changeset
    48
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 273
diff changeset
    49
#if (Language == #german) or:[Language == #de]
6813
7c5be9306c7e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6807
diff changeset
    50
comment  'an "Motif" angelehnter Stil.\Unglaublich häßlich nach heutigem Standard...'
309
8cc4d0e7b41b germanism
Claus Gittinger <cg@exept.de>
parents: 273
diff changeset
    51
#endif
498
ca1d11e446ce some french strings
Claus Gittinger <cg@exept.de>
parents: 309
diff changeset
    52
#if (Language == #french) or:[Language == #fr]
6813
7c5be9306c7e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 6807
diff changeset
    53
comment  'un style qui resemble "Motif"'
498
ca1d11e446ce some french strings
Claus Gittinger <cg@exept.de>
parents: 309
diff changeset
    54
#endif
144
claus
parents: 122
diff changeset
    55
5447
64999b6becd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    56
previewFileName         'viewStyleSample_motif.png'
64999b6becd9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5413
diff changeset
    57
6620
742eed97995a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5447
diff changeset
    58
fatFont                 Font family:'helvetica' face:'bold' style:'roman' size:12
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    59
2991
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    60
#if (Screen current platformName = 'WIN32' and:[Screen current width <= 640])
2539
05c647d68efe smaller fonts on small displays
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
    61
fatFont          Font family:'helvetica' face:'bold' style:'roman' size:8
05c647d68efe smaller fonts on small displays
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
    62
#endif
05c647d68efe smaller fonts on small displays
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
    63
2991
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    64
#if (Screen current platformName = 'WIN32' and:[Screen current width > 640 and:[Screen current width <= 800]])
2539
05c647d68efe smaller fonts on small displays
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
    65
fatFont          Font family:'helvetica' face:'bold' style:'roman' size:10
05c647d68efe smaller fonts on small displays
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
    66
#endif
05c647d68efe smaller fonts on small displays
Claus Gittinger <cg@exept.de>
parents: 2309
diff changeset
    67
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    68
selectionFont               =fatFont
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    69
labelFont                   =fatFont
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    70
menuFont                    =fatFont
4468
7f09334a95f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3970
diff changeset
    71
menu.itemSpace              3
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    72
224
8588f26ad132 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 180
diff changeset
    73
#try this:
1948
6a9b754ca6d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1857
diff changeset
    74
#variablePanel.handleLevel    -1
122
c84d8d1e8d48 Initial revision
claus
parents:
diff changeset
    75
224
8588f26ad132 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 180
diff changeset
    76
#or, try that:
1948
6a9b754ca6d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1857
diff changeset
    77
#variablePanel.handleLevel    0
6a9b754ca6d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1857
diff changeset
    78
#variablePanel.handleColor    Color black
4468
7f09334a95f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3970
diff changeset
    79
#variablePanel.handleStyle    #iris
224
8588f26ad132 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 180
diff changeset
    80
273
aa1efc1ca2f3 better bg-color in enterfields
Claus Gittinger <cg@exept.de>
parents: 224
diff changeset
    81
;
aa1efc1ca2f3 better bg-color in enterfields
Claus Gittinger <cg@exept.de>
parents: 224
diff changeset
    82
; although the following is not really motif, it looks much better ...
aa1efc1ca2f3 better bg-color in enterfields
Claus Gittinger <cg@exept.de>
parents: 224
diff changeset
    83
;
4468
7f09334a95f2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3970
diff changeset
    84
#if Screen current hasColors
1951
5290a36652db *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1948
diff changeset
    85
editField.backgroundColor           (Color red:100 green:75 blue:75) exactOrNearestOn:(Screen current)
1948
6a9b754ca6d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1857
diff changeset
    86
editField.selectionBackgroundColor  Color white
6a9b754ca6d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1857
diff changeset
    87
editField.selectionForegroundColor  Color black
1624
46064adf74a0 b&w display fixes
Claus Gittinger <cg@exept.de>
parents: 833
diff changeset
    88
#else
2991
918e2f570098 removed all direct references to Display (must use Screen current)
Stefan Vogel <sv@exept.de>
parents: 2613
diff changeset
    89
# if Screen current hasGrayscales not
1948
6a9b754ca6d3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1857
diff changeset
    90
editField.backgroundColor           Color white
1624
46064adf74a0 b&w display fixes
Claus Gittinger <cg@exept.de>
parents: 833
diff changeset
    91
# endif
273
aa1efc1ca2f3 better bg-color in enterfields
Claus Gittinger <cg@exept.de>
parents: 224
diff changeset
    92
#endif