From 0c7100002f558fa591bab89bdd26bfbb4e4f51a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 13 Apr 2017 18:03:27 +0200 Subject: [PATCH] [apps/probability] Improve proba cells Change-Id: I85a7077eb2b996316ed6dff8af12fd6cfb2876a3 --- apps/probability/cell.cpp | 2 +- apps/probability/cell.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/probability/cell.cpp b/apps/probability/cell.cpp index 7d9f3205e..ad5c35948 100644 --- a/apps/probability/cell.cpp +++ b/apps/probability/cell.cpp @@ -29,7 +29,7 @@ void Cell::layoutSubviews() { KDCoordinate height = bounds().height(); m_labelView.setFrame(KDRect(1+k_iconWidth+2*k_iconMargin, 1, width-2-k_iconWidth-2*k_iconMargin - k_chevronWidth, height-2)); m_iconView.setFrame(KDRect(1+k_iconMargin, (height - k_iconHeight)/2, k_iconWidth, k_iconHeight)); - m_chevronView.setFrame(KDRect(width-1-k_chevronWidth, 1, k_chevronWidth, height - 2)); + m_chevronView.setFrame(KDRect(width-1-k_chevronWidth-k_chevronMargin, 1, k_chevronWidth, height - 2)); } void Cell::reloadCell() { diff --git a/apps/probability/cell.h b/apps/probability/cell.h index e21d3e6ae..ef692b573 100644 --- a/apps/probability/cell.h +++ b/apps/probability/cell.h @@ -16,7 +16,8 @@ private: constexpr static KDCoordinate k_iconWidth = 35; constexpr static KDCoordinate k_iconHeight = 19; constexpr static KDCoordinate k_iconMargin = 10; - constexpr static KDCoordinate k_chevronWidth = 20+8; + constexpr static KDCoordinate k_chevronWidth = 8; + constexpr static KDCoordinate k_chevronMargin = 10; int numberOfSubviews() const override; View * subviewAtIndex(int index) override; void layoutSubviews() override;