diff --git a/CHANGELOG.md b/CHANGELOG.md index 8154fa723..306b4da79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,34 @@ +8.0.0 (08/30/2022) +------------------ + +* Updated HashLink to version 1.12 +* Updated Android minimum SDK version to 21 +* Updated Electron template to version 18 +* Updated HTML5 to high DPI by default +* Added `--template` command line option to Lime tools +* Added `--appstore` and `--adhoc` command line options for AIR on iOS to Lime tools (to match iOS native) +* Added `-air-simulator` command line option for AIR to Lime tools (avoids packaging full AIR app) +* Added `` to optionally support custom AIR profiles in simulator +* Added `setTextInputRect` to `Window` to specify a rectangle that has focus for text input +* Added `JNISafety` to improve JNI communication on Android +* Added `manageCookies` to `HTTPRequest` to support cookies on native platforms (only session for now) +* Added `pitch` property to `AudioSource` +* Added `-Delectron` flag to Electron builds so that it's possible to use `#if electron` +* Added icon priorities to allow a library to provide a default icon that the user can override +* Improved HashLink _.app_ file generation on macOS +* Improved performance of `HTTPRequest` on native platforms with better buffer management +* Improved support for Android 12 (SDK 31) and newer +* Improved output file size if no assets are defined (sets `disable_preloader_assets` define) +* Improved stage sizing on Electron (defaults to `0` for fluid width/height, same as regular browsers) +* Fixed garbage collector crash issue on iOS 12 +* Fixed iOS build that failed because of missing _Metal.framework_ dependency +* Fixed switching between light and dark modes on Android destroying the Lime activity +* Fixed `getCurrentTime` on `AudioSource` for streaming sounds on native platforms +* Fixed wrong types on `NativeMenuItem` Flash externs +* Fixed set clipboard when `null` is passed (now changes to an empty string automatically) +* Fixed warnings for deprecated "devicemotion" events on Firefox +* Fixed incompatibility with "genes" Haxelib to allow generating JS Modules + 7.9.0 (03/10/2021) ------------------ diff --git a/README.md b/README.md index 4ee89b399..8ec70953a 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ First install the latest version of [Haxe](http://www.haxe.org/download). Development Builds ================== -When there are changes, Lime is built nightly. Builds are available for download [here](https://github.com/openfl/lime/actions?query=branch%3Adevelop). +When there are changes, Lime is built nightly. Builds are available for download [here](https://github.com/openfl/lime/actions?query=branch%3Adevelop+is%3Asuccess). To install a development build, use the "haxelib local" command: - haxelib local filename.zip + haxelib local lime-haxelib.zip Building from Source diff --git a/assets/docs-theme/resources/extra-styles.css b/assets/docs-theme/resources/extra-styles.css new file mode 100644 index 000000000..3acff1686 --- /dev/null +++ b/assets/docs-theme/resources/extra-styles.css @@ -0,0 +1,6 @@ +body .navbar .brand:first-of-type { + background: url(./images/logo.png) center left no-repeat; + background-size: 32px 32px; + padding-left: 40px; + margin: 0.5em 0; +} \ No newline at end of file diff --git a/assets/docs-theme/resources/index.js b/assets/docs-theme/resources/index.js index 65ce23954..65b08cc6e 100644 --- a/assets/docs-theme/resources/index.js +++ b/assets/docs-theme/resources/index.js @@ -6,6 +6,22 @@ function readCookie(name) { return localStorage.getItem(name); } +function isDarkTheme() { + return document.querySelector("html").classList.contains("dark-theme"); +} + +function toggleTheme() { + const htmlTag = document.querySelector("html"); + let isDark = isDarkTheme(); + if (isDark) { + htmlTag.classList.remove("dark-theme"); + } else { + htmlTag.classList.add("dark-theme"); + } + isDark = isDarkTheme(); + localStorage.theme = isDark ? "dark" : "light"; +} + function toggleInherited(el) { var toggle = $(el).closest(".toggle"); toggle.toggleClass("toggle-on"); @@ -131,7 +147,7 @@ $(document).ready(function(){ } return true; }); - + $("#select-platform").selectpicker().on("change", function(e){ var value = $(":selected", this).val(); setPlatform(value); diff --git a/assets/docs-theme/templates/topbar.mtt b/assets/docs-theme/templates/topbar.mtt index e23d53522..332dd91a9 100644 --- a/assets/docs-theme/templates/topbar.mtt +++ b/assets/docs-theme/templates/topbar.mtt @@ -1,6 +1,11 @@