Kaydet (Commit) 701e21b2 authored tarafından Katarina Behrens's avatar Katarina Behrens Kaydeden (comit) Markus Mohrhard

tdf#91725: Use lighter default colour for minor grid lines

Change-Id: I4be2adac1004ad4ace474c9a271cf8e21986da07
Reviewed-on: https://gerrit.libreoffice.org/16819Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst ebdc15f9
...@@ -56,6 +56,8 @@ namespace LinePropertiesHelper ...@@ -56,6 +56,8 @@ namespace LinePropertiesHelper
::com::sun::star::beans::XPropertySet >& xLineProperties ); ::com::sun::star::beans::XPropertySet >& xLineProperties );
void SetLineInvisible( const ::com::sun::star::uno::Reference< void SetLineInvisible( const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet >& xLineProperties ); ::com::sun::star::beans::XPropertySet >& xLineProperties );
void SetLineColor( const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet >& xGridProperties, sal_Int32 nColor );
} }
} // namespace chart } // namespace chart
......
...@@ -436,6 +436,7 @@ void Axis::AllocateSubGrids() ...@@ -436,6 +436,7 @@ void Axis::AllocateSubGrids()
{ {
m_aSubGridProperties[ i ] = new GridProperties(); m_aSubGridProperties[ i ] = new GridProperties();
LinePropertiesHelper::SetLineInvisible( m_aSubGridProperties[ i ] ); LinePropertiesHelper::SetLineInvisible( m_aSubGridProperties[ i ] );
LinePropertiesHelper::SetLineColor( m_aSubGridProperties[ i ], static_cast<sal_Int32>(0xdddddd) ); //gray2
aNewBroadcasters.push_back( m_aSubGridProperties[ i ] ); aNewBroadcasters.push_back( m_aSubGridProperties[ i ] );
} }
} }
......
...@@ -168,6 +168,23 @@ void LinePropertiesHelper::SetLineInvisible( const ::com::sun::star::uno::Refere ...@@ -168,6 +168,23 @@ void LinePropertiesHelper::SetLineInvisible( const ::com::sun::star::uno::Refere
} }
} }
void LinePropertiesHelper::SetLineColor( const ::com::sun::star::uno::Reference<
::com::sun::star::beans::XPropertySet >& xLineProperties, sal_Int32 nColor )
{
try
{
if( xLineProperties.is() )
{
xLineProperties->setPropertyValue( "LineColor", uno::makeAny( nColor ) );
}
}
catch( const uno::Exception & ex )
{
ASSERT_EXCEPTION( ex );
}
}
} // namespace chart } // namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment