forked from LIlGG/halo-theme-sakura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.yaml
1231 lines (1231 loc) · 38.3 KB
/
settings.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
apiVersion: v1alpha1
kind: Setting
metadata:
name: theme-sakura-setting
spec:
forms:
- group: general
label: 基本设置
formSchema:
- $formkit: color
name: theme_skin
label: 主题基色
value: "#FE9600"
- $formkit: radio
name: cursor_skin
label: 鼠标风格
value: sakura
options:
- value: sakura
label: 默认
- value: no_cursor
label: 无样式
- $formkit: radio
name: site_title
label: 站点标题
value: logo
options:
- value: logo
label: 优先使用站点Logo
- value: text
label: 仅使用站点标题文本
- $formkit: radio
name: top_search
label: 搜索功能
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: post_list_style
id: post_list_style
label: 首页文章风格
value: imageflow
options:
- value: standard
label: 标准
- value: imageflow
label: 图文
- $formkit: radio
name: list_type
if: "$get(post_list_style).value == standard"
label: 首页文章特色图(仅对标准风格生效)
value: round
options:
- value: round
label: 圆形
- value: square
label: 方形
- $formkit: radio
name: pagenav_style
label: 分页模式
value: ajax
options:
- value: ajax
label: Ajax 加载
- value: np
label: 上一页和下一页
- $formkit: select
name: date_format
label: 日期展示格式
value: date
options:
- value: date
label: 日期
- value: time
label: 时间
- value: datetime
label: 日期时间
- $formkit: radio
name: hour12
label: 12 小时制
value: false
options:
- value: true
label: 是
- value: false
label: 否
- group: patternimg
label: 头部装饰图
formSchema:
- $formkit: attachment
name: archives_patternimg
label: 归档页装饰图
- $formkit: attachment
name: photos_patternimg
label: 图库页装饰图
- $formkit: attachment
name: journals_patternimg
label: 瞬间页装饰图
- $formkit: attachment
name: links_patternimg
label: 友链页装饰图
- $formkit: attachment
name: searh_patternimg
label: 搜索页装饰图
- $formkit: attachment
name: tag_patternimg
label: 标签页默认装饰图
- $formkit: attachment
name: category_patternimg
label: 分类页默认装饰图
- group: mainScreen
label: 首屏
formSchema:
- $formkit: radio
name: head_focus
id: head_focus
key: head_focus
label: 总开关
help: 关闭之后首屏将直接从文章开始显示
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: select
if: "$get(head_focus).value == true"
name: focus_tou
id: focus_tou
key: focus_tou
label: 头部样式
value: "glitch-text"
options:
- value: "no-tou"
label: 无
- value: avatar
label: 头像
- value: "glitch-text"
label: 故障文字
- $formkit: text
name: glitch_text
id: glitch_text
key: glitch_text
label: 聚焦故障文本
value: Hi,Friend
help: 移动端:将显示在导航栏中,桌面端:该文本只有头部样式开启故障文字才能显示
- $formkit: radio
name: focus_infos
if: "$get(head_focus).value == true"
label: 社交信息
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: focus_height
id: focus_height
key: focus_height
if: "$get(head_focus).value == true"
label: 全屏显示
help: 全屏显示则首屏独占全屏,非全屏则只会占一半页面
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: focus_godown
id: focus_godown
key: focus_godown
if: "$get(head_focus).value == true"
label: 下拉箭头
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: focus_wave
id: focus_wave
key: focus_wave
if: "$get(head_focus).value == true && $get(focus_height).value == true"
label: 波浪效果
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: attachment
if: "$get(head_focus).value == true"
name: focus_img_1
label: 背景图
- $formkit: select
if: "$get(head_focus).value == true"
name: focus_img_filter
label: 背景图滤镜
value: filter-grid
options:
- value: filter-nothing
label: 无
- value: filter-undertint
label: 浅色
- value: filter-dim
label: 暗淡
- value: filter-grid
label: 网格
- $formkit: radio
if: "$get(head_focus).value == true && $get(focus_height).value == true"
name: bgvideo
id: bgvideo
key: bgvideo
label: 开启背景视频
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: attachment
if: "$get(bgvideo).value == true"
id: bgvideo_url
name: bgvideo_url
key: bgvideo_url
label: 视频链接
help: 支持流媒体
- group: sns
label: 社交网络
formSchema:
- $formkit: repeater
name: items
label: 社交网络
children:
- $formkit: select
name: type
key: type
label: 类型
value: preset
options:
- label: 预设
value: preset
- label: 自定义
value: custom
- $formkit: select
if: "$value.type == preset"
name: icon
key: icon
label: 预设图标
options:
- label: 微信
value: wechat.png
- label: 微博
value: weibo.png
- label: 腾讯 QQ
value: qq.png
- label: QQ 空间
value: qzone.png
- label: GitHub
value: github.png
- label: Lofter
value: lofter.png
- label: 哔哩哔哩
value: bilibili.png
- label: 网易云音乐
value: wangyiyun.png
- label: Twitter
value: twitter.png
- label: Facebook
value: facebook.png
- label: Google Plus
value: googleplus.png
- label: 简书
value: jianshu.png
- label: CSDN
value: csdn.png
- label: 知乎
value: zhihu.png
- label: Telegram
value: telegram.svg
- label: 邮箱
value: email.svg
- label: Stack Overflow
value: stackoverflow.svg
- $formkit: attachment
if: "$value.type === custom"
name: custom_icon
key: custom_icon
accepts:
- 'image/*'
max: 1
label: 自定义图标
validation: "required"
- $formkit: radio
name: url_type
key: url_type
label: 展示形式
value: normal
options:
- label: 跳转链接
value: normal
- label: 图片
value: image
- $formkit: text
if: "$value.url_type == normal"
name: url
key: url
label: 链接
validation: "required"
- $formkit: attachment
if: "$value.url_type == image"
name: image
key: image
label: 图片
accepts:
- 'image/*'
max: 1
validation: "required"
- $formkit: repeater
name: mobile_items
label: 移动端侧边栏社交网络
children:
- $formkit: select
name: type
key: type
label: 类型
value: preset
options:
- label: 预设
value: preset
- label: 自定义
value: custom
- $formkit: select
name: icon
key: icon
label: 图标
if: "$value.type === preset"
options:
- label: 微信
value: wechat.png
- label: 微博
value: weibo.png
- label: 腾讯 QQ
value: qq.png
- label: QQ 空间
value: qzone.png
- label: GitHub
value: github.png
- label: Lofter
value: lofter.png
- label: 哔哩哔哩
value: bilibili.png
- label: 网易云音乐
value: wangyiyun.png
- label: Twitter
value: twitter.png
- label: Facebook
value: facebook.png
- label: Google Plus
value: googleplus.png
- label: 简书
value: jianshu.png
- label: CSDN
value: csdn.png
- label: 知乎
value: zhihu.png
- label: Telegram
value: telegram.svg
- label: 邮箱
value: email.svg
- label: Stack Overflow
value: stackoverflow.svg
- $formkit: attachment
if: "$value.type === custom"
name: custom_icon
key: custom_icon
accepts:
- 'image/*'
max: 1
label: 自定义图标
validation: "required"
- $formkit: text
name: url
label: 链接
validation: "required"
- group: focus
label: 聚焦图
formSchema:
- $formkit: radio
name: top_feature
id: top_feature
label: 是否开启聚焦
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: text
if: "$get(top_feature).value == true"
name: feature_icon
label: 聚焦图标
placeholder: 聚焦前的小图标,不填写就不显示!
value: fa:anchor
- $formkit: text
if: "$get(top_feature).value == true"
name: feature_title
label: 聚焦标题
- $formkit: repeater
if: "$get(top_feature).value == true"
name: features
max: 3
label: 聚焦内容
value: []
children:
- $formkit: text
name: title
label: 标题
- $formkit: text
name: link
label: 链接
- $formkit: attachment
name: image
label: 图片
placeholder: 尺寸 257px * 160px
- $formkit: text
name: description
label: 描述
- group: post
label: 文章页
formSchema:
- $formkit: radio
name: post_auto_collapse
label: 文章页导航栏自动收起
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: post_share
label: 文章分享
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: post_toc
label: 文章目录
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: post_original_copy
label: 原创内容增加版权声明
help: 需要在发布文章时的元数据上选中原创才可以生效
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: post_word_count_toast
id: post_word_count_toast
label: 文章字数统计及阅读时间提示
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: post_edit_time_toast
id: post_edit_time_toast
key: post_edit_time_toast
label: 文章距上次编辑时间提示
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: custom_toast
id: custom_toast
key: custom_toast
label: 自定义提示语
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
help: 默认提示语会采用国际化方案,如果你想自定义提示语,可以开启此选项
- $formkit: text
if: "$get(post_word_count_toast).value == true && $get(custom_toast).value == true"
name: post_word_count_toast_normal
label: 阅读时间正常提示语
- $formkit: text
if: "$get(post_word_count_toast).value == true && $get(custom_toast).value == true"
name: post_word_count_toast_medium
label: 阅读时间略长提示语
- $formkit: text
if: "$get(post_word_count_toast).value == true && $get(custom_toast).value == true"
name: post_word_count_toast_difficulty
label: 阅读时间超长提示语
- $formkit: text
if: "$get(post_edit_time_toast).value == true && $get(custom_toast).value == true"
name: post_edit_time_toast_normal
label: 近期更新过文章提示语
- $formkit: text
if: "$get(post_edit_time_toast).value == true && $get(custom_toast).value == true"
name: post_edit_time_toast_medium
label: 一段时间未更新文章提示语
- $formkit: text
if: "$get(post_edit_time_toast).value == true && $get(custom_toast).value == true"
name: post_edit_time_toast_difficulty
label: 很长时间未更新文章提示语
- $formkit: select
name: toc_depth
label: 目录标题展开级别
value: 0
options:
- value: 0
label: 不展开
- value: 1
label: 展开一级标题
- value: 2
label: 展开二级标题
- value: 3
label: 展开三级标题
- value: 4
label: 展开四级标题
- value: 5
label: 全部展开
- $formkit: radio
name: post_nepre
label: 上一篇下一篇
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: author_profile
label: 博主信息
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: repeater
name: reward
label: 文章打赏
value: []
children:
- $formkit: text
name: label
label: 打赏方式名称
- $formkit: attachment
name: code
label: 打赏二维码
validation: "required"
- $formkit: radio
name: code_line
label: 开启代码行号
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: select
name: code_pretty
label: 文章代码高亮主题
value: Dracula
options:
- value: AndroidStudio
label: AndroidStudio
- value: Dark
label: Dark
- value: Docco
label: Docco
- value: Dracula
label: Dracula
- value: Far
label: Far
- value: Github
label: Github
- value: Tomorrow Night
label: Tomorrow Night
- group: tagAndCategory
label: 标签及分类页
formSchema:
- $formkit: radio
name: tag_cloud
label: 开启标签云
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: category_radar
label: 开启分类雷达
help: 需要大于等于 3 个分类时才会显示
value: true
options:
- value: true
label: 开启
- value: false
label: 关闭
- group: journal
label: 瞬间
formSchema:
- $formkit: radio
name: journal_type
id: journal_type
label: 瞬间背景类型
value: color
options:
- value: color
label: 颜色板
- value: image
label: 图片
- $formkit: color
if: "$get(journal_type).value == color"
name: journal_color_bg_1
label: 单数-瞬间背景颜色&按钮颜色
value: "#E6E6FA"
help: 瞬间单数卡片的背景色以及按钮的默认颜色
- $formkit: color
if: "$get(journal_type).value == color"
name: journal_color_font_1
label: 单数-瞬间字体颜色
value: "#000000"
help: 瞬间单数卡片的字体颜色
- $formkit: color
if: "$get(journal_type).value == color"
name: journal_color_bg_2
label: 双数-瞬间背景颜色&按钮颜色
value: "#F0FFFF"
help: 瞬间双数卡片的背景色以及按钮的默认颜色
- $formkit: color
if: "$get(journal_type).value == color"
name: journal_color_font_2
label: 双数-瞬间字体颜色
value: "#000000"
help: 瞬间双数卡片的字体颜色
- $formkit: attachment
if: "$get(journal_type).value == image"
id: journal_bg
key: journal_bg
name: journal_bg
label: 瞬间背景图片
help: 使用图片作为瞬间背景
- $formkit: radio
if: "$get(journal_type).value == image"
id: journal_bg_cover
key: journal_bg_cover
name: journal_bg_blur
label: 瞬间背景图片虚化
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: journal_likes
label: 瞬间点赞
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: journal_comment
label: 瞬间评论
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- group: photos
label: 相册页
formSchema:
- $formkit: text
name: default_group
label: 默认展示分组
placeholder: 请填写分组名称
value: ""
- $formkit: select
name: masonry_column
label: 瀑布流列数(移动端始终为1)
value: 3
options:
- value: 2
label: 2
- value: 3
label: 3
- value: 4
label: 4
- value: 5
label: 5
- value: 6
label: 6
- value: 7
label: 7
- value: 8
label: 8
- $formkit: select
name: masonry_changer_min
label: 瀑布流切换功能最小列数
value: 3
options:
- value: 2
label: 2
- value: 3
label: 3
- value: 4
label: 4
- value: 5
label: 5
- value: 6
label: 6
- value: 7
label: 7
- value: 8
label: 8
- $formkit: select
name: masonry_changer_max
label: 瀑布流切换功能最大列数
value: 5
options:
- value: 2
label: 2
- value: 3
label: 3
- value: 4
label: 4
- value: 5
label: 5
- value: 6
label: 6
- value: 7
label: 7
- value: 8
label: 8
- group: random_image
label: 随机图
formSchema:
- $formkit: text
name: rimage_url
label: 随机图 API 地址
validation: "required|url"
value: https://api.lixingyong.com/api/images
help: 随机图 API 地址。
- $formkit: text
name: rimage_other_params
label: 第三方 API 自定义参数
help: 第三方 API 自定义参数,如 category=dongman 。参数会跟随在随机图 API 地址后面
- $formkit: select
name: rimage_cover_lqip
id: rimage_cover_lqip
key: rimage_cover_lqip
label: 延迟占位方式
value: loading
help: 在图片还未加载之前的过渡效果
options:
- value: loading
label: 固定加载图
- value: lowquality
label: 低质量图
- $formkit: text
if: "$get(rimage_cover_lqip).value == 'lowquality'"
name: rimage_cover_lqip_params
label: API 低质量图参数
value: 'th=150'
- $formkit: radio
name: rimage_cover_open
id: rimage_cover_open
key: rimage_cover_open
label: 文章随机封面图
value: false
help: 文章是否使用随机图的设置随机获取图片
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: rimage_cover_sheet_open
id: rimage_cover_sheet_open
key: rimage_cover_sheet_open
label: 页面随机封面图图
value: false
help: 页面是否使用随机图的设置随机获取图片
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: select
if: "$get(rimage_cover_open).value == true || $get(rimage_cover_sheet_open).value == true"
name: rimage_cover_itype
id: rimage_cover_itype
label: 封面列表图库获取范围
value: image
help: 将依据设置范围从图库中对应的内容里返回图片
options:
- value: image
label: 所有图片
- value: album
label: 相册
- value: category
label: 分类
- value: user
label: 用户
- $formkit: text
if: "($get(rimage_cover_open).value == true || $get(rimage_cover_sheet_open).value == true) && $get(rimage_cover_itype).value != image"
name: rimage_cover_id
label: 封面图获取范围编号
help: 相册编号、分类编号或用户名
validation: "required"
- $formkit: radio
name: rimage_cover_back_open
id: rimage_cover_back_open
key: rimage_cover_back_open
label: 首页背景是否使用随机图
value: false
help: 首页背景是否启用随机图,如果启用,则第一屏中的首页背景图片将会无效化
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: select
if: "$get(rimage_cover_back_open).value == true"
name: rimage_cover_back_itype
id: rimage_cover_back_itype
key: rimage_cover_back_itype
label: 背景图获取范围
value: image
help: 封面图获取范围,设置之后,将从设置范围中返回图片
options:
- value: image
label: 所有图片
- value: album
label: 相册
- value: category
label: 分类
- value: user
label: 用户
- $formkit: text
if: "$get(rimage_cover_back_open).value == true && $get(rimage_cover_back_itype).value != image"
name: rimage_cover_back_id
label: 背景图获取范围编号
help: 如相册编号、分类编号或用户名
- $formkit: select
if: "$get(rimage_cover_back_open).value == true"
name: rimage_cover_back_num
label: 背景图片循环张数
value: 5
options:
- value: 3
label: 三张
- value: 5
label: 五张
- value: 10
label: 十张
- value: 0
label: 无限
- group: theme
label: 主题风格
formSchema:
- $formkit: radio
name: theme_change
id: theme_change
label: 是否开启主题切换
value: true
help: 所有主题的样式可以自定义,但建议默认即可
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: repeater
if: "$get(theme_change).value == true"
name: bg_themes
min: 1
max: 8
label: 主题配置
value:
- bg_name: white
bg_url:
bg_img_strategy: none
bg_icon: fa:television
bg_night: false
bg_isdefault: true
- bg_name: sakura
bg_url: /themes/theme-sakura/assets/images/themes/sakura.png
bg_img_strategy: none
bg_icon: fluent-emoji-high-contrast:cherry-blossom
bg_night: false
bg_isdefault: false
- bg_name: gribs
bg_url: /themes/theme-sakura/assets/images/themes/gribs.jpg
bg_img_strategy: none
bg_icon: fa:slack
bg_night: false
bg_isdefault: false
- bg_name: KAdots
bg_url: /themes/theme-sakura/assets/images/themes/kyotoanimation.png
bg_img_strategy: none
bg_icon: tabler:chart-grid-dots
bg_night: false
bg_isdefault: false
- bg_name: totem
bg_url: /themes/theme-sakura/assets/images/themes/little-monster.png
bg_img_strategy: none
bg_icon: fa:optin-monster
bg_night: false
bg_isdefault: false
- bg_name: pixiv
bg_url: /themes/theme-sakura/assets/images/themes/star02.png
bg_img_strategy: none
bg_icon: simple-icons:pixiv
bg_night: false
bg_isdefault: false
- bg_name: bing
bg_url: https://api.1314.cool/bingimg/
bg_img_strategy: cover
bg_icon: jam:bing
bg_night: false
bg_isdefault: false
- bg_name: dark
bg_url:
bg_img_strategy: cover
bg_icon: fa:moon-o
bg_night: true
bg_isdefault: false
children:
- $formkit: text
name: bg_name
label: 主题名称
- $formkit: attachment
name: bg_url
label: 主题图片/图片库链接
help: 不输入则为白色背景
- $formkit: select
label: 主题图片处理策略
name: bg_img_strategy
value: none
options:
- value: none
label: 无
- value: no-repeat
label: 不重复
- value: repeat
label: 重复
- value: cover
label: 完全覆盖背景
- $formkit: text
name: bg_icon
label: 主题图标
help: 图标可能无法立即生效
validation: required
- $formkit: radio
name: bg_night
label: 黑夜模式
help: 开启后,当前主题被选中的同时也会进入黑夜模式
value: false
options:
- value: true
label: 开启
- value: false
label: 关闭
- $formkit: radio
name: bg_isdefault
label: 是否为默认主题
value: false