Skip to content

Commit ac02e6c

Browse files
add github theme
1 parent f35850f commit ac02e6c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ FOMANTIC_WORK_DIR := web_src/fomantic
118118

119119
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
120120
WEBPACK_CONFIGS := webpack.config.js tailwind.config.js
121-
WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
121+
WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css public/assets/css/theme-github-dark.css
122122
WEBPACK_DEST_ENTRIES := public/assets/js public/assets/css public/assets/fonts
123123

124124
BINDATA_DEST := modules/public/bindata.go modules/options/bindata.go modules/templates/bindata.go
@@ -933,6 +933,10 @@ docker:
933933
# This endif closes the if at the top of the file
934934
endif
935935

936+
public/assets/css/theme-github-dark.css:
937+
@wget -c -O "$@" "https://github.com/lutinglt/gitea-github-theme/releases/latest/download/theme-github.css"
938+
939+
936940
# Disable parallel execution because it would break some targets that don't
937941
# specify exact dependencies like 'backend' which does currently not depend
938942
# on 'frontend' to enable Node.js-less builds from source tarballs.

modules/setting/ui.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ var UI = struct {
8383
CodeCommentLines: 4,
8484
ReactionMaxUserNum: 10,
8585
MaxDisplayFileSize: 8388608,
86-
DefaultTheme: `gitea-auto`,
86+
DefaultTheme: `github-dark`,
8787
Reactions: []string{`+1`, `-1`, `laugh`, `hooray`, `confused`, `heart`, `rocket`, `eyes`},
8888
CustomEmojis: []string{`git`, `gitea`, `codeberg`, `gitlab`, `github`, `gogs`},
8989
CustomEmojisMap: map[string]string{"git": ":git:", "gitea": ":gitea:", "codeberg": ":codeberg:", "gitlab": ":gitlab:", "github": ":github:", "gogs": ":gogs:"},

0 commit comments

Comments
 (0)