mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
Compare commits
13
Commits
dev
...
v2.5.0-beta.4
No files matched your search
@@ -1,5 +1,18 @@
|
||||
# 更新日志
|
||||
|
||||
## V2.5.0-beta.4
|
||||
|
||||
- 修复: 手势导航条区域未适配(改为色块填充:底栏背景延伸到屏幕底部,与导航栏同色)
|
||||
- 修复: edge-to-edge 在部分 KernelSU 版本未生效(改为探测全局 ksu 对象并兼容 enableInsets 命名)
|
||||
|
||||
## V2.5.0-beta.3
|
||||
|
||||
- 修复: 底部导航栏未适配手势导航条(补 viewport-fit=cover 与 edge-to-edge,安全区变量此前恒为 0)
|
||||
- 修复: 文档预览不渲染 HTML 与 GitHub 提示块(`> [!TIP]` 等)
|
||||
- 修复: 活动抓取会误抓到系统桌面,现忽略桌面/系统界面/输入法
|
||||
- 优化: 亮度滑条改为拖动中按 3% 变化实时应用,松手再应用最终值
|
||||
- 优化: NOTE.txt 去掉过期的版本号
|
||||
|
||||
## V2.5.0-beta.2
|
||||
|
||||
- 重构: WebUI 全量重写为 **Material Design 3**(基于 `@material/web`),补全颜色/字阶/形状/动效令牌,支持涟漪与状态层反馈
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
id=LuminPro
|
||||
name=LuminPro丨日用屏幕亮度强化
|
||||
version=V2.5.0-beta.2
|
||||
versionCode=2050052
|
||||
version=V2.5.0-beta.4
|
||||
versionCode=2050054
|
||||
author=酷安@Yule
|
||||
description=本模块旨在让你的 Android 设备随时可以使用高亮度显示屏幕内容。无论设备当前亮度如何,只要满足设定的前台触发亮度条件,模块便会自动且平滑地提升屏幕亮度至硬件支持的峰值状态,确保你在强光室外也能获得清晰的显示效果
|
||||
updateJson=https://raw.githubusercontent.com/YuleBest/LuminPro/main/update.json
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"versionCode": 2050054,
|
||||
"version": "V2.5.0-beta.4",
|
||||
"zipUrl": "https://github.com/YuleBest/LuminPro/releases/download/v2.5.0-beta.4/LuminPro_V2.5.0-beta.4.zip",
|
||||
"changelog": "https://raw.githubusercontent.com/YuleBest/LuminPro/beta/changelog.md"
|
||||
}
|
||||
+11
-5
@@ -1,4 +1,4 @@
|
||||
import { exec, moduleInfo, enableEdgeToEdge } from 'kernelsu'
|
||||
import { exec, moduleInfo } from 'kernelsu'
|
||||
import { devMock } from './devMock.js'
|
||||
|
||||
export const MODULE_DIR = '/data/adb/modules/LuminPro'
|
||||
@@ -42,13 +42,19 @@ export function shellQuote(value) {
|
||||
}
|
||||
|
||||
/**
|
||||
* 启用 edge-to-edge:内容延伸至状态栏/手势条区域,
|
||||
* insets.css 的 --window-inset-* 随之生效,顶栏/底栏据此避让。
|
||||
* 不同 KernelSU 版本的命名不同,逐个尝试,全部不可用则忽略。
|
||||
* 启用 edge-to-edge:内容延伸至状态栏/手势条区域,insets.css 的
|
||||
* --window-inset-* / --safe-area-inset-* 随之生效。
|
||||
*
|
||||
* 注意:不能直接调用从 npm 包 import 的 enableEdgeToEdge——该绑定总是存在,
|
||||
* 不支持时是包内部调用 ksu 对象时抛错,会打断后续脚本(FontMM 踩过同样的坑)。
|
||||
* 这里改为探测全局 ksu 对象,并兼容 KernelSU-Next 的 enableInsets 命名。
|
||||
*/
|
||||
export function applyEdgeToEdge() {
|
||||
try {
|
||||
enableEdgeToEdge(true)
|
||||
const ksuApi = globalThis.ksu
|
||||
if (!ksuApi) return
|
||||
const fn = ksuApi.enableEdgeToEdge ?? ksuApi.enableInsets
|
||||
if (typeof fn === 'function') fn.call(ksuApi, true)
|
||||
} catch {
|
||||
/* 老版本没有该 API:布局仍可用,只是安全区取 0 */
|
||||
}
|
||||
|
||||
@@ -16,16 +16,18 @@ const tabs = [
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<md-navigation-bar>
|
||||
<md-navigation-tab
|
||||
v-for="tab in tabs"
|
||||
:key="tab.key"
|
||||
:label="tab.label"
|
||||
:active="modelValue === tab.key"
|
||||
@click="emit('update:modelValue', tab.key)"
|
||||
>
|
||||
<component :is="tab.icon" slot="active-icon" :size="24" />
|
||||
<component :is="tab.icon" slot="inactive-icon" :size="24" />
|
||||
</md-navigation-tab>
|
||||
</md-navigation-bar>
|
||||
<nav class="bottom-nav">
|
||||
<md-navigation-bar>
|
||||
<md-navigation-tab
|
||||
v-for="tab in tabs"
|
||||
:key="tab.key"
|
||||
:label="tab.label"
|
||||
:active="modelValue === tab.key"
|
||||
@click="emit('update:modelValue', tab.key)"
|
||||
>
|
||||
<component :is="tab.icon" slot="active-icon" :size="24" />
|
||||
<component :is="tab.icon" slot="inactive-icon" :size="24" />
|
||||
</md-navigation-tab>
|
||||
</md-navigation-bar>
|
||||
</nav>
|
||||
</template>
|
||||
@@ -138,10 +138,16 @@
|
||||
}
|
||||
|
||||
/* ── M3 导航栏 ────────────────────────────────────────────────────── */
|
||||
md-navigation-bar {
|
||||
/* 底栏容器:色块填充法——容器背景延伸至屏幕最底部,手势导航条区域
|
||||
与导航栏同色;内边距把导航内容抬到手势条之上。
|
||||
安全区变量在不同 KernelSU 版本命名不同,最后兜底 env()。 */
|
||||
.bottom-nav {
|
||||
flex: 0 0 auto;
|
||||
/* 背景延伸到屏幕底部,内容抬到手势条之上 */
|
||||
padding-bottom: var(--safe-area-inset-bottom, var(--window-inset-bottom, 0px));
|
||||
background-color: var(--md-sys-color-surface-container);
|
||||
padding-bottom: var(--safe-area-inset-bottom, var(--window-inset-bottom, env(safe-area-inset-bottom, 0px)));
|
||||
}
|
||||
|
||||
md-navigation-bar {
|
||||
--md-navigation-bar-container-color: var(--md-sys-color-surface-container);
|
||||
--md-navigation-bar-active-indicator-color: var(--md-sys-color-secondary-container);
|
||||
--md-navigation-bar-active-icon-color: var(--md-sys-color-on-secondary-container);
|
||||
|
||||
Reference in new issue
Block a user