From 9dc970172f6783fad2c3aecfd4af7a80911cb8ae Mon Sep 17 00:00:00 2001 From: Akshay Date: Tue, 25 Mar 2025 23:45:47 +0000 Subject: [PATCH] add dark mode to PR actions --- appview/pages/pages.go | 1 + appview/pages/templates/fragments/pullActions.html | 2 +- appview/pages/templates/fragments/pullNewComment.html | 4 ++-- appview/pages/templates/fragments/pullResubmit.html | 8 ++++---- appview/pages/templates/repo/blob.html | 6 +++--- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/appview/pages/pages.go b/appview/pages/pages.go index e44066b..dd5a91b 100644 --- a/appview/pages/pages.go +++ b/appview/pages/pages.go @@ -431,6 +431,7 @@ func (p *Pages) RepoBlob(w io.Writer, params RepoBlobParams) error { style := styles.Get("bw") b := style.Builder() b.Add(chroma.LiteralString, "noitalic") + b.Add(chroma.Background, "bg:") style, _ = b.Build() if params.Lines < 5000 { diff --git a/appview/pages/templates/fragments/pullActions.html b/appview/pages/templates/fragments/pullActions.html index 17940eb..93790d7 100644 --- a/appview/pages/templates/fragments/pullActions.html +++ b/appview/pages/templates/fragments/pullActions.html @@ -10,7 +10,7 @@ {{ $isPullAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Pull.OwnerDid) }} {{ $isLastRound := eq $roundNumber $lastIdx }}
-
+