From bbc545494b353765555e56808694af941998a433 Mon Sep 17 00:00:00 2001 From: redoing <2677915375@qq.com> Date: Thu, 8 Aug 2024 00:44:16 +0800 Subject: [PATCH] =?UTF-8?q?fix#=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E4=B8=BAlight-theme=E5=90=8E=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=A0=8F=E9=80=89=E4=B8=AD=E8=8F=9C=E5=8D=95=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改主题theme.js中颜色和次要颜色逻辑 --- static/system/component/pear/module/theme.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/system/component/pear/module/theme.js b/static/system/component/pear/module/theme.js index 01fd026..dab17f8 100644 --- a/static/system/component/pear/module/theme.js +++ b/static/system/component/pear/module/theme.js @@ -25,7 +25,7 @@ layui.define(["jquery","layer"], function (exports) { theme.colorSet = function(color, second) { var style = ''; - style += '.light-theme .pear-nav-tree .layui-this a:hover,.light-theme .pear-nav-tree .layui-this,.light-theme .pear-nav-tree .layui-this a,.pear-nav-tree .layui-this a,.pear-nav-tree .layui-this{background-color: ' +color + '!important;}'; + style += '.light-theme .pear-nav-tree .layui-this a:hover,.light-theme .pear-nav-tree .layui-this,.light-theme .pear-nav-tree .layui-this a,.pear-nav-tree .layui-this a,.pear-nav-tree .layui-this{background-color: ' + color + '!important;}'; style += '.pear-admin .layui-logo .title{color:' + color + '!important;}'; style += '.pear-frame-title .dot,.pear-tab .layui-this .pear-tab-active{background-color: ' + color +'!important;}'; style += '.bottom-nav li a:hover{background-color:' + color + '!important;}'; @@ -80,7 +80,7 @@ layui.define(["jquery","layer"], function (exports) { style += '.pear-btn:hover {color: '+color+';background-color: ' + second + ';}' style += '.pear-btn-primary[plain] {color: '+ color +' !important;background: ' + second + ' !important;}' style += '.pear-btn-primary[plain]:hover {background-color: ' + color + '!important}' - style += '.light-theme .pear-nav-tree .layui-this a:hover,.light-theme .pear-nav-tree .layui-this,.light-theme .pear-nav-tree .layui-this a {background-color:'+second+'!important;color:'+color+'!important;}' + style += '.light-theme .pear-nav-tree .layui-this a:hover,.light-theme .pear-nav-tree .layui-this,.light-theme .pear-nav-tree .layui-this a {background-color:'+color+'!important;color:'+second+'!important;}' style += '.light-theme .pear-nav-tree .layui-this{ border-right: 3px solid '+color+'!important}' style += '.loader:after {background:'+color+'}' style += '.layui-laydate .layui-this, .layui-laydate .layui-this>div{background:'+color+'!important}' -- Gitee