summaryrefslogtreecommitdiff
path: root/src/ui/widget.c
AgeCommit message (Collapse)Author
2021-12-02Widget: Widget rearrangement issuesJaakko Keränen
There were issues where popup menus would only get wider and never narrower. Arrangements should not be dependent on the results of a previous one.
2021-11-30SidebarWidget: Crash when switching Feeds modeJaakko Keränen
Updating items immediately destroys the action widgets.
2021-11-29Widget: More accurate division of available spaceJaakko Keränen
Take fractional pixels into account when laying out widgets. This ensures that the entire available space is used, particularly when there are many children. IssueID #403
2021-11-23Widget: Removed the animation offset hackJaakko Keränen
2021-11-06CleanupJaakko Keränen
2021-11-06Fixed issues with tall popup menusJaakko Keränen
A tall popup menu needs to use overflow scrolling, but the size of the display wasn't considered. Now a popup window is fit to the usable bounds of the display.
2021-11-04Widget: Scroll overflow widgets via mouse hoverJaakko Keränen
Useful for tall menus and dialogs on the desktop.
2021-10-23CleanupJaakko Keränen
2021-10-22CleanupJaakko Keränen
2021-10-22Merge branch 'work/v1.8' into devJaakko Keränen
2021-10-22Working on tab close buttonsJaakko Keränen
An [x] button appears on tab buttons when hovering on them. Still needs a bit of layout tweaks and the first tab doesn't have a button yet.
2021-10-20Touch: Fixed motion eventsJaakko Keränen
The windowID was expected to be set, but wasn't for touch events. IssueID #351
2021-10-09Widget: Keep frame inside the widget areaJaakko Keränen
TODO: Check if this is only applicable to HiDPI.
2021-10-01Added feeds update progress indicatorJaakko Keränen
Show some status info about the progress of feed refresh. The search query and feeds indicators now use the small UI font size.
2021-09-26Root: Crash when closing split viewJaakko Keränen
Some deleted widgets were kept around in the root's onTop list.
2021-09-21macOS: Native context menusJaakko Keränen
Popup context menus now use NSMenu. There are still has a few glitches with the navbar identity button, but most menus are working. SDL required another little tweak to force it to update mouse button state after the synchronously handled context menu goes away. Otherwise SDL's internal mouse button state shows that the right mouse button is held down.
2021-09-20Experimenting with independent popup windowsJaakko Keränen
Toe dipping into multiple window support by allowing popup menu widgets to be displayed in independent windows. This is not a 100% replacement for native menus, but it gets pretty close.
2021-09-19Refactoring Window to split off MainWindowJaakko Keränen
MainWindow represents (one of) the main windows of the app, while the basic Window will be a used for popups. Only MainWindow supports split view modes.
2021-09-19Widget: Scrollable widgets will draw a scrollbarJaakko Keränen
A proper scrollbar would be grabbable, but this is just a visual indication that a menu/dialog/panel can be scrolled. IssueID #337
2021-09-19Widget: Scrolling tall widgets in vertical splitJaakko Keränen
Root's safe rect was not using the right origin coordinates. IssueID #337
2021-09-18Fixed crash when hovered widget is destroyedJaakko Keränen
2021-09-18Tracking hover widget; cleanupJaakko Keränen
The hover widget may get deleted during event processing, so Window keeps track of it for refreshing. TODO: Random crash when a destroyed menu is still in the onTop array (?).
2021-09-14Widget: Fixed overflow scroll boundsJaakko Keränen
2021-09-13Mobile: New selection logic for InputWidgetJaakko Keränen
Touch-based interaction requires a different kind of selection and copy/paste behavior. This isn't done yet; especially multi-line text still needs work.
2021-09-12Mobile: Better Settings tap targets; fixed safe area drawingJaakko Keränen
2021-09-12Widget: More accurate draw countJaakko Keränen
2021-09-12Mobile: Draw optimizations; focus handlingJaakko Keränen
Widgets can now be marked for buffering their contents, which is useful if their contents change seldom but they are drawn often. For example, the navbar is always visible but doesn't change very often, and during animations menu contents are static but there is a moving animation so everything gets drawn 60 FPS. Focus handling was also improved so the lookup results can be scrolled while entering text, and one can tap outside an input field to unfocus it.
2021-09-11Mobile: Many UI improvements; Upload UIJaakko Keränen
2021-09-08Mobile: Preferences is completed, improvedJaakko Keränen
2021-09-07Mobile: Redoing PreferencesJaakko Keränen
Contents of the Preferences split panel view are created based on arrays of MenuItems. This removes the confusing indirection of trying to modify the desktop widget tree to fit mobile.
2021-07-15Widget: Removed unnecessary assertionsJaakko Keränen
2021-06-15Fixed visual artifact during sidebar animationJaakko Keränen
The sidebars are not supposed to have borders or background fades.
2021-06-15Mobile: Show identity name in toolbarJaakko Keränen
Shuffled the widget flags a bit to make room for a new one.
2021-06-14Swiping and sidebar; various tweaksJaakko Keränen
When a page is opened from the sidebar, swiping back will now reopen the sidebar. Another swipe will dismiss the sidebar and navigate back as usual. Attempted to cache theme colors in GmDocument, but there were issues with theme changes.
2021-06-13Mobile: Swipe navigationJaakko Keränen
Swipes are working much better. Todo: - Pinch must always cancel/override edge swipes. - Use the right palette for the "swipein" placeholder.
2021-06-13Mobile: Working on swipe navigationJaakko Keränen
Swipes back and forward are now working, although there are some glitches remaining. Most notably, when swiping back the previous document does not appear until the finger is released.
2021-06-13Touch: Swiping away the sidebarJaakko Keränen
2021-06-12Touch: Revising edge swiping eventsJaakko Keränen
Edge swiping now has its own set of commands that are posted, allowing widgets to respond more flexibly.
2021-06-09Merge branch 'dev' into work/typesetterJaakko Keränen
# Conflicts: # src/gmdocument.c # src/ui/documentwidget.c # src/ui/inputwidget.h
2021-05-22Document footer buttonsJaakko Keränen
In some situations, e.g., when a client certificate is required but not active, make available action buttons that offer related shortcuts. Selecting or deselecting an identity for use will automatically reload the current page for convenience. Animate closing sidebars with Escape key.
2021-05-22DocumentWidget: Working on footer button positioningJaakko Keränen
2021-05-20Dialog show/hide animationsJaakko Keränen
Use the animations introduced for mobile on desktop as well. Adding a preference for this might be prudent.
2021-05-19CleanupJaakko Keränen
2021-05-19CleanupJaakko Keränen
2021-05-19Widget: Fixed arrangement bugJaakko Keränen
Whenever a widget is resized, we may need to rearrange its children. The up-to-date sizes must be used for determining positions for other children.
2021-05-18Mobile: No view split on phone; layout fixesJaakko Keränen
2021-05-17Mobile: Swipe improvementsJaakko Keränen
Edge swipe direction is determined in a more dynamic way.
2021-05-16Widget: Fixed arrangement resettingJaakko Keränen
The expand flag should be reset only in the context of the parent's arrangement/resize direction.
2021-05-16Widget: Fade opacity based on area covering rootJaakko Keränen
2021-05-15Widget: Rearranging expanding widgetsJaakko Keränen
When starting a new arrangement, expanding widgets must be reset so they won't affect the outcome.