|
684 | 684 | (define/override (on-paint) |
685 | 685 | (define dc (get-dc)) |
686 | 686 | (send dc set-font normal-control-font) |
687 | | - (when (white-on-black-panel-scheme?) |
| 687 | + (when (color-prefs:white-on-black-color-scheme?) |
688 | 688 | (send dc set-text-foreground "white")) |
689 | 689 | (send dc draw-text "..." 0 0)) |
690 | 690 | (define/override (on-event evt) |
|
951 | 951 | (when second-number |
952 | 952 | (send item set-second-number second-number)) |
953 | 953 | (send text insert position) |
954 | | - (when (white-on-black-panel-scheme?) |
| 954 | + (when (color-prefs:white-on-black-color-scheme?) |
955 | 955 | (send text change-style wob-style-delta |
956 | 956 | 0 (send text last-position))) |
957 | 957 | (when delta |
|
988 | 988 | (send editor insert position) |
989 | 989 | (send editor change-style small-size-delta pos (+ pos 1)) |
990 | 990 | (send editor change-style |
991 | | - (if (white-on-black-panel-scheme?) |
| 991 | + (if (color-prefs:white-on-black-color-scheme?) |
992 | 992 | wob-section-style-delta |
993 | 993 | bow-section-style-delta) |
994 | 994 | (+ pos 1) (send editor last-position))) |
|
1005 | 1005 | (send new-list open) |
1006 | 1006 | (define editor (send new-list get-editor)) |
1007 | 1007 | (send editor insert position) |
1008 | | - (when (white-on-black-panel-scheme?) |
| 1008 | + (when (color-prefs:white-on-black-color-scheme?) |
1009 | 1009 | (send editor change-style wob-style-delta |
1010 | 1010 | 0 (send editor last-position))) |
1011 | 1011 | (hash-set! ht (string->symbol position) x) |
|
1383 | 1383 | (send (send t get-style-list) basic-style) |
1384 | 1384 | before (send t last-position))]) |
1385 | 1385 | (send t change-style size-sd before (send t last-position)) |
1386 | | - (when (white-on-black-panel-scheme?) |
| 1386 | + (when (color-prefs:white-on-black-color-scheme?) |
1387 | 1387 | (send t change-style wob-style-delta before (send t last-position)))) |
1388 | 1388 | (when (send normal-control-font get-size-in-pixels) |
1389 | 1389 | (send size-sd set-size-in-pixels-on #t)) |
|
2249 | 2249 | (let ([list (editor:get-standard-style-list)] |
2250 | 2250 | [green-style-delta (make-object style-delta% 'change-family 'default)]) |
2251 | 2251 | (send green-style-delta set-delta-foreground |
2252 | | - (if (preferences:get 'framework:white-on-black?) |
| 2252 | + (if (color-prefs:white-on-black-color-scheme?) |
2253 | 2253 | (make-object color% 170 151 240) |
2254 | 2254 | "DarkViolet")) |
2255 | 2255 | (send green-style-delta set-delta 'change-italic) |
|
2305 | 2305 |
|
2306 | 2306 | (send txt insert words) |
2307 | 2307 | (send txt change-style |
2308 | | - (gui-utils:get-clickback-delta (preferences:get 'framework:white-on-black?)) |
| 2308 | + (gui-utils:get-clickback-delta (color-prefs:white-on-black-color-scheme?)) |
2309 | 2309 | 0 |
2310 | 2310 | (send txt last-position)))) |
2311 | 2311 |
|
|
2392 | 2392 | (parent racketeer-panel) |
2393 | 2393 | (label (string-constant use-language-in-source)) |
2394 | 2394 | (color (send the-color-database find-color |
2395 | | - (if (white-on-black-panel-scheme?) |
| 2395 | + (if (color-prefs:white-on-black-color-scheme?) |
2396 | 2396 | "deepskyblue" |
2397 | 2397 | "blue"))) |
2398 | 2398 | (callback (λ () (change-current-lang-to |
|
2462 | 2462 | (define old-tf (send dc get-text-foreground)) |
2463 | 2463 | (send dc set-text-foreground |
2464 | 2464 | (or color |
2465 | | - (if (white-on-black-panel-scheme?) |
| 2465 | + (if (color-prefs:white-on-black-color-scheme?) |
2466 | 2466 | (send the-color-database find-color "lightgray") |
2467 | 2467 | (send the-color-database find-color "black")))) |
2468 | 2468 | (send dc set-font font) |
|
2502 | 2502 | (parent panel2) |
2503 | 2503 | (label lang-name) |
2504 | 2504 | (color (send the-color-database find-color |
2505 | | - (if (white-on-black-panel-scheme?) |
| 2505 | + (if (color-prefs:white-on-black-color-scheme?) |
2506 | 2506 | "deepskyblue" |
2507 | 2507 | "blue"))) |
2508 | 2508 | (callback (λ () (change-current-lang-to lang))) |
|
0 commit comments