mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-15 19:22:26 +08:00
feat: change desc
This commit is contained in:
parent
044ef9c3e8
commit
db3be41dff
|
@ -408,12 +408,15 @@ fun AdvancedPage() {
|
||||||
color = MaterialTheme.colorScheme.primary,
|
color = MaterialTheme.colorScheme.primary,
|
||||||
)
|
)
|
||||||
|
|
||||||
SettingItem(
|
if (snapshotCount > 0) {
|
||||||
title = "快照记录" + (if (snapshotCount > 0) "-$snapshotCount" else ""),
|
SettingItem(
|
||||||
onClick = {
|
title = "快照记录",
|
||||||
navController.toDestinationsNavigator().navigate(SnapshotPageDestination)
|
subtitle = "存在 $snapshotCount 条记录",
|
||||||
}
|
onClick = {
|
||||||
)
|
navController.toDestinationsNavigator().navigate(SnapshotPageDestination)
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
|
||||||
val screenshotRunning by ScreenshotService.isRunning.collectAsState()
|
val screenshotRunning by ScreenshotService.isRunning.collectAsState()
|
||||||
|
@ -582,8 +585,16 @@ fun AdvancedPage() {
|
||||||
color = MaterialTheme.colorScheme.primary,
|
color = MaterialTheme.colorScheme.primary,
|
||||||
)
|
)
|
||||||
|
|
||||||
TextSwitch(title = "前台悬浮窗",
|
TextSwitch(
|
||||||
subtitle = "添加透明悬浮窗,关闭可能导致不点击/点击缓慢",
|
title = "前台悬浮窗",
|
||||||
|
subtitle = "添加透明悬浮窗",
|
||||||
|
suffix = "查看作用",
|
||||||
|
onSuffixClick = {
|
||||||
|
context.mainVm.dialogFlow.updateDialogOptions(
|
||||||
|
title = "悬浮窗作用",
|
||||||
|
text = "1.提高 GKD 前台优先级, 降低被系统杀死概率\n2.提高点击响应速度, 关闭后可能导致点击缓慢或不点击",
|
||||||
|
)
|
||||||
|
},
|
||||||
checked = store.enableAbFloatWindow,
|
checked = store.enableAbFloatWindow,
|
||||||
onCheckedChange = {
|
onCheckedChange = {
|
||||||
storeFlow.value = store.copy(
|
storeFlow.value = store.copy(
|
||||||
|
|
|
@ -68,12 +68,12 @@ fun SlowGroupPage() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
title = { Text(text = if (ruleSummary.slowGroupCount > 0) "缓慢查询-${ruleSummary.slowGroupCount}" else "缓慢查询") },
|
title = { Text(text = "缓慢查询") },
|
||||||
actions = {
|
actions = {
|
||||||
IconButton(onClick = throttle {
|
IconButton(onClick = throttle {
|
||||||
context.mainVm.dialogFlow.updateDialogOptions(
|
context.mainVm.dialogFlow.updateDialogOptions(
|
||||||
title = "缓慢查询",
|
title = "缓慢查询",
|
||||||
text = "任意单个规则同时满足以下 3 个条件即判定为缓慢查询\n\n1. 选择器右侧无法快速查询且不是主动查询, 或内部使用<<且无法快速查询\n2. preKeys 为空\n3. matchTime 为空或大于 10s",
|
text = "任意单个规则同时满足以下 3 个条件即判定为缓慢查询\n\n1. 选择器右侧无法快速查询且不是主动查询, 或内部使用<<且无法快速查询\n2. preKeys 为空\n3. matchTime 为空或大于 10s\n\n缓慢查询可能导致触发缓慢或更多耗电",
|
||||||
)
|
)
|
||||||
}) {
|
}) {
|
||||||
Icon(Icons.Outlined.Info, contentDescription = null)
|
Icon(Icons.Outlined.Info, contentDescription = null)
|
||||||
|
|
|
@ -98,13 +98,13 @@ fun SnapshotPage() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
title = { Text(text = if (snapshots.isEmpty()) "快照记录" else "快照记录-${snapshots.size}") },
|
title = { Text(text = "快照记录") },
|
||||||
actions = {
|
actions = {
|
||||||
if (snapshots.isNotEmpty()) {
|
if (snapshots.isNotEmpty()) {
|
||||||
IconButton(onClick = throttle(fn = vm.viewModelScope.launchAsFn(Dispatchers.IO) {
|
IconButton(onClick = throttle(fn = vm.viewModelScope.launchAsFn(Dispatchers.IO) {
|
||||||
context.mainVm.dialogFlow.waitResult(
|
context.mainVm.dialogFlow.waitResult(
|
||||||
title = "删除记录",
|
title = "删除记录",
|
||||||
text = "确定删除全部快照记录?",
|
text = "确定删除全部 ${snapshots.size} 条快照记录?",
|
||||||
error = true,
|
error = true,
|
||||||
)
|
)
|
||||||
snapshots.forEach { s ->
|
snapshots.forEach { s ->
|
||||||
|
|
|
@ -162,8 +162,8 @@ fun useControlPage(): ScaffoldExt {
|
||||||
|
|
||||||
if (ruleSummary.slowGroupCount > 0) {
|
if (ruleSummary.slowGroupCount > 0) {
|
||||||
SettingItem(
|
SettingItem(
|
||||||
title = "耗时查询-${ruleSummary.slowGroupCount}",
|
title = "缓慢查询",
|
||||||
subtitle = "可能导致触发缓慢或更多耗电",
|
subtitle = "存在 ${ruleSummary.slowGroupCount} 条记录",
|
||||||
onClick = {
|
onClick = {
|
||||||
navController.toDestinationsNavigator().navigate(SlowGroupPageDestination)
|
navController.toDestinationsNavigator().navigate(SlowGroupPageDestination)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user