31 Commits

Author SHA1 Message Date
David Capello
c99000a2c3 Add theme variants to switch easily between Light/Dark themes 2021-05-22 00:42:36 -03:00
David Capello
7ad1b7b965 Simplify handling of dithering matrices in extensions to avoid memory leaks 2020-04-23 23:41:08 -03:00
David Capello
5affdbbae1 Shox extensions in different categories in the Preferences dialog 2020-04-20 14:20:07 -03:00
David Capello
ff3e9504fd Fix crash disabling extensions 2020-04-20 14:11:48 -03:00
David Capello
c0d4264789 Fix crash loading some kind of .zip extensions w/filename w/Unicode chars 2020-04-17 10:58:47 -03:00
David Capello
2af6a0493e Fix recent list of files menu
This is a problem introduced with the plugin groups, but now we use a
group to store the list of recent files. With this commit we fixed
some bugs in the impl of menu groups.
2020-04-08 17:50:17 -03:00
David Capello
482fcd3b8c Fix crash when loading plugins from CLI and compilation when !ENABLE_UI 2020-04-07 10:56:48 -03:00
David Capello
a7f3fc968a Fix compilation when !ENABLE_SCRIPTING 2020-04-07 10:44:26 -03:00
David Capello
298c2e24e8 Add possibility to put plugin:newCommand{} in specific menu locations identified as "groups" (#1949) 2020-04-02 23:18:08 -03:00
David Capello
6b6b9057bf Add support for scripts on extensions (#1949)
It still need some work to associate the command to menus easily.

Related issues:
  https://github.com/aseprite/aseprite/issues/1403
  https://github.com/aseprite/aseprite/issues/1949
  https://github.com/aseprite/api/issues/20
  https://community.aseprite.org/t/lua-script-extension-and-menu-api/5085
2020-04-02 20:21:21 -03:00
David Capello
93c357a87e Take care of some special cases of extensions with __info.json inside 2018-11-28 10:31:02 -03:00
David Capello
f2ed45e795 Replace base::UniquePtr -> std::unique_ptr 2018-08-08 17:27:26 -03:00
David Capello
f481b979d4 win: Fix installing .zip extensions on Unicode paths
It looks like libarchive API is a little tricky, on Windows it needs
wide strings in the pathname. Even archive_entry_set_pathname_utf8()
cannot be used: there is no UTF8 -> wide string conversion inside
libarchive, I guess it's because archive_mstring_get_wcs() doesn't check
for AES_SET_UTF8 case.
2018-03-22 13:24:32 -03:00
David Capello
0e0b83b478 Now an extension can contain a language (#124, #1403) 2018-03-19 19:37:39 -03:00
David Capello
dee6ff6c7e Refactor: Use new base::paths type for list of filenames/extensions 2018-02-21 11:06:58 -03:00
David Capello
72c1f9b765 Current theme can be uninstalled (so we can upgrade it)
Only the default theme cannot be uninstalled.
2017-06-23 15:19:00 -03:00
David Capello
7156c4ae98 Fix user extensions path on Windows 2017-06-23 15:09:41 -03:00
David Capello
d0635c3c0b Fix construction of json11::Json object
Don't call Json() ctor directly (gcc error)
2017-06-23 10:29:24 -03:00
David Capello
81ccbee4a2 Safer method to delete installed extension files through __info.json 2017-06-23 08:29:21 -03:00
David Capello
4ccecdeda2 Show alert when we upgrade an existent extension 2017-06-23 07:53:31 -03:00
David Capello
f37ccdc578 Replace taocpp/json with dropbox/json11 which compiles on MSVC 2017-06-14 19:50:44 -03:00
David Capello
a20976d220 Move dithering matrices to extensions 2017-06-14 16:34:09 -03:00
David Capello
7ba6893ba2 Change path of user extensions to extensions/ instead of data/extensions/ 2017-06-14 12:06:30 -03:00
David Capello
919ce7c9d0 Uncompress extension in a folder named as the "name" attribute in the package.json file 2017-06-13 17:06:45 -03:00
David Capello
587b8b6dd7 Get default palette from extensions 2017-06-13 12:03:16 -03:00
David Capello
c4d0273e4e Update themes list when extensions are enabled/disabled 2017-06-13 11:51:49 -03:00
David Capello
511cf43484 Reload palettes when we enable/disable an extension 2017-06-12 18:08:02 -03:00
David Capello
a510643a7f Add kPackageJson constant 2017-06-12 15:30:18 -03:00
David Capello
a9e688989f Implement Add/Uninstall extension (#1403)
- Added libarchive to uncompress .zip extensions
- Moved ListItem painting code to styles because we needed a selected+disabled state.
2017-06-12 12:38:53 -03:00
David Capello
b7b69ce538 Move palettes to extensions (#1403) 2017-06-10 16:44:19 -03:00
David Capello
27c4d832bf First draft-implementation of extensions (#1403)
At the moment only themes are supported and some functionality is not
available yet (disabling an extension, uninstalling it, etc.)
2017-06-10 15:02:39 -03:00