Skip to content

Commit

Permalink
fix: set min-height qss for vertical handle(when to show thousands da…
Browse files Browse the repository at this point in the history
…ta, handle too small)
  • Loading branch information
muyr authored and loonghao committed Oct 28, 2024
1 parent 1e4c6e2 commit 1eba035
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dayu_widgets/static/main.qss
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@ QScrollBar:vertical {

QScrollBar::handle:vertical {
background-color: @background_selected_color;
min-height: @scroll_bar_min_length@unit;
}

QScrollBar::add-line:vertical {
Expand Down
1 change: 1 addition & 0 deletions dayu_widgets/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def get_theme_size():
"indicator_padding": int(4 * scale_factor_x),
"indicator_size": int(8 * scale_factor_x),
"scroll_bar_size": int(12 * scale_factor_x),
"scroll_bar_min_length": int(20 * scale_factor_x),
"scroll_bar_margin": int(12 * scale_factor_x * 2) + 1,
"scroll_bar_radius": int(12 * scale_factor_x / 2.0),
}
Expand Down

0 comments on commit 1eba035

Please sign in to comment.