From 58d94c80bb4a715a6898e2ea57af0a20c571cbbd Mon Sep 17 00:00:00 2001 From: shy Date: Sat, 26 Aug 2023 22:45:49 +0800 Subject: [PATCH] opt icon --- core/chat/macos/applications.go | 2 +- core/chat/macos/desktop.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/chat/macos/applications.go b/core/chat/macos/applications.go index b5d07817..d1e1fc86 100644 --- a/core/chat/macos/applications.go +++ b/core/chat/macos/applications.go @@ -32,7 +32,7 @@ func init() { AppInstall(m, "", web.CODE_VIMER, mdb.ICON, "usr/icons/vimer.png") AppInstall(m, "", web.CHAT_FLOWS, mdb.ICON, "usr/icons/flows.png") AppInstall(m, "", web.CODE_COMPILE, mdb.ICON, "usr/icons/go.png") - AppInstall(m, "", web.CODE_GIT_STATUS, mdb.ICON, "usr/icons/git.jpg") + AppInstall(m, "", web.CODE_GIT_STATUS, mdb.ICON, "usr/icons/git.png") }}, code.INSTALL: {Hand: func(m *ice.Message, arg ...string) { AppInstall(m, arg[0], arg[1], arg[2:]...) }}, mdb.INPUTS: {Hand: func(m *ice.Message, arg ...string) { diff --git a/core/chat/macos/desktop.js b/core/chat/macos/desktop.js index c61d4ed3..563a1529 100644 --- a/core/chat/macos/desktop.js +++ b/core/chat/macos/desktop.js @@ -58,8 +58,8 @@ Volcanos(chat.ONIMPORT, { item.left = 100, item.top = 125, item.height = can.base.Min(can.ConfHeight()-345, 480, 800), item.width = can.base.Min(can.ConfWidth()-360, 640, 1200) if (can.ConfHeight() < 800) { item.top = 25, item.height = can.ConfHeight()-125, item.width = can.ConfWidth()-110 } if (can.user.isMobile) { item.left = 0, item.top = 25, item.height = can.ConfHeight()-125, item.width = can.ConfWidth() } + item._space = can.ConfSpace() can.onappend.plugin(can, item, function(sub) { can.ondetail.select(can, sub._target) - // can.page.style(can, sub._target, html.MIN_WIDTH, 480) var index = 0; can.core.Item({ "#f95f57": function(event) { sub.onaction._close(event, sub) }, "#fcbc2f": function(event) { var dock = can.page.Append(can, can.ui.dock._output, [{view: html.ITEM, list: [{view: html.ICON, list: [{img: can.misc.PathJoin(item.icon)}]}], onclick: function() {