diff options
author | culler <culler> | 2018-11-11 05:33:20 (GMT) |
---|---|---|
committer | culler <culler> | 2018-11-11 05:33:20 (GMT) |
commit | a9b367c36191b1de125ece91b539a0160b5cc93f (patch) | |
tree | 3766b898de24e8b859b10464394ccb992f3d5733 /macosx/README | |
parent | 050e8dca32283d9b7ec01baa5e56e82a5a5684f7 (diff) | |
download | tk-a9b367c36191b1de125ece91b539a0160b5cc93f.zip tk-a9b367c36191b1de125ece91b539a0160b5cc93f.tar.gz tk-a9b367c36191b1de125ece91b539a0160b5cc93f.tar.bz2 |
Restore the README description of virtual events for appearance changes.
Diffstat (limited to 'macosx/README')
-rw-r--r-- | macosx/README | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/macosx/README b/macosx/README index 8b2f52f..c63b8ae 100644 --- a/macosx/README +++ b/macosx/README @@ -561,13 +561,12 @@ source and destination rectangles for the scrolling. The embedded windows are redrawn within the DisplayText function by some conditional code which is only used for macOS. -5.0 Dark Mode on 10.14 +5.0 Virtual events on 10.14 ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10.14 supports system appearance changes, and has added a "Dark Mode" -that casts all window frames and menus as black. Tk 8.6.9 supports Dark -Mode by having the window decorations, menus, and dialogs automatically -take on the appropriate appearance when the system appearance is changed. -Because the window content itself is drawn by Tk, it will not change when -the system mode changes. - +that casts all window frames and menus as black. Tk 8.6.9 has added two +virtual events, <<LightAqua>> and <<DarkAqua>>, to allow you to update +your Tk app's appearance when the system appearance changes. Just bind +your appearance-updating code to these virtual events and you will see +it triggered when the system appearance toggles between dark and light. |