mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
LibGUI: Don't draw Scrollbar button triangles if they'd be off-center
This commit is contained in:
parent
cbd9cf93be
commit
b50bce3cb9
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ void Scrollbar::paint_event(PaintEvent& event)
|
|||
Gfx::StylePainter::paint_button(painter, decrement_button_rect(), palette(), Gfx::ButtonStyle::ThickCap, decrement_pressed, hovered_component_for_painting == Component::DecrementButton);
|
||||
Gfx::StylePainter::paint_button(painter, increment_button_rect(), palette(), Gfx::ButtonStyle::ThickCap, increment_pressed, hovered_component_for_painting == Component::IncrementButton);
|
||||
|
||||
if (length(orientation()) > default_button_size()) {
|
||||
if (length(orientation()) >= default_button_size() * 2) {
|
||||
auto decrement_location = decrement_button_rect().location().translated(3, 3);
|
||||
if (decrement_pressed)
|
||||
decrement_location.translate_by(1, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue