Commit Graph

108 Commits

Author SHA1 Message Date
Gaspar Capello 116201d8a1 Add custom data to Sprite Properties Window (fix #1306) 2020-12-16 12:40:05 -03:00
David Capello db4504e816 Refactor laf-os memory handling 2020-07-07 19:06:48 -03:00
David Capello b628e21e76 Replace MIN/MAX() macros with std::min/max() functions 2020-04-08 12:20:53 -03:00
David Capello 86259a64fc Replace MID() macro with base::clamp() function
In the future we will replace base::clamp() with std::clamp().
2020-04-07 19:47:16 -03:00
David Capello 95b655168c Use new laf + skia m81 branch
* Some minor refactors due laf changes.
* Updated the instructions to compile Aseprite linking to external
  skia instructions and pre-built packages.
2020-03-01 23:42:08 -03:00
David Capello 93fe19d353 Use cancelable async tasks to load/delete backup sessions 2019-05-30 23:17:13 -03:00
David Capello 105d389fdc Remove list of recipients from ui::Message 2018-12-13 10:11:56 -03:00
Gaspar Capello b3771472c3 Add default info on status bar (fix #1874) 2018-11-14 18:04:26 -03:00
David Capello 5cb2d984f0 Rename she -> os 2018-08-09 12:58:43 -03:00
David Capello f9c1c68012 Remove Allegro back-end (#139) 2018-08-09 11:43:35 -03:00
David Capello a674f5addb Trigger "New Sprite" double clicking tabs background (fix #912) 2017-09-28 12:10:22 -03:00
David Capello 432eedcb97 Support changing theme and UI scaling w/o restart (fix #471) 2017-08-15 10:39:06 -03:00
David Capello bc4f8ad3e1 Rename newStyles -> styles 2017-03-13 22:31:57 -03:00
David Capello be3c9c1bcc Convert timeline widget to new styles
And remove the old skin::Style.
2017-03-13 18:13:38 -03:00
David Capello ca2aae6349 Convert tabs painting code to new styles 2017-03-13 13:47:37 -03:00
David Capello 5ecc356a41 Replace GPL license with the new EULA 2016-08-29 13:08:21 -03:00
David Capello f5c43267fc Add support to right-click with Ctrl+left click on OS X (fix #438)
This is only for Tabs and Entry widgets at the moment.
2016-06-29 18:52:09 -03:00
David Capello 262bc0f16e Improve UI response when we clone tabs with Ctrl or Alt 2016-06-29 12:02:41 -03:00
David Capello 8028cf64db Merge branch 'unicode-text'
# Conflicts:
#	third_party/libpng
#	third_party/zlib
2016-04-04 10:26:57 -03:00
David Capello 64449ffba8 Avoid signed/unsigned comparison in gcc/debug compilation 2016-03-28 18:59:35 -03:00
David Capello 0abe01c5f4 Merge she::LockedSurface/NonDisposableSurface with she::Surface 2016-03-09 11:00:17 -03:00
David Capello 1aaeacc460 Refactor several "getNoun()" getters to "noun()"
This is a work-in-progress to create a consistent API and finally
separate the whole Aseprite base/gfx/ui libs into a reusable C++ library.

Classes:
app::IFileItem, app::AppMenuItem, app::skin::SkinPart,
gfx::Rect, gfx::Border, she::FileDialog,
ui::IButtonIcon, ui::Graphics, ui::Overlay, ui::Widget,
ui::ScrollableViewDelegate, and UI events
2015-12-04 14:39:04 -03:00
David Capello cdd955441a Rename PreferredSize -> SizeHint 2015-12-03 21:50:05 -03:00
David Capello cf7c4754cc Convert InkShadesField in a combobox-like widget to store several shades (#85)
Changes:
* Added new ui::IconButton widget to create widgets with one skin icon
  that is colored depending on the button state.
* ContextBar::InkShadesField was divided into a couple widgets (ShadeWidget
  and IconButton to drop-down a little menu with saved shades)
* Fixed CommonLockedSurface::drawColoredRgbaSurface() impl.
* Removed invalid gfx::setr/g/b/a() functions.
2015-11-24 18:37:13 -03:00
David Capello b659747a8c Fix pink border in tabs on Allegro backend 2015-11-06 10:40:13 -03:00
David Capello 2123ecb511 Fix crash calling selectTabInternal() with tab=nullptr 2015-11-03 16:12:13 -03:00
David Capello a16c5b9846 Fix floating tab overlay for Tabs widget on Skia backend 2015-10-14 18:38:53 -03:00
David Capello 615e369cc4 Fix closing multiple tabs with middle-click without moving mouse (fix #826) 2015-10-13 12:13:13 -03:00
David Capello d706d0c8fa Select the Editor when we click its tab (even when the tab is already selected)
With this change we generate an onSelectTab() when a tab is clicked
even when it's selected. This is useful to select the view related to
the tab when several selected tabs are visible at the same time.
2015-08-20 09:20:58 -03:00
David Capello 1c84471e24 Add minor comments in tabs.cpp 2015-06-17 16:44:28 -03:00
David Capello 53bd21fc19 Fix animation for the first tab added in a recently created Tabs widget 2015-06-17 16:44:00 -03:00
David Capello 29c5580c9e Fix minor UI problem in tabs transitions/animations when we close a tab 2015-06-15 12:15:23 -03:00
David Capello bdf28c01de Fix problem initializing oldX/Width fields for the docked tab
This fixes a problem creating interpolation between random
oldX/Width values and x/width fields. I've added some special values
in the initialization of a Tab to know if we are using uninitialized
values oldX/Width/x/width values in the animation.
2015-05-04 18:16:29 -03:00
David Capello 53e572eaf5 Rename TabsDelegate::isModifiedTab() to isTabModified() 2015-05-04 15:33:05 -03:00
David Capello eb60a4c3e7 Tabs: disable mouse wheel when we are dragging tabs 2015-04-24 19:29:57 -03:00
David Capello c5cf848d37 Fix tab height when we're docking a tab in the empty main Tabs widget 2015-04-20 14:04:38 -03:00
David Capello 47d2d8f902 Support to clone tabs using Ctrl+drag (close #634) 2015-04-20 13:49:25 -03:00
David Capello 39859e9858 Disable Ctrl+Tab (and Ctrl+Shift+Tab) when we are dragging tabs 2015-04-17 09:49:49 -03:00
David Capello 61fa0b454f Tabs: Use selectTabInternal() in kMouseDownMessage handler 2015-04-17 09:28:52 -03:00
David Capello 81f41e6793 Fix crash pressing Ctrl+Tab (or Ctrl+Shift+Tab) when there are no tabs 2015-04-17 09:25:53 -03:00
David Capello b4d97a4d35 Fix scroll problem with EditorView when we drag-and-drop Tabs 2015-04-10 13:02:15 -03:00
David Capello a299826d7d Fix problem dropping new tabs into Tabs widgets in Release mode
It happens only in Release mode because Tab::oldX/oldWidth in Debug
are initialized to 0, so it's not a visible problem when we are debugging.
2015-04-09 16:41:46 -03:00
David Capello 1199c51187 Don't collapse main Tabs widget when there are no tabs
It's useful to keep the main Tabs always expanded to dock other tabs on it.
2015-04-09 11:01:39 -03:00
David Capello 9157e3dd89 Fix invalid Tabs state where the dragged tab was in two Tabs at the same time
We were able to reach the invalid state moving a tab directly from one
Tabs widget to another one, without passing through the floating state.
2015-04-04 18:16:53 -03:00
David Capello cd24167158 Minor hack to correctly draw the floating tab 2015-04-04 16:49:06 -03:00
David Capello 76cc5185d8 Add special animation when drop a tab into other Tabs 2015-04-04 16:45:58 -03:00
David Capello 6a56e218f2 Show new tab preview to be docked in other Tabs 2015-04-04 16:25:57 -03:00
David Capello 7ba1138b40 Avoid inconsistent states with Workspace::m_dropPreview* members 2015-04-04 14:53:27 -03:00
David Capello 22c3c4f20e Remove implicit SharedPtr conversion to T* 2015-04-02 20:42:43 -03:00
David Capello d362f85e98 Minor debug cehck in Tabs::onProcessMessage() 2015-04-02 17:59:08 -03:00