1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-12-12 08:42:12 +08:00
parent 6fdd3b1f9a
commit 0c23bd3a25
2 changed files with 7 additions and 8 deletions

View File

@ -44,7 +44,9 @@ body {
}
input { font-family:var(--input-font-family); }
body { font-family:var(--body-font-family); }
body { background-color:var(--body-bg-color); color:var(--body-fg-color); }
body.windows { --code-font-family:"Courier New"; }
body.cmd:not(.portal) { background-color:var(--plugin-bg-color); color:var(--plugin-fg-color); }
body.cmd {
--plug-width:1200px; --plug-height:480px;
}
@ -400,8 +402,6 @@ fieldset>div.status>legend>span.remove:hover { background-color:var(--hover-bg-c
fieldset>div.status>legend:not(:hover)>span.remove { visibility:hidden; }
fieldset>div.status>legend:not(:hover):not(.select) { background-color:unset; border-radius:0; }
/* theme */
body { background-color:var(--body-bg-color); color:var(--body-fg-color); }
body.cmd { background-color:var(--plugin-bg-color); color:var(--plugin-fg-color); }
legend { background-color:var(--legend-bg-color); border-radius:var(--button-radius); }
legend:hover { background-color:var(--hover-bg-color); color:var(--hover-fg-color); }
textarea:hover { border:var(--box-notice); }

View File

@ -36,8 +36,7 @@ Volcanos(chat.ONACTION, {_init: function(can, target) {
can.onengine.listen(can, item, function(event, msg) { can.onaction[item](event, can), can.onengine.signal(can, chat.ONACTION_TOUCH, msg) }, target)
})
},
onsize: function(can, msg, height, width) {
can.Conf({height: can.base.Min(height, 240), width: width}) },
onsize: function(can, msg, height, width) { can.Conf({height: can.base.Min(height, 240), width: width}) },
onlogin: function(can, msg) {
can.Conf(html.MARGIN_Y, 2*html.PLUGIN_PADDING+2*html.PLUGIN_MARGIN+html.ACTION_HEIGHT)
can.Conf(html.MARGIN_X, 2*html.PLUGIN_PADDING+2*html.PLUGIN_MARGIN)
@ -50,17 +49,17 @@ Volcanos(chat.ONACTION, {_init: function(can, target) {
}}])._target; can._toggle = target
can.misc.sessionStorage(can, "river:hide") == ice.TRUE && target.click()
}); if (!can.Conf(chat.TOOL) && !can.user.mod.isCmd) { return }
if (can.base.beginWith(location.pathname, "/share/")) {
can._names = location.pathname
}
if (can.base.beginWith(location.pathname, "/share/")) { can._names = location.pathname }
can.Conf(chat.TOOL)? can.onappend.layout(can, can.core.List(can.Conf(chat.TOOL), function(item, index, list) { item.type = chat.PLUGIN
if (list.length == 1) { can.user.mod.cmd = item.index
can.base.isIn(item.index, web.CHAT_MACOS_DESKTOP) || can.user.title(item.index)
can.onaction._onaction_cmd(can), item.mode = chat.CMD, item.opts = can.misc.Search(can)
can.user.mod.isCmd && can.user.isMobile && (can.ConfHeight(can.ConfHeight()-html.ACTION_HEIGHT))
can.onappend.style(can, item.index, document.body)
} return item
}), FLOW).layout(can.page.height(), can.page.width()): can.runAction(can.request(), ctx.COMMAND, [], function(msg) {
if (msg.Length() == 1) { can.onaction._onaction_cmd(can) } can.onimport._init(can, msg)
if (msg.Length() == 1) {
can.onaction._onaction_cmd(can) } can.onimport._init(can, msg)
})
},
onstorm_select: function(can, msg, river, storm) {