summaryrefslogtreecommitdiff
path: root/src/ui/window.c
AgeCommit message (Collapse)Author
2022-02-21Windows: Fixed dark mode for multiple windowsJaakko Keränen
2022-02-20Window-specific refreshJaakko Keränen
When updating, mark pending refresh per window so one doesn't have to draw all of them at once.
2022-02-20Window: Unfreeze command affects all frozen windowsJaakko Keränen
2022-02-20Adding context items to open in new windowJaakko Keränen
2022-02-19Fixed several event handling issuesJaakko Keränen
Events are expected to have a valid windowID now, and the current window also has to be correct when dispatching or processing any events.
2022-02-18Serializing multiple windowsJaakko Keränen
Not quite fully functional yet. The window positioning still needs to be written to prefs.cfg.
2022-02-18Basic opening and closing of new windowsJaakko Keränen
One can create a new window with `window.new` and close it with the window close button.
2022-02-08CleanupJaakko Keränen
2022-02-08macOS: Attempting workaround for Metal refresh issuesJaakko Keränen
For some reason, rendering to a separate render target instead of directly to the window helps with certain refresh glitches. More glitches still remain, though, perhaps related to not running window refresh at a constant rate but occasionally pausing to wait for input events.
2022-01-22Window: Don't trigger a draw during SDL_ShowWindowJaakko Keränen
IssueID #442
2022-01-03Android: Fixed glitches with updating keyboard heightJaakko Keränen
2022-01-01Android: Fixed root sizing; clip menu not showing; toolbar buttonsJaakko Keränen
The keyboard height was miscalculated if there were system keys under the window.
2021-12-27Android: Keyboard height; other fixesJaakko Keränen
Send a notification from the Java side when the software keyboard is shown.
2021-12-25CleanupJaakko Keränen
Warnings about lost precision.
2021-12-23Android: Various fixes to get things up and runningJaakko Keränen
Resource paths, runtime data, ignore mouse events. Assume that the Java side tells us the display pixel density via a command line argument.
2021-12-16DocumentWidget: Paste preceding lineJaakko Keränen
Added a special actions menu in the input prompt to allow the user to paste the line preceding the latest clicked link from the originating document. One use case for this is user-editable lines.
2021-12-14iOS: Fixed input positioning (non-animated widget)Jaakko Keränen
If there were no entry animation, the native UI control would not be correctly placed.
2021-12-05Mobile: Fixed layout issue during animationJaakko Keränen
Update sliding sidebar height with the correct values for the frame.
2021-11-27Window: Don't steal focus on hoverJaakko Keränen
This was incorrect on X11 at least. Should still test on Windows. IssueID #399
2021-11-25Unsplit button in toolbarJaakko Keränen
IssueID #378
2021-11-24Window: Only one draw operation at onceJaakko Keränen
Ensure that a draw is not started if it is already ongoing, especially when using the resize event watcher.
2021-11-14Merge branch 'dev' into work/v1.9Jaakko Keränen
# Conflicts: # CMakeLists.txt # Depends.cmake # src/lang.c
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-10-31Changed format of resources.lgrJaakko Keränen
Resources are now stored in a ZIP archive, and it comes with an explicit version number. All the old embed/bincat stuff was removed as unnecessary. resources.lgr is also a valid fontpack, for loading the built-in fonts. IssueID #363
2021-10-23CleanupJaakko Keränen
2021-10-22Window: Close buttons on merged tabsJaakko Keränen
2021-10-22DocumentWidget: Not scrollable until mouse movedJaakko Keränen
The hover widget needs updating if the currently visible tab changes. Normally the hover widget is only updated when the mouse has moved.
2021-10-20iOS: Fixing the buildJaakko Keränen
2021-10-08Colored popup framesJaakko Keränen
2021-10-06Revised runtime font managementJaakko Keränen
The built-in fonts are loaded via FontPack, and the font table is now constructed dynamically based on available fonts. A full set of variants (style, size) are prepared for each font, but some of the data gets allocated lazily when needed. GmRun needed a larger allocation for fonts, so now all the fields are combined into a single bit field. TODO: Glyph scaling, vertical offsets, and symbol lookup are still not fully working.
2021-09-28Window: Automatic software rendering fallbackJaakko Keränen
2021-09-27CleanupJaakko Keränen
2021-09-27macOS: Maximized window is not a special caseJaakko Keränen
2021-09-27Window: Fixed regressions in retaining window placementJaakko Keränen
Window placement was not restored correctly when the window was maximized. Maximizing a window (on Windows) causes a spurious move event to be received from SDL, and that would mess up the remembered position. Now window placemenet is saved after a run through the event loop, so the rest of the window messages have been handled.
2021-09-27Windows: Enable dark mode; use dark title bar for dark themesJaakko Keränen
This is quite a hack, but Win32 apps don't seem to have documented access to dark mode.
2021-09-26Popup menus are positioned on selected itemJaakko Keränen
2021-09-26macOS: Popup window fixes; simply window creationJaakko Keränen
2021-09-26Window: Set window position during creation; popups use sw renderJaakko Keränen
The renderer is created separately so it's possible to set the window position at creation time. Popup window use basic software rendering for (hopefully) better performance.
2021-09-26X11: Tuning popup window behavior and appearanceJaakko Keränen
2021-09-26Root: Crash when closing split viewJaakko Keränen
Some deleted widgets were kept around in the root's onTop list.
2021-09-25Windows: Various fixes after MainWindow refactoringJaakko Keränen
2021-09-25Window: Fixed build with ENABLE_WINDOWPOS_FIX; cleanupJaakko Keränen
2021-09-25Fixed a build failzocker
There is no member of d with name win, but base seems to have one.
2021-09-25Persistent bookmark folder stateJaakko Keränen
Incremented the version of state.lgr so it can include bookmark folder open/closed state for each of the two/four sidebars.
2021-09-24Bookmark foldersJaakko Keränen
The user can now create bookmark folders, and drag bookmarks into them. Folders can also be nested. The bookmark sorting menu item sorts inside the chosen folder/root. Remote bookmark sources appear also as folders, although they cannot be sorted/edited. IssueID #339
2021-09-23MainWindow: Tweaks to avoid flash at launchJaakko Keränen
When the window appears, it should have all the actual contents and not a placeholder.
2021-09-21Added build options for popup/macOS menusJaakko Keränen
2021-09-21Fixed issues with popup windowsJaakko Keränen
2021-09-20Fixed build on Windows (MSYS)Jaakko Keränen
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.