Skip to content

Commit

Permalink
repair default style used for comment coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
mflatt committed Dec 17, 2023
1 parent 36eec3a commit 565ce18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui-lib/framework/private/color.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ added get-regions
(inherit change-style begin-edit-sequence end-edit-sequence highlight-range
get-style-list in-edit-sequence? get-start-position get-end-position
local-edit-sequence? get-styles-fixed has-focus?
get-fixed-style get-text)
get-fixed-style get-text default-style-name)

(define lexers-all-valid? #t)
(define/private (update-lexer-state-observers)
Expand Down Expand Up @@ -468,7 +468,7 @@ added get-regions

(define/private (color-style->comment-style base-color)
(let ([d (new style-delta%)]
[base-color (or base-color (send (get-style-list) find-named-style "Standard"))])
[base-color (or base-color (send (get-style-list) find-named-style (default-style-name)))])
;; 50% transparency:
(send (send d get-foreground-mult) set-a 0.5)
(and base-color
Expand Down

0 comments on commit 565ce18

Please sign in to comment.