-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
107 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
( | ||
(homepage "gopher.erkin.party:70/1/links") | ||
(download-folder "/home/erkin/tmp") | ||
|
||
(scrolls-per-page 500) | ||
(wheel-step 1) | ||
(auto-wrap? #f) | ||
|
||
(initial-width 1024) | ||
(initial-height 768) | ||
|
||
;; A string containing the name of the font | ||
;; #f for default monospace. | ||
(font-name #f) | ||
(font-size 11) | ||
(title-size 23) | ||
|
||
;; Besides hexcodes, strings of colour names are accepted as well. | ||
;; To see a list of colours, try: | ||
;; (require racket/draw) (for-each displayln (send the-color-database get-names)) | ||
|
||
(fg-colour (#xEE #xEE #xEE)) | ||
(bg-colour (#x11 #x11 #x11)) | ||
(menu-colour (#xAA #xAA #xEE)) | ||
(link-colour (#xAA #xEE #xAA)) | ||
(error-colour (#xEE #xAA #xAA)) | ||
(document-colour (#xEE #xEE #xAA)) | ||
(download-colour (#xEE #xAA #xEE)) | ||
(clicked-colour (#xAA #xEE #xEE)) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,42 @@ | ||
#lang racket/base | ||
(provide (all-defined-out)) | ||
(require (only-in racket/draw make-color) | ||
(only-in racket/file get-preference)) | ||
|
||
(require (only-in racket/draw make-color)) | ||
(define config-file (build-path (find-system-path 'pref-dir) "gophwr.rktd")) | ||
|
||
;;;; These will be adjustable in the options menu. | ||
(define tls-enabled? (make-parameter #f)) | ||
|
||
(define *homepage* "suika.erkin.party:70/1/gophwr") | ||
;;; Preferences | ||
(define-syntax-rule (define-preference symbol default) | ||
(define symbol | ||
(get-preference (quote symbol) (λ () default) 'timestamp config-file))) | ||
|
||
(define *download-folder* #f) | ||
(define-preference homepage "suika.erkin.party:70/1/gophwr") | ||
(define-preference download-folder #f) | ||
|
||
(define *scrolls-per-page* 500) | ||
(define *wheel-step* 1) | ||
(define-preference scrolls-per-page 500) | ||
(define-preference wheel-step 1) | ||
(define-preference auto-wrap? #f) | ||
|
||
(define *initial-width* 1024) | ||
(define *initial-height* 768) | ||
(define-preference initial-width 1024) | ||
(define-preference initial-height 768) | ||
|
||
(define tls-enabled? (make-parameter #f)) | ||
(define auto-wrap? (make-parameter #f)) | ||
|
||
;; A string containing the name of the font | ||
;; #f for default monospace. | ||
(define *font* #f) | ||
|
||
(define *font-size* 11) | ||
(define *title-size* 23) | ||
|
||
;; Besides hexcodes, strings of colour names are accepted as well. | ||
;; To see a list of colours, try: | ||
;; (require racket/draw) (for-each displayln (send the-color-database get-names)) | ||
|
||
(define *fg-colour* | ||
(make-color #xEE #xEE #xEE)) | ||
(define *bg-colour* | ||
(make-color #x11 #x11 #x11)) | ||
|
||
(define *menu-colour* | ||
(make-color #xAA #xAA #xEE)) | ||
(define *link-colour* | ||
(make-color #xAA #xEE #xAA)) | ||
(define *error-colour* | ||
(make-color #xEE #xAA #xAA)) | ||
(define *document-colour* | ||
(make-color #xEE #xEE #xAA)) | ||
(define *download-colour* | ||
(make-color #xEE #xAA #xEE)) | ||
(define *clicked-colour* | ||
(make-color #xAA #xEE #xEE)) | ||
(define-preference font-name #f) | ||
(define-preference font-size 11) | ||
(define-preference title-size 23) | ||
|
||
;;; Colours | ||
(define-syntax-rule (define-colour colour rgb) | ||
(define colour | ||
(apply make-color (get-preference (quote symbol) (λ () rgb) 'timestamp config-file)))) | ||
|
||
(define-colour fg-colour '(#xEE #xEE #xEE)) | ||
(define-colour bg-colour '(#x11 #x11 #x11)) | ||
|
||
(define-colour menu-colour '(#xAA #xAA #xEE)) | ||
(define-colour link-colour '(#xAA #xEE #xAA)) | ||
(define-colour error-colour '(#xEE #xAA #xAA)) | ||
(define-colour document-colour '(#xEE #xEE #xAA)) | ||
(define-colour download-colour '(#xEE #xAA #xEE)) | ||
(define-colour clicked-colour '(#xAA #xEE #xEE)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters