summaryrefslogtreecommitdiffstats
path: root/profile-widget/diveeventitem.cpp
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-11-13 20:04:59 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-13 20:46:00 -0800
commit0d023068b340bea8db421523156b5b460eaea41d (patch)
tree370808f695df3158dc82a2c333c11399affd3e3e /profile-widget/diveeventitem.cpp
parent38b1b7d951d3586f16761964aee6f2876e80b117 (diff)
downloadsubsurface-0d023068b340bea8db421523156b5b460eaea41d.tar.gz
mobile: icon size in profile
Size the event item icons in the profile a little bigger. Obviously, how big is big enhough is upto personal taste, but on Github a screendump is added to show the new size. Fixes: #310 Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'profile-widget/diveeventitem.cpp')
-rw-r--r--profile-widget/diveeventitem.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/profile-widget/diveeventitem.cpp b/profile-widget/diveeventitem.cpp
index b939c4ff8..bb9350a2f 100644
--- a/profile-widget/diveeventitem.cpp
+++ b/profile-widget/diveeventitem.cpp
@@ -71,7 +71,9 @@ void DiveEventItem::setupPixmap()
// on iOS devices we need to adjust for Device Pixel Ratio
int sz_bigger = metrics.sz_med * metrics.dpr;
#else
- int sz_bigger = metrics.sz_med;
+ // SUBSURFACE_MOBILE, seems a little big from the code,
+ // but looks fine on device
+ int sz_bigger = metrics.sz_big + metrics.sz_med;
#endif
#endif
int sz_pix = sz_bigger/2; // ex 20px