Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
8c693312
Kaydet (Commit)
8c693312
authored
Şub 23, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simplify drawing of splitter, add more flat look
Change-Id: Ie5040c2932715b2505635ff3cb909ccfeb4b7fa0
üst
c750e1a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
33 deletions
+11
-33
tabsplit.cxx
sc/source/ui/view/tabsplit.cxx
+11
-33
No files found.
sc/source/ui/view/tabsplit.cxx
Dosyayı görüntüle @
8c693312
...
...
@@ -65,17 +65,10 @@ void ScTabSplitter::Paint( const Rectangle& rRect )
{
case
SC_SPLIT_NONE
:
{
// Draw 3D border
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawLine
(
rRect
.
TopRight
(),
rRect
.
BottomRight
());
DrawLine
(
rRect
.
BottomLeft
(),
rRect
.
BottomRight
());
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetLightColor
());
DrawLine
(
rRect
.
TopLeft
(),
rRect
.
TopRight
());
DrawLine
(
rRect
.
TopLeft
(),
rRect
.
BottomLeft
());
// Fill internal rectangle
SetLineColor
();
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetFaceColor
());
DrawRect
(
Rectangle
(
rRect
.
Left
()
+
1
,
rRect
.
Top
()
+
1
,
rRect
.
Right
()
-
1
,
rRect
.
Bottom
()
-
1
));
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawRect
(
Rectangle
(
rRect
.
Left
(),
rRect
.
Top
(),
rRect
.
Right
(),
rRect
.
Bottom
()));
// Draw handle
SetLineColor
(
Color
(
COL_BLACK
));
SetFillColor
(
Color
(
COL_BLACK
));
...
...
@@ -87,13 +80,9 @@ void ScTabSplitter::Paint( const Rectangle& rRect )
break
;
}
case
SC_SPLIT_NORMAL
:
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetLightColor
());
DrawLine
(
rRect
.
TopLeft
(),
rRect
.
BottomLeft
());
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawLine
(
rRect
.
TopRight
(),
rRect
.
BottomRight
());
SetLineColor
();
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetFaceColor
());
DrawRect
(
Rectangle
(
Point
(
rRect
.
Left
()
+
1
,
rRect
.
Top
()),
Point
(
rRect
.
Right
()
-
1
,
rRect
.
Bottom
())));
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawRect
(
Rectangle
(
rRect
.
Left
(),
rRect
.
Top
(),
rRect
.
Right
(),
rRect
.
Bottom
()));
break
;
case
SC_SPLIT_FIX
:
// Nothing to draw
...
...
@@ -106,18 +95,11 @@ void ScTabSplitter::Paint( const Rectangle& rRect )
{
case
SC_SPLIT_NONE
:
{
// Draw 3D border
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawLine
(
rRect
.
TopRight
(),
rRect
.
BottomRight
());
DrawLine
(
rRect
.
BottomLeft
(),
rRect
.
BottomRight
());
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetLightColor
());
DrawLine
(
rRect
.
TopLeft
(),
rRect
.
TopRight
());
DrawLine
(
rRect
.
TopLeft
(),
rRect
.
BottomLeft
());
// Fill internal rectangle
SetLineColor
();
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetFaceColor
());
DrawRect
(
Rectangle
(
rRect
.
Left
()
+
1
,
rRect
.
Top
()
+
1
,
rRect
.
Right
()
-
1
,
rRect
.
Bottom
()
-
1
));
// Draw handle
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawRect
(
Rectangle
(
rRect
.
Left
(),
rRect
.
Top
(),
rRect
.
Right
(),
rRect
.
Bottom
()));
// Draw handle
SetLineColor
(
Color
(
COL_BLACK
));
SetFillColor
(
Color
(
COL_BLACK
));
const
long
yc
=
rRect
.
Top
()
+
rRect
.
Bottom
();
...
...
@@ -128,13 +110,9 @@ void ScTabSplitter::Paint( const Rectangle& rRect )
break
;
}
case
SC_SPLIT_NORMAL
:
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetLightColor
());
DrawLine
(
rRect
.
TopLeft
(),
rRect
.
TopRight
());
SetLineColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawLine
(
rRect
.
BottomLeft
(),
rRect
.
BottomRight
());
SetLineColor
();
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetFaceColor
());
DrawRect
(
Rectangle
(
Point
(
rRect
.
Left
(),
rRect
.
Top
()
+
1
),
Point
(
rRect
.
Right
(),
rRect
.
Bottom
()
-
1
)));
SetFillColor
(
GetSettings
().
GetStyleSettings
().
GetShadowColor
());
DrawRect
(
Rectangle
(
rRect
.
Left
(),
rRect
.
Top
(),
rRect
.
Right
(),
rRect
.
Bottom
()));
break
;
case
SC_SPLIT_FIX
:
// Nothing to draw
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment