diff --git a/base/web/html/html.go b/base/web/html/html.go index 3eeff15b..e49fe980 100644 --- a/base/web/html/html.go +++ b/base/web/html/html.go @@ -1,10 +1,11 @@ package html const ( - DARK = "dark" - LIGHT = "light" - WHITE = "white" - BLACK = "black" + DARK = "dark" + LIGHT = "light" + WHITE = "white" + BLACK = "black" + SILVER = "silver" ) const ( diff --git a/core/chat/header.go b/core/chat/header.go index 5f23db76..4fc1882b 100644 --- a/core/chat/header.go +++ b/core/chat/header.go @@ -91,7 +91,7 @@ func init() { return } m.Cmd(cli.SYSTEM, "osascript", "-e", `tell app "System Events" to tell appearance preferences to set dark mode to `+ - kit.Select(ice.FALSE, ice.TRUE, kit.IsIn(kit.Select(html.DARK, arg, 0), html.DARK, html.BLACK))) + kit.Select(ice.FALSE, ice.TRUE, kit.IsIn(kit.Select(html.DARK, arg, 0), html.DARK, html.BLACK, html.SILVER))) }}, }, ctx.ConfAction(SSO, "")), Hand: func(m *ice.Message, arg ...string) { m.Option("language.list", m.Cmd(nfs.DIR, path.Join(ice.SRC_TEMPLATE, m.PrefixKey(), aaa.LANGUAGE), nfs.FILE).Appendv(nfs.FILE)) diff --git a/core/chat/macos/desktop.css b/core/chat/macos/desktop.css index 6854e8d2..b57ab79c 100644 --- a/core/chat/macos/desktop.css +++ b/core/chat/macos/desktop.css @@ -33,7 +33,8 @@ fieldset.macos.desktop>div.output>div.desktop>fieldset>legend { padding-right:10 fieldset.macos.desktop>div.output>div.desktop>fieldset>legend:not(:hover) { background-color:unset; } fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>*:not(.textarea) { margin:10px 0px 10px 10px; } fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.icon { margin-left:0; margin-top:10px; margin-bottom:8px; } -fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.item.button>span.icon { font-size:26px; line-height:28px; } +fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.item.button>span.icon { font-size:32px; line-height:32px; } +fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.item.button.prunes>span.icon { font-size:20px; line-height:32px; } fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.item.icons { margin-left:0; } fieldset.macos.desktop>div.output>div.desktop>fieldset>form.option>div.item:last-child { margin-right:20px; }