forked from tangled.org/core
this repo has no description

add dark mode to PR actions

Changed files
+11 -10
appview
+1
appview/pages/pages.go
···
style := styles.Get("bw")
b := style.Builder()
b.Add(chroma.LiteralString, "noitalic")
+
b.Add(chroma.Background, "bg:")
style, _ = b.Build()
if params.Lines < 5000 {
+1 -1
appview/pages/templates/fragments/pullActions.html
···
{{ $isPullAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Pull.OwnerDid) }}
{{ $isLastRound := eq $roundNumber $lastIdx }}
<div class="relative w-fit">
-
<div class="absolute left-8 -top-2 w-px h-2 bg-gray-300"></div>
+
<div class="absolute left-8 -top-2 w-px h-2 bg-gray-300 dark:bg-gray-600"></div>
<div id="actions-{{$roundNumber}}" class="flex flex-wrap gap-2">
<button
hx-get="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/round/{{ $roundNumber }}/comment"
+2 -2
appview/pages/templates/fragments/pullNewComment.html
···
{{ define "fragments/pullNewComment" }}
<div
id="pull-comment-card-{{ .RoundNumber }}"
-
class="bg-white rounded drop-shadow-sm p-4 relative w-full flex flex-col gap-2">
-
<div class="text-sm text-gray-500">
+
class="bg-white dark:bg-gray-800 rounded drop-shadow-sm p-4 relative w-full flex flex-col gap-2">
+
<div class="text-sm text-gray-500 dark:text-gray-400">
{{ didOrHandle .LoggedInUser.Did .LoggedInUser.Handle }}
</div>
<form
+4 -4
appview/pages/templates/fragments/pullResubmit.html
···
{{ define "fragments/pullResubmit" }}
<div
id="resubmit-pull-card"
-
class="rounded relative border bg-amber-50 border-amber-200 px-6 py-2">
+
class="rounded relative border bg-amber-50 dark:bg-amber-900 border-amber-200 dark:border-amber-500 px-6 py-2">
-
<div class="flex items-center gap-2 text-amber-500">
+
<div class="flex items-center gap-2 text-amber-500 dark:text-amber-50">
{{ i "pencil" "w-4 h-4" }}
<span class="font-medium">resubmit your patch</span>
</div>
-
<div class="mt-2 text-sm text-gray-700">
+
<div class="mt-2 text-sm text-gray-700 dark:text-gray-200">
You can update this patch to address any reviews.
This will begin a new round of reviews,
but you'll still be able to view your previous submissions and feedback.
···
class="w-full flex flex-wrap gap-2">
<textarea
name="patch"
-
class="w-full p-2 mb-2 rounded border border-gray-200"
+
class="w-full p-2 mb-2"
placeholder="Paste your updated patch here."
rows="15"
>{{.Pull.LatestPatch}}</textarea>
+3 -3
appview/pages/templates/repo/blob.html
···
{{ $linkstyle := "no-underline hover:underline" }}
<div class="pb-2 mb-3 text-base border-b border-gray-200 dark:border-gray-700">
<div class="flex flex-col md:flex-row md:justify-between gap-2">
-
<div id="breadcrumbs" class="overflow-x-auto whitespace-nowrap">
+
<div id="breadcrumbs" class="overflow-x-auto whitespace-nowrap text-gray-400 dark:text-gray-500">
{{ range $idx, $value := .BreadCrumbs }}
{{ if ne $idx (sub (len $.BreadCrumbs) 1) }}
<a
···
>
/
{{ else }}
-
<span class="text-bold text-gray-500 dark:text-gray-400"
+
<span class="text-bold text-gray-600 dark:text-gray-300"
>{{ index . 0 }}</span
>
{{ end }}
···
This is a binary file and will not be displayed.
</p>
{{ else }}
-
<div class="overflow-auto relative text-ellipsis">
+
<div class="overflow-auto relative">
{{ range $idx, $line := $lines }}
{{ $linenr := add $idx 1 }}
<div class="flex">