Skip to content

v0.2.0 Theme Customization & Interactivity

Compare
Choose a tag to compare
@Clemapfel Clemapfel released this 15 Sep 14:20
· 139 commits to main since this release
f80bc72

This release adds new features related to animation and customization, as well as renaming mousetrap to Mousetrap to conform with Julia style guidelines. See the change list below.

Next on my list is registering the jlls on Yggdrasil, after which Mousetrap is ready to be uploaded to the Julia registry.

Thank you,
C.


Updating

To update mousetrap, in the REPL, run the following:

import Pkg
begin
    try Pkg.rm("mousetrap") catch end
    Pkg.update(url="https://github.com/Clemapfel/mousetrap_windows_jll")
    Pkg.update(url="https://github.com/Clemapfel/mousetrap_linux_jll")
    Pkg.update(url="https://github.com/Clemapfel/mousetrap_apple_jll")
    Pkg.add(url="https://github.com/Clemapfel/mousetrap.jl")
end

You may also need to clear any left-over folders from the old mousetrap package. This is due to the name change causing conflicts on some systems:

  • Delete folder mousetrap in .julia/packages
  • Delete folder mousetrap in .julia/compiled/v1.9, where v1.9 may be different depending on your Julia version

On Mac / Linux, the .julia folder is usually ~/.julia, while on windows it is usually C:/Users/<your username>/.julia.


!! Breaking Changes !!

  • mousetrap was renamed to Mousetrap, cf. #12

New Features

  • mousetrap can now be used interactively from within the REPL, the back-end is initialized when using Mousetrap resolves
  • Added Animation, steady-clock that provides timing for custom animations
  • Added TransformBin, allows applying spatial transform to any widget
  • Added FlowBox, widget that dynamically distributes its children into rows and columns
  • Added PopupMessage, PopupMessageOverlay, to display short message bubbles
  • Added ActionBar, toolbar widget that can be easily hidden / shown
  • Allows for manually changing look and color of individual widgets using CSS
  • Added Documentation Chapter 10: Theme & Widget Customization (WIP)

Changes

  • Made OpenGL initialization optional, meaning the rest of mousetrap will work even if creating an OpenGL context fails, this resolves #14
  • Serializing RGBA now returns valid CSS syntax
  • Fixed a Bug where FileMonitors reference counts never reaches 0
  • Fixed a Bug where incorrectly shutting down an application and restarting it in the same Julia session crashes the runtime
  • Migrated to libcxxwrap_julia_jll v0.11.0, resolves #11 and #20
  • Minor fixes for docs, cf. #22
  • Changed libjulia from runtime- to build-dependency, cf. #18

New Version Requirements

name was is now
mousetrap_linux_jll 0.1.1 0.2.0
mousetrap_windows_jll 0.1.1 0.2.0
mousetrap_apple_jll 0.1.1 0.2.0
libcxxwrap_julia_jll any 0.11.0
CxxWrap any 0.14.0