Skip to content

Fix: Make the ticker window resizable on Linux while moving the card background from body to the app root while keeping html together with body transparent whereby the global body rule is overridden with a descendant selector so that the rounded corners together with the surface color of opaque mode are restored while preserving transparent mode together with hover behavior unchanged - #36

Closed
MCXCC303 wants to merge 2 commits into
Leaderxin:feat/v1.7.0from
MCXCC303:fix/ticker-opaque-background

Conversation

@MCXCC303

@MCXCC303 MCXCC303 commented Nov 5, 2026

Copy link
Copy Markdown

简而言之就是把在 linux 上行情条下方那个多出来的一截给掐掉了,并且调整为了预览中应得的格式

不知道为啥上传不了图片了,我在评论里再试试

@MCXCC303

MCXCC303 commented Nov 5, 2026

Copy link
Copy Markdown
Author

修改前:
screenshot_20261105_092541
修改后:
screenshot_20261105_094751

@Leaderxin

Copy link
Copy Markdown
Owner

感谢反馈和这个 PR,截图和定位都很有帮助。

我确认了下根因,和你的判断一致:

  • Linux/GTK 下 resizable: false 会把窗口的 min/max 尺寸提示钉成同一个值,tao 的 set_inner_size 只能把窗口撑大、收不回内容高度,行情条底部就永久多出一截。
  • 视觉上的「多一块」还有第二层原因:variables.css 注入的 body { background-color: surface-0 } 比 ticker.html 的内联样式更晚、同特异性,底板色其实一直没生效;内容区只是悬停加了 3% 白才看起来像卡片。截图像素也能对上(内容区 = surface-0 + 3% 白,多余区域 = 纯 surface-0)。

两处修改方向都对。我这边会按同样思路把方案落到 feat/v1.7.0(Linux 放开 resizable + 底板挪到 #app),并补上说明注释,就不再合并这个 PR 了。再次感谢贡献!

@Leaderxin Leaderxin closed this Nov 6, 2026
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.

2 participants