summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-12-25 16:51:58 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-12-25 16:51:58 +0900
commit2a20bf5105181d51aab40bdd4ce8c09615a0e599 (patch)
treeafc0d5ec44b6619bbebc45151ca673ffc5b26ec8 /svtools
parente3663390d351c3759c22ae5a4fc44fd869c4479f (diff)
fdo#87596 Draw tab fill color when selected on the tab bottom
Change-Id: I02bcdf88063d272cb9eb9e89cbee61d30f4f01d6
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/tabbar.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index a7f8d0a8f0e1..df458450934d 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1168,6 +1168,16 @@ public:
}
}
+ void drawColorLine()
+ {
+ Point p1 = maPoly[1];
+ Point p2 = maPoly[2];
+ p1 += Point(1, 0);
+ p2 += Point(-1, -3);
+
+ mrParent.DrawRect(Rectangle(p1, p2));
+ }
+
void drawTab()
{
mrParent.SetLineColor(mpStyleSettings->GetDarkShadowColor());
@@ -1188,6 +1198,13 @@ public:
}
drawOuterFrame();
+
+ if (mbCustomColored && mbSelected)
+ {
+ mrParent.SetFillColor(maCustomColor);
+ mrParent.SetLineColor(maCustomColor);
+ drawColorLine();
+ }
}
void drawPlusImage()