diff options
| author | Eltrac <45323514+BigCoke233@users.noreply.github.com> | 2019-12-14 15:53:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-14 15:53:14 +0800 |
| commit | 953c801c9de1c2b34492d3d19313cc77089b5340 (patch) | |
| tree | 9742530d72e45c32f0f26f71e9fefb562e18c9a7 /libs/Options.php | |
| parent | 9f0e3e690a55a51610b77bf44d26ed7818676508 (diff) | |
🔩 Perf: 使顶部栏置于顶部时透明,成为独立的设置项
Diffstat (limited to 'libs/Options.php')
| -rw-r--r-- | libs/Options.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/Options.php b/libs/Options.php index 0e48c53..81a192a 100644 --- a/libs/Options.php +++ b/libs/Options.php @@ -83,10 +83,16 @@ function themeConfig($form) { //nav
$navStyle = new Typecho_Widget_Helper_Form_Element_Select('navStyle',array('0'=>'顶部导航栏','1'=>'左侧抽屉栏'),'0','<h2>导航栏 Nav</h2>类型','选择导航栏的类型(若选择左侧抽屉蓝,则下一条设置失效)');
$form->addInput($navStyle);
+ $navAero = new Typecho_Widget_Helper_Form_Element_Select('navAero',array('0'=>'是','1'=>'否'),'0','顶部透明','视口处于最顶部时,顶部导航栏是否变为透明');
+ $form->addInput($navAero);
//index-banner
$bannerUrl = new Typecho_Widget_Helper_Form_Element_Text('bannerUrl', NULL, 'https://s2.ax1x.com/2019/07/10/ZcRGX8.png', _t('<h2>首页大图 Banner</h2>图片 Url'), _t('首页大图的图片地址'));
$form->addInput($bannerUrl);
+ $bannerColor = new Typecho_Widget_Helper_Form_Element_Text('bannerColor', NULL, NULL, _t('背景色'), _t('填写 16 进制颜色代码或 rgb 值,方便某些懒得找图的懒人(比如我就是!)'));
+ $form->addInput($bannerColor);
+ $bannerFont = new Typecho_Widget_Helper_Form_Element_Select('bannerFont',array('0'=>'白色','1'=>'黑色'),'0','字体颜色','为了兼容不同的底色和背景色');
+ $form->addInput($bannerFont);
$bannerHeight = new Typecho_Widget_Helper_Form_Element_Text('bannerHeight', NULL, '60', _t('高度'), _t('首页大图所占屏幕的高度,100为最大,填入纯数字,如"35"'));
$form->addInput($bannerHeight);
$bannerTitle = new Typecho_Widget_Helper_Form_Element_Text('bannerTitle', NULL, NULL, _t('标题'), _t('这里是首页大图显示的的标题'));
|
