Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编写 window insets 系统文档 #1647

Open
Him188 opened this issue Feb 9, 2025 · 1 comment
Open

编写 window insets 系统文档 #1647

Him188 opened this issue Feb 9, 2025 · 1 comment
Labels
P2 一般优先级, 可以等待 (Normal) t: documentation 类型: 文档优化

Comments

@Him188
Copy link
Member

Him188 commented Feb 9, 2025

          即使我一直参与群内讨论, 我也仍然不是很能了解现在 insets 架构, 对于以后新开发者来说就更不好理解了. 所以最好要有一个 insets 系统的描述性文档, 也就是:
  • 现在的 insets 系统有哪些组件? WindowInsets.desktopTitleBar(), WindowInsets.captionButton, LocalCaptionButtonInsets 什么的有什么区别/关联?
  • 每个页面是否默认会有这些 insets/padding
  • 处理这些 insets 的示例

Originally posted by @Him188 in #1578 (comment)

@Him188 Him188 added P2 一般优先级, 可以等待 (Normal) t: documentation 类型: 文档优化 labels Feb 9, 2025
@Sanlorng
Copy link
Contributor

Sanlorng commented Feb 9, 2025

DesktopTitleBarInsets 和 DesktopCaptionButton

WindowInsets.desktopTitleBar 只有顶部方向的inset,用于padding标题栏高度的组件,如VideoPlayerAppBar
WindowInsets.destopCaptionButton 具有左或者右的inset,代表caption button宽度以及位置(Windows是右,macOS是左),顶部方向的inset 代表caption button的高度. 用于需要融入标题栏的区域做一些exclude left 或者exclude right的操作,如以后在Windows端增加windowAwlaysOnTop的按钮,放置在caption button的左侧.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 一般优先级, 可以等待 (Normal) t: documentation 类型: 文档优化
Projects
None yet
Development

No branches or pull requests

2 participants