Fixed hotel selection in night mode

This commit is contained in:
r.kuznetsov 2016-12-19 11:13:38 +03:00 committed by Vladimir Byko-Ianko
parent 9576fea39c
commit 4b3e2d1e9a

View file

@ -11,6 +11,7 @@
#include "indexer/drawing_rules.hpp"
#include "indexer/drules_include.hpp"
#include "indexer/map_style_reader.hpp"
#include "indexer/osm_editor.hpp"
#include "geometry/clipping.hpp"
@ -365,7 +366,9 @@ void ApplyPointFeature::ProcessRule(Stylist::TRuleWrapper const & rule)
{
params.m_primaryOptional = false;
params.m_primaryTextFont.m_size *= 1.2;
params.m_primaryTextFont.m_outlineColor = dp::Color(255, 255, 255, 153);
auto const style = GetStyleReader().GetCurrentStyle();
params.m_primaryTextFont.m_outlineColor = (style == MapStyle::MapStyleDark) ?
dp::Color(0, 0, 0, 153) : dp::Color(255, 255, 255, 153);
params.m_secondaryTextFont = params.m_primaryTextFont;
params.m_secondaryText = ExtractHotelInfo();
params.m_secondaryOptional = false;