Skip to content

Leebox#58

Open
muzili0712 wants to merge 3 commits into
fish2018:mainfrom
muzili0712:leebox
Open

Leebox#58
muzili0712 wants to merge 3 commits into
fish2018:mainfrom
muzili0712:leebox

Conversation

@muzili0712

Copy link
Copy Markdown

No description provided.

jianli27 and others added 3 commits July 3, 2026 10:46
在保持 TVBox 原有交互、id 与 ViewBinding 不变的前提下,将 mobile 与
leanback 双 flavor 界面重构为「午夜首映」暗色设计。

电视端(leanback)
- 首页:功能栏(直播/搜索/收藏/推送/设置)移至顶部、分类改当页展示、
  新增 Hero 首页推荐位(Hero/HeroPresenter/adapter_hero/mdl_hero_mask)
- 详情页:站源提为顶部面包屑、meta 圆点分隔、操作栏与选集重排
- 搜索页:热搜榜由横向胶囊改竖排排行榜(前四名琥珀序号)
- 设置页:两栏式(左分类导航滚动定位 + 右分组卡片)
- 直播/播放器 OSD/各列表项:令牌化对齐

手机端(mobile)
- 播放器 OSD:顶底渐变遮罩、宋体标题、次要色分辨率、等宽时间
- 首页 Hero、详情、搜索、直播、设置、历史、收藏等页令牌化

设计令牌统一 md_/mdm_/mdl_ 前缀,打包思源宋体,附设计稿 design-preview/。

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
- mobile flavor 接入 AutoSize:390dp 短边基准,横竖屏切换基准轴,与 leanback 同构 getResources hook
- 退役 Setting.wrapUiScale 手动密度改写,全项目统一为 AutoSize 单一适配机制
- 界面大小改为五档:跟随系统(原生渲染)/超级大1.2/大1.1/标准1.0/小0.9,跟随系统走 cancelAdapt
- ResUtil 无参 getDisplayMetrics 优先取前台 Activity,修正 dp2px 与适配密度脱节
- 附 openspec 变更文档(proposal/design/specs/tasks)

Co-Authored-By: Claude Fable 5 <[email protected]>
Add five OpenSpec skill documents (openspec-apply-change, openspec-archive-change, openspec-explore, openspec-propose, openspec-sync-specs) under .codex/skills. Add a new main spec at openspec/specs/screen-adaptation/spec.md describing mobile/TV autosize requirements. Archive the existing autosize change into openspec/changes/archive/2026-07-03-autosize-screen-adaptation. Make a small layout tweak in activity_home.xml (replace marginStart/marginEnd with centerHorizontal). Rename project root in settings.gradle from "TV" to "LeeBox".
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.

1 participant