Skip to content

Commit

Permalink
Removed workaround for environment not being injected when stroking i…
Browse files Browse the repository at this point in the history
…s applied, and added a mention to issue #322
  • Loading branch information
mortenbekditlevsen committed Jan 11, 2021
1 parent bd0b3b8 commit 6b8b643
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/TokamakGTK/Shapes/Shape.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,6 @@ extension _ShapeView: ViewDeferredToRenderer {

let c = (style as? Color) ?? foregroundColor ?? Color.black

// XXX TODO, don't know why my environment doesn't work.
var environment = EnvironmentValues()
environment[_ColorSchemeKey] = .light

var color = c.resolveToCairo(in: environment)

gdk_cairo_set_source_rgba(cr, &color)
Expand Down

0 comments on commit 6b8b643

Please sign in to comment.