mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
Compare commits
4
Commits
No files matched your search
@@ -1,5 +1,14 @@
|
||||
# 更新日志
|
||||
|
||||
## V2.5.0-beta.5
|
||||
|
||||
- 修复: 导航栏容器阴影在手势条区域露出一条边(关闭该阴影,与色块填充保持一致)
|
||||
|
||||
## V2.5.0-beta.4
|
||||
|
||||
- 修复: 手势导航条区域未适配(改为色块填充:底栏背景延伸到屏幕底部,与导航栏同色)
|
||||
- 修复: edge-to-edge 在部分 KernelSU 版本未生效(改为探测全局 ksu 对象并兼容 enableInsets 命名)
|
||||
|
||||
## V2.5.0-beta.3
|
||||
|
||||
- 修复: 底部导航栏未适配手势导航条(补 viewport-fit=cover 与 edge-to-edge,安全区变量此前恒为 0)
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
id=LuminPro
|
||||
name=LuminPro丨日用屏幕亮度强化
|
||||
version=V2.5.0-beta.3
|
||||
versionCode=2050053
|
||||
version=V2.5.0-beta.5
|
||||
versionCode=2050055
|
||||
author=酷安@Yule
|
||||
description=本模块旨在让你的 Android 设备随时可以使用高亮度显示屏幕内容。无论设备当前亮度如何,只要满足设定的前台触发亮度条件,模块便会自动且平滑地提升屏幕亮度至硬件支持的峰值状态,确保你在强光室外也能获得清晰的显示效果
|
||||
updateJson=https://raw.githubusercontent.com/YuleBest/LuminPro/main/update.json
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"versionCode": 2050053,
|
||||
"version": "V2.5.0-beta.3",
|
||||
"zipUrl": "https://github.com/YuleBest/LuminPro/releases/download/v2.5.0-beta.3/LuminPro_V2.5.0-beta.3.zip",
|
||||
"versionCode": 2050055,
|
||||
"version": "V2.5.0-beta.5",
|
||||
"zipUrl": "https://github.com/YuleBest/LuminPro/releases/download/v2.5.0-beta.5/LuminPro_V2.5.0-beta.5.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>
|
||||
+12
-3
@@ -138,11 +138,20 @@
|
||||
}
|
||||
|
||||
/* ── 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-container-elevation: 0;
|
||||
box-shadow: none;
|
||||
--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);
|
||||
--md-navigation-bar-active-label-text-color: var(--md-sys-color-on-surface);
|
||||
|
||||
Reference in new issue
Block a user