wxWidgets/include/wx
Vadim Zeitlin 9a9c845289 Add wxSystemAppearance to check for dark mode under macOS
Provide a way to retrieve the name of the current system appearance
(mostly for diagnostic purposes) and check if it uses predominantly dark
colours.

Currently this class has a non-trivial (but still very simple)
implementation under macOS only and simply checks whether the default
text colour is brighter than the default background colour under the
other platforms, but other platform-specific implementations could be
added later.

Also update the drawing sample "system colours" page to show the system
appearance as well.
2019-04-21 02:11:07 +02:00
..
android Add wxUSE_WINSOCK2 wxMSW option to include winsock2.h 2019-01-28 00:34:34 +01:00
aui Avoid 31-bit left shift of 32-bit signed values 2019-04-05 09:48:35 -07:00
dfb Remove redundant wxDFBDCImpl::m_mm_to_pix_[xy] members 2018-12-06 03:30:55 +01:00
generic More use of wxOVERRIDE 2019-04-05 11:08:53 -07:00
gtk Fix drag move of wxMiniFrame under Wayland 2019-03-26 10:04:35 -07:00
gtk1 Fix wxGTK1 build after wxFont API changes 2018-09-17 15:24:42 +02:00
html Use ctor-initializer rather than assignment for non-POD class members 2019-02-25 10:23:35 -08:00
meta
motif Add missing wxFont constructor to wxMotif 2018-09-19 22:02:47 +02:00
msw Merge branch 'msw-tbar-resize' 2019-03-29 19:16:40 +01:00
osx Use __builtin_available() when available in wxMac builds 2019-04-18 00:02:34 +02:00
persist Introduce platform-dependent wxTLWGeometry class 2018-04-29 19:51:10 +02:00
private Fix handling display disconnection under wxMSW 2019-03-29 23:19:59 +01:00
propgrid Use ctor-initializer rather than assignment for non-POD class members 2019-04-05 10:21:04 -07:00
protocol
qt More use of wxOVERRIDE 2019-04-05 11:08:53 -07:00
ribbon Remove unnecessary copy ctor/operator= definitions 2019-02-17 23:09:49 -08:00
richtext Pass parameters by const reference rather than by value 2019-04-05 09:18:07 -07:00
stc Regenerate STC files after recent changes 2019-03-20 00:15:44 -05:00
univ Add wxUSE_WINSOCK2 wxMSW option to include winsock2.h 2019-01-28 00:34:34 +01:00
unix Build fix for wxUSE_CONSOLE_EVENTLOOP==0 under Unix 2018-10-10 19:07:28 +02:00
x11 Deprecate Set{Height,Width,Depth} for other platforms as well 2018-09-23 20:02:21 -07:00
xml wx/xml: Implement line-ending modes for xml saves 2017-05-30 14:31:59 +02:00
xrc Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
aboutdlg.h
accel.h Remove unnecessary copy ctor/operator= definitions 2019-02-17 23:09:49 -08:00
access.h
activityindicator.h
addremovectrl.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
affinematrix2d.h
affinematrix2dbase.h
afterstd.h
anidecod.h
animate.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
animdecod.h
any.h Use ctor-initializer rather than assignment for non-POD class members 2019-02-25 10:23:35 -08:00
anybutton.h Stop using wxBU_AUTODRAW in wxWidgets code 2018-07-21 14:42:06 +02:00
anystr.h
app.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
appprogress.h
apptrait.h Fix warning with missing override 2018-05-18 18:49:00 -06:00
archive.h
arrimpl.cpp Replace object array macros with template class too 2018-06-03 17:12:12 +02:00
arrstr.h Use const for constant local variables in wxWidgets headers 2018-07-21 16:16:32 +02:00
artprov.h
atomic.h
bannerwindow.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
base64.h
beforestd.h
bitmap.h Fixes and Cleanup 2018-09-24 00:11:31 +02:00
bmpbuttn.h Use wxString() instead of "" for empty strings 2018-04-17 22:32:25 +02:00
bmpcbox.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
bookctrl.h Fix adding pages without associated window to wxTreebook 2018-09-18 00:33:59 +02:00
brush.h
buffer.h Make wx/buffer.h header self-contained 2017-10-28 15:07:35 +02:00
build.h Ignore all changes to g++ ABI version since 1002 2018-07-09 00:40:55 +02:00
busyinfo.h
button.h
calctrl.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
caret.h
catch_cppunit.h Improve output of test failures for unprintable characters 2017-12-06 03:23:26 +01:00
chartype.h Extract common type definitions from wx/defs.h to wx/types.h 2018-01-07 22:43:24 +01:00
checkbox.h
checkeddelete.h
checklst.h
chkconf.h Add message "wxStyledTextCtrl requires wxUSE_SCROLLBAR" 2018-10-21 22:01:49 -04:00
choicdlg.h
choice.h
choicebk.h Update wxBookCtrlBase::m_selection outside UpdateSelectedPage() 2018-03-31 01:45:05 +02:00
clipbrd.h
clntdata.h Use const for constant local variables in wxWidgets headers 2018-07-21 16:16:32 +02:00
clrpicker.h Use ctor-initializer rather than assignment for non-POD class members 2019-02-25 10:23:35 -08:00
cmdargs.h Don't rely on argv being NULL-terminated under MSW 2017-04-16 17:50:22 +02:00
cmdline.h Allow hiding command line arguments from Usage() 2017-02-20 17:53:04 +01:00
cmdproc.h
cmndata.h
collheaderctrl.h
collpane.h Propagate InformFirstDirection() to wxCollapsiblePane pane 2018-10-21 16:45:24 +02:00
colordlg.h
colour.h Add wxColour::GetLuminance() 2019-04-21 02:09:42 +02:00
colourdata.h
combo.h Don't re-enter wxComboCtrlBase::HidePopup 2018-11-14 21:30:35 +01:00
combobox.h
commandlinkbutton.h
compiler.h
compositewin.h Bind focus events to direct children only in wxCompositeWindow 2018-07-25 14:11:17 +02:00
confbase.h
config.h
containr.h Fix bug with wxRadioButton state changing unexpectedly in wxMSW 2019-03-18 18:29:19 +01:00
control.h
convauto.h
cpp.h Use HTTPS with Trac links. 2017-07-04 13:15:14 -06:00
crt.h
cshelp.h Stop using wxBU_AUTODRAW in wxWidgets code 2018-07-21 14:42:06 +02:00
ctrlsub.h Don't over promise in wxItemContainer documentation 2017-01-14 00:25:35 +01:00
cursor.h
custombgwin.h
dataobj.h Merge branch 'qt-dnd' 2019-02-02 15:54:21 +01:00
dataview.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
datectrl.h
dateevt.h
datetime.h Use ctor-initializer rather than assignment for non-POD class members 2019-02-25 10:23:35 -08:00
datetimectrl.h
datstrm.h
dc.h Add wxDCTextBgColourChanger and wxDCTextBgModeChanger helpers 2019-04-18 16:34:38 +02:00
dcbuffer.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
dcclient.h
dcgraph.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
dcmemory.h
dcmirror.h
dcprint.h
dcps.h
dcscreen.h
dcsvg.h Fix build with wxUSE_PALETTE==0 2018-10-09 22:24:58 -07:00
dde.h
debug.h
debugrpt.h Show correct save path when using compressed debug report 2018-05-02 15:36:11 +02:00
defs.h Get rid of wxRA_LEFTTORIGHT and wxRA_TOPTOBOTTOM styles 2019-01-27 15:26:16 +01:00
dialog.h
dialup.h
dir.h Declare wxInvalidSize also in wx/dir.h 2017-11-21 13:49:21 +01:00
dirctrl.h
dirdlg.h
display.h Invalidate wxDisplay cache under MSW when the displays change 2019-01-04 14:09:56 +01:00
dlimpexp.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
dlist.h
dnd.h
docmdi.h
docview.h Use Bind() instead of Connect() in wxWidgets code 2018-05-30 13:06:20 +02:00
dragimag.h
dvrenderers.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
dynarray.h Don't export sorted dynamic arrays from the shared library 2018-11-10 12:17:53 +01:00
dynlib.h
dynload.h
editlbox.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
effects.h
encconv.h
encinfo.h Improved description of charset values under MSW. 2017-02-23 19:20:20 +02:00
event.h macOS expose scroll invertion in event 2019-03-12 12:22:41 +01:00
eventfilter.h
evtloop.h removed leading spaces of a code line 2018-08-03 02:33:06 +03:00
evtloopsrc.h
except.h
fdrepdlg.h
features.h
ffile.h Don't crash in wxFFile::Eof() and Error() if file is closed 2017-04-01 18:43:13 +02:00
file.h Use const for constant local variables in wxWidgets headers 2018-07-21 16:16:32 +02:00
fileconf.h
filectrl.h Use wx prefix for global names 2017-10-01 10:03:48 -07:00
filedlg.h
filefn.h Remove obsolete wxCHECK_W32API_VERSION() checks 2017-09-04 22:38:23 +02:00
filehistory.h
filename.h
filepicker.h Use Bind() instead of Connect() in wxWidgets code 2018-05-30 13:06:20 +02:00
filesys.h Use ctor-initializer rather than assignment for non-POD class members 2019-02-25 10:23:35 -08:00
flags.h
fmappriv.h
font.h Suppress gcc -Wfloat-conversion warning in wxFontInfo ctor 2018-09-18 15:57:43 +02:00
fontdata.h
fontdlg.h
fontenc.h
fontenum.h Add wxFontEnumerator::InvalidateCache() 2017-11-13 22:29:29 +01:00
fontmap.h
fontpicker.h Add wxFontPickerCtrl::SetMinPointSize() 2017-10-21 22:10:35 +02:00
fontutil.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
frame.h
fs_arc.h
fs_filter.h
fs_inet.h
fs_mem.h
fs_zip.h
fswatcher.h Fix misspellings in comments and documentation 2018-07-31 13:20:17 +02:00
gauge.h
gbsizer.h Replace wxSizer::RecalcSizes() with RepositionChildren() 2018-12-20 23:36:51 +01:00
gdicmn.h Add wxDisplay::GetPPI() to use instead of wxGetDisplayPPI() 2018-10-08 13:04:38 +02:00
gdiobj.h
geometry.h switching from comma to semicolon, possible error warning 2017-06-15 17:48:23 +02:00
gifdecod.h
glcanvas.h Improve new wxGLCanvas compatibility with old hardware and code 2017-01-16 03:25:49 +01:00
graphics.h Add wxGraphicsRenderer::CreateContextFromUnknownDC() 2019-02-02 21:22:19 +01:00
grid.h
hash.h Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
hashmap.h Avoid gcc8 -Wcast-function-type in hash map macros in Win64 build 2018-06-03 22:47:04 +02:00
hashset.h Apply g++ 4.7 workaround in hash set macros to this compiler only 2019-01-04 23:51:31 +01:00
headercol.h
headerctrl.h Update column width in wxHeaderCtrlSimple while resizing the column 2019-01-20 13:22:50 +01:00
help.h
helpbase.h
helphtml.h
helpwin.h
htmllbox.h
hyperlink.h Return true from wxHyperlinkCtrl::MSWOnNotify() 2018-11-05 19:35:44 +01:00
icon.h forgotten commit of header change for generic icon 2018-09-24 00:11:31 +02:00
iconbndl.h Update comment and change log after MSW wxIconBundle improvements 2017-05-20 17:01:59 +02:00
iconloc.h
imagbmp.h
image.h
imaggif.h Add wxIMAGE_OPTION_GIF_TRANSPARENCY for GIF image loading 2018-02-16 16:28:33 +01:00
imagiff.h
imagjpeg.h
imaglist.h Fold wxOSX-specific wxImageList into generic version 2018-10-30 16:28:07 +01:00
imagpcx.h
imagpng.h
imagpnm.h
imagtga.h
imagtiff.h
imagxpm.h
infobar.h
init.h Use Unicode command line when not using wmain() under Windows 2017-03-11 03:41:23 +01:00
intl.h Refactor wxLocale initialization code 2017-07-16 15:03:22 +02:00
iosfwrap.h
ioswrap.h
ipc.h
ipcbase.h
itemattr.h
itemid.h
joystick.h
kbdstate.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
language.h
layout.h
laywin.h
link.h
list.h Remove unimplemented wxListBase ctor declaration 2019-02-17 18:26:17 -08:00
listbase.h Remove outdated comment about wxListCtrl checkboxes support 2017-06-20 15:25:28 +02:00
listbook.h
listbox.h Improve wxListBox::GetCountPerPage() in wxGTK and wxOSX 2017-10-21 22:10:35 +02:00
listctrl.h
listimpl.cpp
log.h Use const for constant local variables in wxWidgets headers 2018-07-21 16:16:32 +02:00
longlong.h Use const for constant local variables in wxWidgets headers 2018-07-21 16:16:32 +02:00
lzmastream.h Add wxLZMAClassFactory for run-time LZMA stream creation 2018-04-06 15:39:55 +02:00
math.h Move wxCTZ() documentation to the appropriate place 2018-11-05 19:27:53 +01:00
matrix.h
mdi.h
mediactrl.h
memconf.h
memory.h
memtext.h
menu.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
menuitem.h Fix compilation with wxUSE_ACCEL==0 2017-10-08 10:38:54 +02:00
metafile.h Build wxMetafileDataObject when wxUSE_DATAOBJ==1 2017-05-02 23:30:30 +02:00
mimetype.h
minifram.h
modalhook.h
module.h
mousemanager.h
mousestate.h Use const reference for wxPoint parameter 2017-05-28 23:56:46 -07:00
msgdlg.h
msgout.h Refactor wxLog and wxMessageOutput classes to avoid duplication 2017-11-04 16:19:06 +01:00
msgqueue.h
mstream.h
nativewin.h Avoid many -Wparentheses warnings from gtk/gtk.h with gcc8 2018-05-21 12:34:04 +02:00
nonownedwnd.h support masked or partially transparent windows in wxqt 2017-11-06 02:05:40 +01:00
notebook.h Remove trailing whitespace from several files 2018-04-18 15:45:42 +02:00
notifmsg.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
numdlg.h
numformatter.h
object.h
odcombo.h Replace wxArrayPtrVoid with wxVector<void*> 2019-01-04 21:37:27 +01:00
overlay.h Adding native macos Cocoa implementation for overlays into build files 2017-09-09 23:34:50 +02:00
ownerdrw.h
palette.h
panel.h
paper.h
pen.h Fix wxPenInfo ctor compilation with gcc 4.4.7 on CentOS 6 2017-11-05 16:42:20 +01:00
peninfobase.h Use ctor-initializer for non-trivial members 2017-09-12 09:51:53 -07:00
persist.h
pickerbase.h
platform.h Detect wxNO_RTTI automatically for clang too 2019-03-19 02:10:53 +01:00
platinfo.h Merge branch 'rmv_symbols_3' of https://github.com/catalinr/wxWidgets 2017-02-20 17:46:45 +01:00
popupwin.h Fix apparent activation loss after hiding previous popup 2019-04-02 18:13:27 +02:00
position.h
power.h
preferences.h
print.h
printdlg.h
prntbase.h Add wxPrintout::SetUp() to reuse the same code in all ports 2018-05-23 17:52:31 +02:00
process.h
progdlg.h
propdlg.h
ptr_scpd.h
ptr_shrd.h
quantize.h
radiobox.h
radiobut.h
range.h
rawbmp.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
rearrangectrl.h Fix inserting items to wxRearrangeList (wxGTK) 2017-04-30 21:42:41 +02:00
recguard.h
regex.h
region.h
renderer.h Allow using wxRendererNative::DrawGauge() for vertical gauges too 2018-02-03 18:46:17 +01:00
richmsgdlg.h Add footer text and icon to wxRichMessageDialog 2018-01-20 16:53:13 +01:00
richtooltip.h
rtti.h
sashwin.h
sckaddr.h More use of wxOVERRIDE 2018-03-06 23:31:01 +01:00
sckipc.h
sckstrm.h
scopedarray.h
scopedptr.h
scopeguard.h
scrolbar.h
scrolwin.h Remove wxALWAYS_SHOW_SB-related code from wxScrolled 2018-01-14 18:27:10 +01:00
secretstore.h Change wxSecretStore API to allow retrieving the username 2017-07-17 18:26:20 +02:00
selstore.h
settings.h Add wxSystemAppearance to check for dark mode under macOS 2019-04-21 02:11:07 +02:00
setup_inc.h Check for liblzma headers in configure too and add wxUSE_LIBLZMA 2018-04-06 15:39:39 +02:00
setup_redirect.h
sharedptr.h wxOVERRIDE 2019-02-17 22:42:26 -08:00
simplebook.h Update wxBookCtrlBase::m_selection outside UpdateSelectedPage() 2018-03-31 01:45:05 +02:00
sizer.h Replace wxSizer::RecalcSizes() with RepositionChildren() 2018-12-20 23:36:51 +01:00
slider.h
snglinst.h
socket.h Factor out socket flag selection into GetBlockingFlagIfNeeded() 2017-08-15 19:34:54 +02:00
sound.h
spinbutt.h
spinctrl.h
splash.h
splitter.h
srchctrl.h Use simple wxEVT_SEARCH[_CANCEL] names for wxSearchCtrl events 2018-01-30 02:03:48 +01:00
sstream.h Make wxStringOutputStream ctor explicit 2017-11-03 00:36:48 +01:00
stack.h
stackwalk.h
statbmp.h
statbox.h Don't pretend static box with enabled label is disabled 2018-01-18 23:28:16 +01:00
statline.h
stattext.h
statusbr.h
stdpaths.h Add default value for MakeConfigFileName() 2nd argument 2018-03-17 17:17:05 +01:00
stdstream.h
stockitem.h
stopwatch.h
strconv.h Fix wxMBConv::cWC2MB() and cMB2WC() returned buffer length 2017-11-03 23:26:39 +01:00
stream.h
string.h Merge branch 'ansi-fix' 2018-07-24 15:15:28 +02:00
stringimpl.h
stringops.h Fix initialization of SingleCharBuffer and Utf16CharBuffer data 2017-06-22 15:55:24 +02:00
strvararg.h Add support for passing nullptr to wx pseudo-vararg functions 2019-03-09 01:14:31 +01:00
sysopt.h
systhemectrl.h Fix wxMSW build with wxUSE_UXTHEME==0 2018-12-08 20:24:05 +01:00
tarstrm.h
taskbar.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
taskbarbutton.h Fix 'destionation' typos 2017-06-21 22:51:57 +04:00
tbarbase.h Remove trailing whitespace from several files 2018-04-18 15:45:42 +02:00
testing.h Add more wxOVERRIDE 2018-09-22 14:44:07 +02:00
textbuf.h
textcompleter.h Fix wx/textcompleter.h compilation when it's the first included header 2017-06-29 17:17:01 +02:00
textctrl.h
textdlg.h
textentry.h
textfile.h
textwrapper.h
tglbtn.h
thread.h
thrimpl.cpp
time.h
timectrl.h
timer.h
tipdlg.h
tipwin.h
tls.h
tokenzr.h
toolbar.h
toolbook.h Fix removing and inserting pages in wxToolbook 2018-12-05 17:23:57 +01:00
tooltip.h
toplevel.h Introduce platform-dependent wxTLWGeometry class 2018-04-29 19:51:10 +02:00
tracker.h
translation.h Revert all recent changes to wxTranslations 2018-12-23 17:33:49 +01:00
treebase.h Remove WXDLLIMPEXP_CORE from wxArrayTreeItemIds declaration 2018-06-20 13:52:50 +02:00
treebook.h Fix adding pages without associated window to wxTreebook 2018-09-18 00:33:59 +02:00
treectrl.h
treelist.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
txtstrm.h Fix wxTextInputStream for input starting with BOM-like bytes 2017-11-09 23:49:59 +01:00
typeinfo.h Fix clang -Winconsistent-missing-override when not using RTTI 2019-03-19 02:12:01 +01:00
types.h Extract common type definitions from wx/defs.h to wx/types.h 2018-01-07 22:43:24 +01:00
uiaction.h
unichar.h Include <utility> to get std::swap() declaration in C++11 2018-09-17 23:01:30 +02:00
uri.h
url.h
ustring.h
utils.h Avoid redundant declarations for wxQsort() 2019-03-21 02:44:27 +01:00
valgen.h
validate.h Avoid binding reference to NULL pointer when wxUSE_VALIDATORS==0 2019-04-04 10:56:14 -07:00
valnum.h Add Get{Min,Max,Range}() to numeric validator classes 2019-04-18 16:47:02 +02:00
valtext.h wxTextValidator improvements 2019-01-05 23:33:35 +01:00
variant.h Use ctor-initializer rather than assignment for non-POD class members 2019-02-25 10:23:35 -08:00
variantbase.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
vector.h Avoid redundant declarations for wxQsort() 2019-03-21 02:44:27 +01:00
version.h Increment version number to 3.1.3 2018-12-10 19:06:18 +01:00
versioninfo.h Use ctor-initializer rather than assignment for non-POD class members 2019-02-25 10:23:35 -08:00
vidmode.h
vlbox.h
vms_x_fix.h
volume.h
vscroll.h
weakref.h
webview.h Remove trailing spaces in webview code 2018-08-22 20:02:42 +02:00
webviewarchivehandler.h
webviewfshandler.h
wfstream.h
window.h Fix a typo in wxWindow::CaptureMouse() comment 2019-04-16 02:04:56 +02:00
windowid.h
windowptr.h
withimages.h
wizard.h Move wxAdv library contents into wxCore 2018-08-27 21:13:04 +02:00
wrapsizer.h Replace wxSizer::RecalcSizes() with RepositionChildren() 2018-12-20 23:36:51 +01:00
wupdlock.h
wx.h
wxchar.h
wxcrt.h Fix non-unicode build after 82881d6b03 2018-08-22 08:12:11 -07:00
wxcrtbase.h Always enable wxMBConv::IsUTF8() 2017-10-27 20:13:04 +02:00
wxcrtvararg.h Remove extraneous semicolons after wxDECL_FOR_STRICT_MINGW32() 2017-02-20 15:55:47 +01:00
wxhtml.h
wxprec.h
xlocale.h Try to fix macOS build using cmake after xlocale changes 2018-01-21 16:49:26 +01:00
xpmdecod.h
xpmhand.h
xti2.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
xti.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
xtictor.h
xtihandler.h
xtiprop.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
xtistrm.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
xtitypes.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
xtixml.h Remove all trailing spaces 2019-01-30 17:35:54 +01:00
zipstrm.h Removing extra semicola 2018-08-05 14:21:50 +02:00
zstream.h