summaryrefslogtreecommitdiff
path: root/plugingui/powerwidget.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2020-04-25 22:38:03 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2020-04-25 22:38:03 +0200
commit75be125fb0f50a8e4e766ca70f15b5822c0076e2 (patch)
tree8c34578e0931ae050c8d243582de2e738eedde8f /plugingui/powerwidget.cc
parente89e15adf2e0d9a4316ed96dc59cd643c93b4d33 (diff)
WIP: Adjust layout
Diffstat (limited to 'plugingui/powerwidget.cc')
-rw-r--r--plugingui/powerwidget.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugingui/powerwidget.cc b/plugingui/powerwidget.cc
index 560a5d3..e7c8e60 100644
--- a/plugingui/powerwidget.cc
+++ b/plugingui/powerwidget.cc
@@ -64,7 +64,7 @@ void PowerWidget::chk_shelf(bool v)
void PowerWidget::repaintEvent(GUI::RepaintEvent *repaintEvent)
{
GUI::Painter p(*this);
- box.setSize(width() - 59, height());
+ box.setSize(width() - 59 - 64, height());
p.drawImage(0, 0, box);
}
@@ -76,10 +76,10 @@ void PowerWidget::resize(std::size_t width, std::size_t height)
canvas.resize(1, 1);
return;
}
- canvas.resize(width - 14 - 59, height - 14);
+ canvas.resize(width - 14 - 59 - 64, height - 14);
- shelf_label.move(width - 59 + 5, 0);
- shelf_checkbox.move(width - 59 + 5, 16);
+ shelf_label.move(width - 59 + 5 - 32 , 0);
+ shelf_checkbox.move(width - 59 + 5 - 32, 16);
}
PowerWidget::Canvas::Canvas(GUI::Widget* parent,