Skip to content

feat: 支持「猫咪设置 > 窗口设置 > 鼠标移入隐藏」延迟设置#935

Merged
ayangweb merged 1 commit intomasterfrom
support-hide-delay
Apr 18, 2026
Merged

feat: 支持「猫咪设置 > 窗口设置 > 鼠标移入隐藏」延迟设置#935
ayangweb merged 1 commit intomasterfrom
support-hide-delay

Conversation

@ayangweb
Copy link
Copy Markdown
Owner

@ayangweb ayangweb commented Apr 18, 2026

resolved #754

image

@ayangweb ayangweb marked this pull request as draft April 18, 2026 11:28
@ayangweb ayangweb marked this pull request as ready for review April 18, 2026 11:28
@ayangweb ayangweb requested a review from Copilot April 18, 2026 11:28
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for a configurable delay when using “Hide on hover” in the main cat window, addressing feature request #754.

Changes:

  • Extend cat window preferences with hideOnHoverDelay and expose it in the Preferences UI when “Hide on hover” is enabled.
  • Implement delayed hide behavior in device/cursor tracking logic.
  • Update localized hint text to mention the delay behavior (0 = immediate) and refactor ProListItem slot handling.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/stores/cat.ts Adds persisted setting window.hideOnHoverDelay with default value.
src/pages/preference/components/cat/index.vue Adds delay InputNumber UI next to the hide-on-hover switch.
src/composables/useDevice.ts Implements delayed hide-on-hover with a timer and cursor-event handling.
src/components/pro-list-item/index.vue Refactors slot detection to use defineSlots().
src/locales/zh-TW.json Updates hide-on-hover hint to include delay semantics.
src/locales/zh-CN.json Updates hide-on-hover hint to include delay semantics.
src/locales/vi-VN.json Updates hide-on-hover hint to include delay semantics.
src/locales/pt-BR.json Updates hide-on-hover hint to include delay semantics.
src/locales/en-US.json Updates hide-on-hover hint to include delay semantics.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/composables/useDevice.ts
Comment thread src/composables/useDevice.ts
Comment thread src/composables/useDevice.ts
Comment thread src/pages/preference/components/cat/index.vue
Comment thread src/composables/useDevice.ts
@ayangweb ayangweb merged commit fe41f58 into master Apr 18, 2026
4 checks passed
@ayangweb ayangweb deleted the support-hide-delay branch April 18, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] 新增配置项:延迟隐藏

2 participants