Skip to content

Commit 1eba035

Browse files
muyrloonghao
authored andcommitted
fix: set min-height qss for vertical handle(when to show thousands data, handle too small)
1 parent 1e4c6e2 commit 1eba035

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dayu_widgets/static/main.qss

+1
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@ QScrollBar:vertical {
10541054

10551055
QScrollBar::handle:vertical {
10561056
background-color: @background_selected_color;
1057+
min-height: @scroll_bar_min_length@unit;
10571058
}
10581059

10591060
QScrollBar::add-line:vertical {

dayu_widgets/theme.py

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def get_theme_size():
9595
"indicator_padding": int(4 * scale_factor_x),
9696
"indicator_size": int(8 * scale_factor_x),
9797
"scroll_bar_size": int(12 * scale_factor_x),
98+
"scroll_bar_min_length": int(20 * scale_factor_x),
9899
"scroll_bar_margin": int(12 * scale_factor_x * 2) + 1,
99100
"scroll_bar_radius": int(12 * scale_factor_x / 2.0),
100101
}

0 commit comments

Comments
 (0)