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
2f874b85
Kaydet (Commit)
2f874b85
authored
May 11, 2012
tarafından
Cosimo Cecchi
Kaydeden (comit)
Michael Meeks
Tem 27, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: fix tooltip colors
Change-Id: Iacd8578ee71c5e0403c3398cb1f8d427be27d603
üst
6fbbea7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
20 deletions
+19
-20
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+19
-20
No files found.
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
2f874b85
...
...
@@ -1153,18 +1153,6 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet
.
SetButtonRolloverTextColor
(
aTextColor
);
aStyleSet
.
SetFieldRolloverTextColor
(
aTextColor
);
// FIXME: each gtk3 theme needs to define a set of well-known
// color names for LibreOffice eg.
// @define-color tooltip_bg_color #343434;
GdkRGBA
tooltip_bg_color
;
if
(
gtk_style_context_lookup_color
(
pStyle
,
"tooltip_bg_color"
,
&
tooltip_bg_color
)
)
{
aStyleSet
.
SetHelpTextColor
(
getColor
(
tooltip_bg_color
)
);
fprintf
(
stderr
,
"Set tooltip bg color %g %g %g %g
\n
"
,
tooltip_bg_color
.
red
,
tooltip_bg_color
.
green
,
tooltip_bg_color
.
blue
,
tooltip_bg_color
.
alpha
);
}
// background colors
GdkRGBA
background_color
;
gtk_style_context_get_background_color
(
pStyle
,
GTK_STATE_FLAG_NORMAL
,
&
background_color
);
...
...
@@ -1176,6 +1164,25 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet
.
SetWorkspaceColor
(
aBackColor
);
aStyleSet
.
SetCheckedColorSpecialCase
(
);
// highlighting colors
gtk_style_context_get_background_color
(
pStyle
,
GTK_STATE_FLAG_SELECTED
,
&
text_color
);
::
Color
aHighlightColor
=
getColor
(
text_color
);
gtk_style_context_get_color
(
pStyle
,
GTK_STATE_FLAG_SELECTED
,
&
text_color
);
::
Color
aHighlightTextColor
=
getColor
(
text_color
);
aStyleSet
.
SetHighlightColor
(
aHighlightColor
);
aStyleSet
.
SetHighlightTextColor
(
aHighlightTextColor
);
// tooltip colors
GdkRGBA
tooltip_bg_color
,
tooltip_fg_color
;
gtk_style_context_save
(
pStyle
);
gtk_style_context_add_class
(
pStyle
,
GTK_STYLE_CLASS_TOOLTIP
);
gtk_style_context_get_color
(
pStyle
,
GTK_STATE_FLAG_NORMAL
,
&
tooltip_fg_color
);
gtk_style_context_get_background_color
(
pStyle
,
GTK_STATE_FLAG_NORMAL
,
&
tooltip_bg_color
);
gtk_style_context_restore
(
pStyle
);
aStyleSet
.
SetHelpColor
(
getColor
(
tooltip_bg_color
));
aStyleSet
.
SetHelpTextColor
(
getColor
(
tooltip_fg_color
));
{
// FIXME: turn me into a helper function ...
// construct style context for text view
GtkStyleContext
*
pCStyle
=
gtk_style_context_new
();
...
...
@@ -1195,14 +1202,6 @@ void GtkSalGraphics::updateSettings( AllSettings& rSettings )
aStyleSet
.
SetWindowColor
(
aBackFieldColor
);
}
// highlighting colors
gtk_style_context_get_background_color
(
pStyle
,
GTK_STATE_FLAG_SELECTED
,
&
text_color
);
::
Color
aHighlightColor
=
getColor
(
text_color
);
gtk_style_context_get_color
(
pStyle
,
GTK_STATE_FLAG_SELECTED
,
&
text_color
);
::
Color
aHighlightTextColor
=
getColor
(
text_color
);
aStyleSet
.
SetHighlightColor
(
aHighlightColor
);
aStyleSet
.
SetHighlightTextColor
(
aHighlightTextColor
);
// menu disabled entries handling
aStyleSet
.
SetSkipDisabledInMenus
(
sal_True
);
aStyleSet
.
SetAcceleratorsInContextMenus
(
sal_False
);
...
...
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