summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--basctl/source/basicide/baside2.cxx9
-rw-r--r--vcl/source/window/split.cxx56
2 files changed, 30 insertions, 35 deletions
diff --git a/basctl/source/basicide/baside2.cxx b/basctl/source/basicide/baside2.cxx
index fa2b0505fdea..3d2bfd842455 100644
--- a/basctl/source/basicide/baside2.cxx
+++ b/basctl/source/basicide/baside2.cxx
@@ -1397,6 +1397,15 @@ ModulWindowLayout::ModulWindowLayout( Window* pParent ) :
{
SetBackground(GetSettings().GetStyleSettings().GetWindowColor());
+ Color splitterColor(GetSettings().GetStyleSettings().GetShadowColor());
+
+ aLeftSplit.SetLineColor(splitterColor);
+ aLeftSplit.SetFillColor(splitterColor);
+ aBottomSplit.SetLineColor(splitterColor);
+ aBottomSplit.SetFillColor(splitterColor);
+ aVertSplit.SetLineColor(splitterColor);
+ aVertSplit.SetFillColor(splitterColor);
+
aLeftSplit.Show();
aBottomSplit.Show();
aVertSplit.Show();
diff --git a/vcl/source/window/split.cxx b/vcl/source/window/split.cxx
index ac2e9f7cb41e..d958c298263e 100644
--- a/vcl/source/window/split.cxx
+++ b/vcl/source/window/split.cxx
@@ -158,6 +158,9 @@ Splitter::Splitter( Window* pParent, WinBits nStyle ) :
{
ImplInitSplitterData();
ImplInit( pParent, nStyle );
+
+ SetLineColor();
+ SetFillColor();
}
// -----------------------------------------------------------------------
@@ -171,6 +174,9 @@ Splitter::Splitter( Window* pParent, const ResId& rResId ) :
ImplInit( pParent, nStyle );
ImplLoadRes( rResId );
+ SetLineColor();
+ SetFillColor();
+
if ( !(nStyle & WB_HIDE) )
Show();
}
@@ -748,46 +754,26 @@ void Splitter::DataChanged( const DataChangedEvent& rDCEvt )
void Splitter::Paint( const Rectangle& rPaintRect )
{
- if( HasFocus() || mbKbdSplitting )
- {
- Color oldFillCol = GetFillColor();
- Color oldLineCol = GetLineColor();
-
- SetLineColor();
- SetFillColor( GetSettings().GetStyleSettings().GetFaceColor() );
- DrawRect( rPaintRect );
-
- Color aSelectionBorderCol( GetSettings().GetStyleSettings().GetActiveColor() );
- SetFillColor( aSelectionBorderCol );
- SetLineColor();
-
- Polygon aPoly( rPaintRect );
- PolyPolygon aPolyPoly( aPoly );
- DrawTransparent( aPolyPoly, 85 );
+ DrawRect( rPaintRect );
- SetLineColor( aSelectionBorderCol );
- SetFillColor();
+ Polygon aPoly( rPaintRect );
+ PolyPolygon aPolyPoly( aPoly );
+ DrawTransparent( aPolyPoly, 85 );
- if( mbKbdSplitting )
- {
- LineInfo aInfo( LINE_DASH );
- //aInfo.SetDashLen( 2 );
- //aInfo.SetDashCount( 1 );
- aInfo.SetDistance( 1 );
- aInfo.SetDotLen( 2 );
- aInfo.SetDotCount( 1 );
-
- DrawPolyLine( aPoly, aInfo );
- }
- else
- DrawRect( rPaintRect );
-
- SetFillColor( oldFillCol);
- SetLineColor( oldLineCol);
+ if( mbKbdSplitting )
+ {
+ LineInfo aInfo( LINE_DASH );
+ //aInfo.SetDashLen( 2 );
+ //aInfo.SetDashCount( 1 );
+ aInfo.SetDistance( 1 );
+ aInfo.SetDotLen( 2 );
+ aInfo.SetDotCount( 3 );
+
+ DrawPolyLine( aPoly, aInfo );
}
else
{
- Window::Paint( rPaintRect );
+ DrawRect( rPaintRect );
}
}