author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 06 Sep 2017 09:47:50 +0200 | |
branch | jv |
changeset 8179 | ced410b68993 |
parent 6813 | 7c5be9306c7e |
permissions | -rw-r--r-- |
4468 | 1 |
; View defaultStyle:#motif |
122 | 2 |
; |
3 |
; muddy color motif style, as found on HP greyscale machines |
|
4 |
; you may want to change the colors to brighter ones - they |
|
5 |
; are so pessimistic ;-) |
|
6 |
; |
|
7 |
; on VGA displays, where the colors are a bit darkish, |
|
8 |
; use motif_light |
|
9 |
; |
|
6813 | 10 |
; $Header: /cvs/stx/stx/libview/styles/motif.style,v 1.24 2015-03-02 10:31:50 cg Exp $ |
122 | 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 | 16 |
viewGrey (Color grey:61) exactOrNearestOn:(Screen current) |
17 |
lightColor (Color grey:84) exactOrNearestOn:(Screen current) |
|
18 |
shadowColor (Color grey:33) exactOrNearestOn:(Screen current) |
|
19 |
mediumColor (Color grey:52) exactOrNearestOn:(Screen current) |
|
180 | 20 |
#else |
21 |
viewGrey Color white |
|
1624 | 22 |
lightColor Color grey:75 |
180 | 23 |
shadowColor Color black |
24 |
mediumColor Color grey:50. |
|
122 | 25 |
#endif |
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 | 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 | 38 |
lightColor Color white |
39 |
shadowColor Color black |
|
3970 | 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 | 45 |
#include 'motif.common' |
46 |
||
6813 | 47 |
comment 'a "Motif" look alike.\Unbelievable how ugly by todays standards...' |
309 | 48 |
|
49 |
#if (Language == #german) or:[Language == #de] |
|
6813 | 50 |
comment 'an "Motif" angelehnter Stil.\Unglaublich häßlich nach heutigem Standard...' |
309 | 51 |
#endif |
498 | 52 |
#if (Language == #french) or:[Language == #fr] |
6813 | 53 |
comment 'un style qui resemble "Motif"' |
498 | 54 |
#endif |
144 | 55 |
|
5447 | 56 |
previewFileName 'viewStyleSample_motif.png' |
57 |
||
6620 | 58 |
fatFont Font family:'helvetica' face:'bold' style:'roman' size:12 |
122 | 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 | 68 |
selectionFont =fatFont |
69 |
labelFont =fatFont |
|
70 |
menuFont =fatFont |
|
4468 | 71 |
menu.itemSpace 3 |
122 | 72 |
|
224 | 73 |
#try this: |
1948 | 74 |
#variablePanel.handleLevel -1 |
122 | 75 |
|
224 | 76 |
#or, try that: |
1948 | 77 |
#variablePanel.handleLevel 0 |
78 |
#variablePanel.handleColor Color black |
|
4468 | 79 |
#variablePanel.handleStyle #iris |
224 | 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 | 84 |
#if Screen current hasColors |
1951 | 85 |
editField.backgroundColor (Color red:100 green:75 blue:75) exactOrNearestOn:(Screen current) |
1948 | 86 |
editField.selectionBackgroundColor Color white |
87 |
editField.selectionForegroundColor Color black |
|
1624 | 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 | 90 |
editField.backgroundColor Color white |
1624 | 91 |
# endif |
273
aa1efc1ca2f3
better bg-color in enterfields
Claus Gittinger <cg@exept.de>
parents:
224
diff
changeset
|
92 |
#endif |