Racket splash/about logo @2x
This commit is contained in:
parent
1a465502b0
commit
aaea2e4fa1
|
@ -76,12 +76,13 @@
|
||||||
(super-new)))
|
(super-new)))
|
||||||
|
|
||||||
(define (get-plt-bitmap)
|
(define (get-plt-bitmap)
|
||||||
(make-object bitmap%
|
(read-bitmap
|
||||||
(build-path (collection-file-path
|
(build-path (collection-file-path
|
||||||
(if (< (get-display-depth) 8)
|
(if (< (get-display-depth) 8)
|
||||||
"pltbw.gif"
|
"pltbw.gif"
|
||||||
"plt-logo-red-shiny.png")
|
"plt-logo-red-shiny.png")
|
||||||
"icons"))))
|
"icons"))
|
||||||
|
#:try-@2x? #t))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,7 @@
|
||||||
|
|
||||||
(define (read-bitmap/no-crash fn)
|
(define (read-bitmap/no-crash fn)
|
||||||
(with-handlers ((exn:fail? (λ (x) (make-object bitmap% "dne.png"))))
|
(with-handlers ((exn:fail? (λ (x) (make-object bitmap% "dne.png"))))
|
||||||
(read-bitmap fn)))
|
(read-bitmap fn #:try-@2x? #t)))
|
||||||
|
|
||||||
(define the-splash-bitmap (and (path? the-bitmap-spec)
|
(define the-splash-bitmap (and (path? the-bitmap-spec)
|
||||||
(read-bitmap/no-crash the-bitmap-spec)))
|
(read-bitmap/no-crash the-bitmap-spec)))
|
||||||
|
|
|
@ -180,7 +180,7 @@
|
||||||
(eprintf "WARNING: bitmap path ~s not found\n" splash-draw-spec)
|
(eprintf "WARNING: bitmap path ~s not found\n" splash-draw-spec)
|
||||||
(no-splash))
|
(no-splash))
|
||||||
|
|
||||||
(set! splash-bitmap (make-object bitmap% splash-draw-spec))]
|
(set! splash-bitmap (read-bitmap splash-draw-spec #:try-@2x? #t))]
|
||||||
[else
|
[else
|
||||||
(set! splash-bitmap splash-draw-spec)])
|
(set! splash-bitmap splash-draw-spec)])
|
||||||
|
|
||||||
|
|
BIN
pkgs/icons/plt-logo-red-diffuse@2x.png
Normal file
BIN
pkgs/icons/plt-logo-red-diffuse@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
BIN
pkgs/icons/plt-logo-red-shiny@2x.png
Normal file
BIN
pkgs/icons/plt-logo-red-shiny@2x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 99 KiB |
Loading…
Reference in New Issue
Block a user