Skip to content

Commit

Permalink
加入了元素风格设置选项
Browse files Browse the repository at this point in the history
  • Loading branch information
changbin1997 committed Apr 8, 2020
1 parent 65702ae commit a6b43cd
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,21 @@ function themeFields($layout) {
function themeConfig($form) {
// 主题配色
$color = new Typecho_Widget_Helper_Form_Element_Radio('color', array(
'dark' => 'dark',
'primary' => 'primary',
'info' => 'info',
'success' => 'success',
'light' => 'light'
), 'light', _t('主题配色'));
'dark' => 'Dark',
'primary' => 'Primary',
'info' => 'Info',
'success' => 'Success',
'light' => 'Light'
), 'light', _t('主题配色'), _t('主题配色包含了 导航栏、链接、按钮、标签 的颜色。'));
$form->addInput($color);

// 主题元素风格设置
$rounded = new Typecho_Widget_Helper_Form_Element_Radio('rounded', array(
'fillet' => '圆角',
'rightAngle' => '直角'
), 'fillet', _t('主题元素风格'), _t('这里的元素风格包括了 区块、按钮、输入表单、标签'));
$form->addInput($rounded);

// 站点Logo
$logoUrl = new Typecho_Widget_Helper_Form_Element_Text('logoUrl', NULL, NULL, _t('站点 Logo 地址'), _t('Logo 会显示在标签页的标题前面。'));
$form->addInput($logoUrl);
Expand Down

0 comments on commit a6b43cd

Please sign in to comment.