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
77fd06e1
Kaydet (Commit)
77fd06e1
authored
Eyl 14, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove shadows in tabs to make them look more flat.
Change-Id: I7c125c10538a641ec723d95be987ad77cdebc9ba
üst
f9c77344
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
71 deletions
+2
-71
tabbar.cxx
svtools/source/control/tabbar.cxx
+2
-71
No files found.
svtools/source/control/tabbar.cxx
Dosyayı görüntüle @
77fd06e1
...
...
@@ -1137,48 +1137,6 @@ public:
mrParent
.
DrawPolygon
(
maPoly
);
}
void
drawLeftShadow
()
{
Point
p1
=
maPoly
[
0
],
p2
=
maPoly
[
1
];
p1
.
X
()
++
;
p2
.
X
()
++
;
p2
.
Y
()
--
;
mrParent
.
DrawLine
(
p1
,
p2
);
}
void
drawRightShadow
()
{
Point
p1
=
maPoly
[
2
];
Point
p2
=
maPoly
[
3
];
p1
.
X
()
--
;
p2
.
X
()
--
;
mrParent
.
DrawLine
(
p1
,
p2
);
}
void
drawTopInnerShadow
()
{
Point
p1
=
maPoly
[
0
],
p2
=
maPoly
[
3
];
p1
.
Y
()
++
;
p2
.
Y
()
++
;
mrParent
.
DrawLine
(
p1
,
p2
);
}
void
drawBottomShadow
(
bool
bColored
)
{
Point
p1
=
maPoly
[
1
],
p2
=
maPoly
[
2
];
p1
.
X
()
+=
1
;
p1
.
Y
()
-=
1
;
p2
.
X
()
-=
1
;
p2
.
Y
()
-=
1
;
mrParent
.
DrawLine
(
p1
,
p2
);
if
(
bColored
)
{
p1
+=
Point
(
-
1
,
-
1
);
p2
+=
Point
(
1
,
-
1
);
mrParent
.
DrawLine
(
p1
,
p2
);
}
}
void
drawText
(
const
OUString
&
aText
)
{
Rectangle
aRect
=
maRect
;
...
...
@@ -1197,7 +1155,8 @@ public:
void
drawOverTopBorder
(
bool
b3DTab
)
{
Point
p1
=
maPoly
[
0
],
p2
=
maPoly
[
3
];
Point
p1
=
maPoly
[
0
];
Point
p2
=
maPoly
[
3
];
p1
.
X
()
+=
1
;
p2
.
X
()
-=
1
;
Rectangle
aDelRect
(
p1
,
p2
);
...
...
@@ -1229,34 +1188,6 @@ public:
}
drawOuterFrame
();
// If this is the current tab, draw the left inner shadow the default color,
// otherwise make it the same as the custom background color
Color
aColor
=
mpStyleSettings
->
GetLightColor
();
if
(
mbCustomColored
&&
!
mbSelected
)
aColor
=
maCustomColor
;
mrParent
.
SetLineColor
(
aColor
);
drawLeftShadow
();
if
(
!
mbSelected
)
drawTopInnerShadow
();
mrParent
.
SetLineColor
(
mpStyleSettings
->
GetShadowColor
()
);
drawRightShadow
();
if
(
mbCustomColored
&&
mbSelected
)
{
mrParent
.
SetLineColor
(
maCustomColor
);
drawBottomShadow
(
true
);
}
else
drawBottomShadow
(
false
);
// Draw the outer frame once more. In some environments, the outer frame
// gets overpainted.
mrParent
.
SetLineColor
(
mpStyleSettings
->
GetDarkShadowColor
()
);
mrParent
.
SetFillColor
();
drawOuterFrame
();
}
void
drawPlusImage
()
...
...
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