@@ -458,7 +459,6 @@ export default defineComponent({
// 初始化功能
App.createMenu() // Electron:创建菜单
App.createIpc() // Electron:创建 IPC 通信
- App.loadAppendStyle() // 加载额外样式
// 加载开发者相关功能
if (process.env.NODE_ENV == 'development') {
document.title = 'Stapxs QQ Lite (Dev)'
@@ -477,6 +477,8 @@ export default defineComponent({
if(app) app.classList.add('withBar')
}
Option.runAS('opt_auto_gtk', Option.get('opt_auto_gtk'))
+ // 加载额外样式
+ App.loadAppendStyle()
// 加载密码保存和自动连接
loginInfo.address = runtimeData.sysConfig.address
if(runtimeData.sysConfig.save_password && runtimeData.sysConfig.save_password != true) {
diff --git a/src/assets/css/append/append_full_transparent.css b/src/assets/css/append/append_full_transparent.css
new file mode 100644
index 0000000..5fda7e0
--- /dev/null
+++ b/src/assets/css/append/append_full_transparent.css
@@ -0,0 +1,18 @@
+.home-body,
+.main-body > ul,
+.friend-list,
+.friend-list-space,
+.chat-pan,
+.chat-pan > div.bg,
+.editor-main,
+.opt-main,
+.script-view,
+.opt-main > div:last-child {
+ background-color: transparent !important;
+ background: transparent !important;
+ box-shadow: unset !important;
+}
+
+#app {
+ background: rgba(var(--color-bg-rgb), 0.1) !important;
+}
\ No newline at end of file
diff --git a/src/assets/css/append/append_vibrancy.css b/src/assets/css/append/append_vibrancy.css
index 792ad0b..00d79cd 100644
--- a/src/assets/css/append/append_vibrancy.css
+++ b/src/assets/css/append/append_vibrancy.css
@@ -1,3 +1,7 @@
+html, body {
+ background: transparent;
+}
+
.home-body {
background: rgba(var(--color-card-rgb), 0.6);
}
@@ -94,7 +98,6 @@
}
.script-view .list > header > span,
.script-view .list-body > div {
- background: transparent;
backdrop-filter: blur(10px);
}
diff --git a/src/assets/css/msg.css b/src/assets/css/msg.css
index ceaa212..8c7202c 100644
--- a/src/assets/css/msg.css
+++ b/src/assets/css/msg.css
@@ -499,6 +499,24 @@
margin: 0 5px;
}
+.note-notify {
+ transition: border .5s;
+ border: 1px solid transparent;
+}
+.note-notify img {
+ display: inline-block;
+ width: 1rem;
+ margin: 0 3px;
+}
+.note-notify span {
+ margin: 0 3px;
+ color: var(--color-main);
+ font-weight: bold;
+}
+.note.poking > div.note-notify {
+ border: 1px solid var(--color-main);
+}
+
@media (max-width: 992px) {
/* 消息体 */
.message > img {
diff --git a/src/assets/css/options.css b/src/assets/css/options.css
index 6ca5b72..adc4935 100644
--- a/src/assets/css/options.css
+++ b/src/assets/css/options.css
@@ -418,6 +418,41 @@
margin-left: 40px;
}
+.bot-status {
+ background: var(--color-card-1);
+ transition: background .3s;
+ padding: 10px;
+ margin-top: -10px;
+ margin-bottom: 10px;
+ border-radius: 7px;
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+}
+.bot-status.normal {
+ background: var(--color-bg-green);
+}
+.bot-status.slow {
+ background: var(--color-bg-yellow);
+}
+.bot-status > div {
+ transition: background .3s;
+ background: var(--color-main);
+ width: 0.5rem;
+ height: 0.5rem;
+ border-radius: 100%;
+ margin-right: 10px;
+}
+.bot-status.normal > div {
+ background: var(--color-green);
+}
+.bot-status.slow > div {
+ background: var(--color-yellow);
+}
+.bot-status > span {
+ font-size: 0.85rem;
+}
+
.theme-color-col {
flex-direction: row-reverse !important;
margin-right: 0 !important;
diff --git a/src/assets/css/view.css b/src/assets/css/view.css
index 6b70624..3b3ec49 100644
--- a/src/assets/css/view.css
+++ b/src/assets/css/view.css
@@ -1,4 +1,6 @@
html, body {
+ background: var(--color-main);
+ font-family: 'Arial', 'Helvetica', 'sans-serif';
user-select: none;
overflow: hidden;
height: 100%;
@@ -384,7 +386,6 @@ textarea:focus {
border-radius: 7px;
transform: translate(0, 0);
transition: background .2s, color .2s, transform .2s;
- align-items: center;
}
.friend-body.active {
background: var(--color-main);
@@ -424,7 +425,6 @@ textarea:focus {
overflow: hidden;
}
.friend-body > div:nth-child(1) {
- height: 54px;
flex: unset;
width: 4px;
background: var(--color-main);
diff --git a/src/assets/l10n/zh-CN.json b/src/assets/l10n/zh-CN.json
index b1f5cb7..6ef83a3 100644
--- a/src/assets/l10n/zh-CN.json
+++ b/src/assets/l10n/zh-CN.json
@@ -355,6 +355,21 @@
"sys_notice_message": "留言",
"sys_notice_new_friend": "请求加为好友",
"sys_notice_invite_group": "邀请你加入群聊",
+ "chat_at_all": "全体成员",
+ "scripts_run_newNotice": "新通知",
+ "option_view_always_top": "置顶窗口",
+ "option_view_always_top_tip": "你也不想想让你的对象知道你不在看 ta 的消息吧 ~",
+ "option_default": "默认",
+ "option_vibrancy_mode_vibrancy": "完整模糊",
+ "option_vibrancy_mode_transparent": "完整透明",
+ "option_view_vibrancy_mode": "窗口透明模式",
+ "option_view_vibrancy_mode_tip": "怎么看光还要挑三拣四的",
+ "option_dev_restart_tip1": "此操作将在重启应用后生效,现在就要重启吗?",
+ "option_dev_restart_tip2": "此操作仅供娱乐,将会在下次关闭时恢复。",
+ "a_inner_script": "这是个内嵌示例脚本,你可以修改它并保存使用。",
+ "opt_bot_status_normal": "连接正常({timeout} - {step} s)",
+ "opt_bot_status_slow": "连接延迟({timeout} - {step} s)",
+ "opt_bot_status_loading": "正在收集连接信息……",
"menu_about": "关于",
"menu_update": "检查更新…",
diff --git a/src/assets/pathMap/NapCat.Onebot.yaml b/src/assets/pathMap/NapCat.Onebot.yaml
index 670c859..73f77d2 100644
--- a/src/assets/pathMap/NapCat.Onebot.yaml
+++ b/src/assets/pathMap/NapCat.Onebot.yaml
@@ -45,7 +45,7 @@ message_list:
name: get_group_msg_history
private_name: get_friend_msg_history
source: $.data.messages[*]
- pageed: false # 是否支持分页(id + count 获取)
+ pagerType: full # 分页类型:全量 full / 增量 incremental / 无分页 none
type: $.data
message_type:
user: private
@@ -137,7 +137,7 @@ leave_group:
# 获取收藏表情
roaming_stamp:
name: fetch_custom_face
- pageed: true
+ pagerType: full
# 获取历史会话
recent_contact:
name: get_recent_contact
diff --git a/src/assets/scripts/_scriptList.json b/src/assets/scripts/_scriptList.json
new file mode 100644
index 0000000..4ae8b8f
--- /dev/null
+++ b/src/assets/scripts/_scriptList.json
@@ -0,0 +1,12 @@
+[
+ {
+ "title": "自动回应",
+ "name": "autoResponse",
+ "condition": "message"
+ },
+ {
+ "title": "刷新特别关心",
+ "name": "createSpecialCare",
+ "condition": "userFlush"
+ }
+]
\ No newline at end of file
diff --git a/src/assets/scripts/autoResponse.js b/src/assets/scripts/autoResponse.js
new file mode 100644
index 0000000..9250694
--- /dev/null
+++ b/src/assets/scripts/autoResponse.js
@@ -0,0 +1,11 @@
+/*
+ title: 自动回应
+*/
+
+const id = this.msgInfo.group_id ?? this.msgInfo.private_id
+const blacklist = []
+
+if (this.isMe && blacklist.indexOf(id) === -1) {
+ this.sendMsg('set_msg_emoji_like',
+ { 'message_id': this.message.message_id, 'emoji_id': '66' })
+}
\ No newline at end of file
diff --git a/src/assets/scripts/createSpecialCare.js b/src/assets/scripts/createSpecialCare.js
new file mode 100644
index 0000000..0dc0d4b
--- /dev/null
+++ b/src/assets/scripts/createSpecialCare.js
@@ -0,0 +1,22 @@
+/*
+ title: 刷新特别关心
+ discription: 有些框架获取分组可能不包含特别关心,
+ 你可以用这个脚本来指定特别关心的用户;
+ 享受特别关心的相关通知功能。
+*/
+
+const specialList = []
+for (const user of this.runtimeData.userList) {
+ if (specialList.includes(user.user_id)) {
+ user.class_id = 9999
+ user.class_name = '特别关心'
+ const classInfo = this.runtimeData.tags.classes.find(
+ (item) => item.class_id == 9999)
+ if (classInfo == undefined) {
+ this.runtimeData.tags.classes.unshift({
+ class_id: 9999,
+ class_name: '特别关心'
+ })
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/background.ts b/src/background.ts
index edebe35..77c8a7d 100644
--- a/src/background.ts
+++ b/src/background.ts
@@ -50,6 +50,7 @@ async function createWindow() {
defaultHeight: 530
})
const store = new Store()
+ const vibrancyMode = store.get('vibrancy_mode')
let windowConfig = {
x: mainWindowState.x,
y: mainWindowState.y,
@@ -71,7 +72,7 @@ async function createWindow() {
...windowConfig,
titleBarStyle: 'hidden',
trafficLightPosition: { x: 11, y: 10 },
- vibrancy: 'fullscreen-ui',
+ vibrancy: vibrancyMode == 'transparent' ? undefined : 'fullscreen-ui',
transparent: true,
visualEffectState: process.env.NODE_ENV
@@ -82,7 +83,7 @@ async function createWindow() {
windowConfig = {
...windowConfig,
backgroundColor: '#00000000',
- backgroundMaterial: 'acrylic',
+ backgroundMaterial: vibrancyMode == 'transparent' ? undefined : 'acrylic',
frame: false
}
store.set('opt_no_window', 'true')
diff --git a/src/components/BulletinBody.vue b/src/components/BulletinBody.vue
index 083e815..da31c81 100644
--- a/src/components/BulletinBody.vue
+++ b/src/components/BulletinBody.vue
@@ -15,7 +15,7 @@
.format(data.time) }}
-
+
{{ $t('bulletin_show_tip') }}
diff --git a/src/components/FacePan.vue b/src/components/FacePan.vue
index 50fa108..2900c5c 100644
--- a/src/components/FacePan.vue
+++ b/src/components/FacePan.vue
@@ -19,8 +19,8 @@