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
2cc05f7b
Kaydet (Commit)
2cc05f7b
authored
Eki 12, 2012
tarafından
Cédric Bosdonnat
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
InfoBars: Hight Contrast painting
Change-Id: I3ba70be099bc4364d8f6d2d0700add83353f2900
üst
f7b6ff63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
infobar.cxx
sfx2/source/dialog/infobar.cxx
+19
-0
No files found.
sfx2/source/dialog/infobar.cxx
Dosyayı görüntüle @
2cc05f7b
...
...
@@ -18,6 +18,7 @@
#include <sfx2/objsh.hxx>
#include <sfx2/sfx.hrc>
#include <sfx2/viewsh.hxx>
#include <vcl/svapp.hxx>
using
namespace
std
;
...
...
@@ -49,6 +50,14 @@ namespace
basegfx
::
BColor
aLightColor
(
1.0
,
1.0
,
191.0
/
255.0
);
basegfx
::
BColor
aDarkColor
(
217.0
/
255.0
,
217.0
/
255.0
,
78.0
/
255.0
);
const
StyleSettings
&
rSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
if
(
rSettings
.
GetHighContrastMode
()
)
{
aLightColor
=
rSettings
.
GetLightColor
(
).
getBColor
(
);
aDarkColor
=
rSettings
.
GetDialogTextColor
(
).
getBColor
(
);
}
// Light background
basegfx
::
B2DPolygon
aPolygon
;
aPolygon
.
append
(
basegfx
::
B2DPoint
(
aRect
.
Left
(
),
aRect
.
Top
(
)
)
);
...
...
@@ -149,6 +158,16 @@ void SfxInfoBarWindow::Paint( const Rectangle& rPaintRect )
basegfx
::
BColor
aLightColor
(
1.0
,
1.0
,
191.0
/
255.0
);
basegfx
::
BColor
aDarkColor
(
217.0
/
255.0
,
217.0
/
255.0
,
78.0
/
255.0
);
const
StyleSettings
&
rSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
if
(
rSettings
.
GetHighContrastMode
()
)
{
aLightColor
=
rSettings
.
GetLightColor
(
).
getBColor
(
);
aDarkColor
=
rSettings
.
GetDialogTextColor
(
).
getBColor
(
);
}
// Update the label background color
m_pMessage
->
SetBackground
(
Wallpaper
(
Color
(
aLightColor
)
)
);
// Light background
basegfx
::
B2DPolygon
aPolygon
;
aPolygon
.
append
(
basegfx
::
B2DPoint
(
aRect
.
Left
(
),
aRect
.
Top
(
)
)
);
...
...
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