diff options
author | Sami Merila <sami.merila@nokia.com> | 2010-06-11 12:21:14 (GMT) |
---|---|---|
committer | Sami Merila <sami.merila@nokia.com> | 2010-06-11 12:21:14 (GMT) |
commit | f96d6a5d7d422847d302f4ed1180b66436683191 (patch) | |
tree | 10520bcc53a8680346cebb7ef6652c633867bbcc /src/gui/styles/qs60style_s60.cpp | |
parent | f3d0cf049cc5e1eea57146e11ac5a272a774dad8 (diff) | |
download | Qt-f96d6a5d7d422847d302f4ed1180b66436683191.zip Qt-f96d6a5d7d422847d302f4ed1180b66436683191.tar.gz Qt-f96d6a5d7d422847d302f4ed1180b66436683191.tar.bz2 |
Stylus menu for Share (QT app) is different from native S60 apps
First part of corrections to make menu items more native like.
This fixes:
- In Sym^3 "separator items" are drawn automatically between items,
using a simple line graphic with theme color and alpha values
- highlight for menu item is positioned better
- menu items themselves are better positioned
- the corners of highlight are now more rounded for Sym^3 devices
Task-number: QT-3295
Reviewed-by: Alessandro Portale
Diffstat (limited to 'src/gui/styles/qs60style_s60.cpp')
-rw-r--r-- | src/gui/styles/qs60style_s60.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp index e5c74ad..4bb2ea8 100644 --- a/src/gui/styles/qs60style_s60.cpp +++ b/src/gui/styles/qs60style_s60.cpp @@ -1023,8 +1023,14 @@ TRect QS60StyleModeSpecifics::innerRectFromElement(QS60StylePrivate::SkinFrameEl heightShrink = heightShrink >> 1; break; case QS60StylePrivate::SF_ListHighlight: - widthShrink = widthShrink - 2; - heightShrink = heightShrink - 2; + //In Sym^3 devices highlights are less blocky + if (QSysInfo::s60Version() > QSysInfo::SV_S60_5_0) { + widthShrink += 2; + heightShrink += 2; + } else { + widthShrink -= 2; + heightShrink -= 2; + } break; case QS60StylePrivate::SF_PopupBackground: widthShrink = widthShrink + 5; |