Repository navigation
[6243] Mogan 滚动条背景透明化并悬浮于视图之上 - #4787
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
摘要
TeXmacs/misc/themes/liii.css、TeXmacs/misc/themes/liii-night.css):将QScrollBar:vertical、QScrollBar:horizontal与QAbstractScrollArea::corner(含暗黑主题QWidget#centralWidget作用域)背景改为transparent,将QScrollBar::handle的实心边框改为无边框半透明圆角胶囊(rgba+margin: 3px+border-radius: 4px)。src/Plugins/Qt/QTMScrollView.hpp、src/Plugins/Qt/QTMScrollView.cpp):设置滚动条及其容器透明无系统背景,updateScrollBars()使用完整contentsRect()尺寸计算滚动范围,通过layoutOverlayScrollBars()与事件过滤保持viewport铺满内容区并将滚动条悬浮置顶于边缘之上。src/Plugins/Qt/qml/OutlineSidebar.qml):将scrollbarTrack背景色设为transparent,滑块scrollbarThumb统一使用与主题一致的半透明配色与分级透明度(常态0.25、悬停0.42、拖拽0.58)。tests/Plugins/Qt/qtm_scroll_view_test.cpp):新增QTMScrollView悬浮透明滚动条测试。验证结果
xmake b --yes qtm_scroll_view_test qt_outline_widget_test qml_load_test:编译通过xmake r qtm_scroll_view_test:4 passed, 0 failedxmake r qt_outline_widget_test:24 passed, 0 failedxmake r qml_load_test:40 passed, 0 failed