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
f485b288
Kaydet (Commit)
f485b288
authored
Tem 22, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: native focus rects are fine for flat buttons
Change-Id: I6a70696cd119e681b4850c624c9e4ff28312c152
üst
01854d2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
svdata.hxx
vcl/inc/svdata.hxx
+2
-1
button.cxx
vcl/source/control/button.cxx
+5
-2
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+1
-0
No files found.
vcl/inc/svdata.hxx
Dosyayı görüntüle @
f485b288
...
...
@@ -266,7 +266,8 @@ struct ImplSVNWFData
// toolbox dropdown buttons
bool
mbFlatMenu
:
1
;
// no popup 3D border
bool
mbOpenMenuOnF10
:
1
;
// on gnome the first menu opens on F10
bool
mbNoFocusRects
:
1
;
// on Aqua focus rects are not used
bool
mbNoFocusRects
:
1
;
// on Aqua/Gtk3 use native focus rendering, except for flat butttons
bool
mbNoFocusRectsForFlatButtons
:
1
;
// on Gtk3 native focusing is also preferred for flat buttons
bool
mbCenteredTabs
:
1
;
// on Aqua, tabs are centered
bool
mbNoActiveTabTextRaise
:
1
;
// on Aqua the text for the selected tab
// should not "jump up" a pixel
...
...
vcl/source/control/button.cxx
Dosyayı görüntüle @
f485b288
...
...
@@ -700,8 +700,11 @@ void PushButton::ImplInitSettings( bool bFont,
EnableChildTransparentMode
(
true
);
SetParentClipMode
(
ParentClipMode
::
NoClip
);
SetPaintTransparent
(
true
);
mpWindowImpl
->
mbUseNativeFocus
=
(
GetStyle
()
&
WB_FLATBUTTON
)
==
0
&&
ImplGetSVData
()
->
maNWFData
.
mbNoFocusRects
;
if
((
GetStyle
()
&
WB_FLATBUTTON
)
==
0
)
mpWindowImpl
->
mbUseNativeFocus
=
ImplGetSVData
()
->
maNWFData
.
mbNoFocusRects
;
else
mpWindowImpl
->
mbUseNativeFocus
=
ImplGetSVData
()
->
maNWFData
.
mbNoFocusRectsForFlatButtons
;
}
else
{
...
...
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
f485b288
...
...
@@ -1935,6 +1935,7 @@ void GtkData::initNWF()
pSVData
->
maNWFData
.
mbCanDrawWidgetAnySize
=
true
;
pSVData
->
maNWFData
.
mbDDListBoxNoTextArea
=
true
;
pSVData
->
maNWFData
.
mbNoFocusRects
=
true
;
pSVData
->
maNWFData
.
mbNoFocusRectsForFlatButtons
=
true
;
pSVData
->
maNWFData
.
mbAutoAccel
=
true
;
pSVData
->
maNWFData
.
mbEnableAccel
=
true
;
}
...
...
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