summaryrefslogtreecommitdiff
path: root/src/ui/window.c
AgeCommit message (Collapse)Author
2021-04-03Drawing only during window updateJaakko Keränen
Glyphs were inadvertently being cached already during measuring for layout. DocumentWidget was buffering graphics too early. Now buffered draws are prepared during normal drawing, when needed.
2021-03-31CleanupJaakko Keränen
2021-03-30Widget: Arrangement debugging; min sizeJaakko Keränen
There is a problem with repeated arrangements: the previous set sizes affect subsequent outcomes. This results in Preferences not being able to reduce in size, only to expand. It should be possible to reset sizes back to zero/minimum size before starting an arrangement, but LabelWidget needs to cooperate by using `minSize` to set its default size. `minSize` is preferable to fixedSize because then the widget can go through the usual arranging logic. To be continued at a later time...
2021-03-28macOS: Recreate menus after language changesJaakko Keränen
IssueID #192
2021-03-26Added Noto Sans SC; font table cleanupJaakko Keränen
Added the Noto Sans Simplified Chinese font. This adds another ~10 MB to resources.lgr, increasing the urgency of distributing fonts via separate downloads. The font table was getting difficult to manage, so now the sizes are broken out into a separate enum, and the table is reordered to match the FontSize order.
2021-03-23UI language preference; switching at runtimeJaakko Keränen
IssueID #192
2021-03-23Lang: Applied more string IDsJaakko Keränen
IssueID #192
2021-03-22Lang: Improvements; macOS menu itemsJaakko Keränen
Use char pointer ranges for the array of IDs and strings to avoid allocations. Translate macOS menu items. IssueID #192
2021-03-22Basic language string mechanismJaakko Keränen
Added a set of English strings. Lang can load a language. LabelWidget can replace IDs in the label. IssueID #192
2021-03-22Lang: Began replacing UI strings with IDsJaakko Keränen
IssueID #192
2021-03-21iOS: Save to Files; hide toolbar on scrollJaakko Keränen
There is no downloads directory on mobile. Instead, the downloaded file is temporarily cached and given to the iOS document picker to export. Added an option to hide the bottom toolbar while scrolling down.
2021-03-20Mobile: Balance navbar buttonsJaakko Keränen
Moved Identity button to the right since on the left there is the new Sidebar button.
2021-03-20Mobile: Sidebar toggling navbar buttonJaakko Keränen
2021-03-19macOS: Added "about:about" to Help menuJaakko Keränen
2021-03-19Window: Reduce navbar padding on portrait phoneJaakko Keränen
2021-03-18Window: Fixed reload button heightJaakko Keränen
2021-03-18macOS: Fixed buildJaakko Keränen
2021-03-18Draw soft popup menu border shadowsJaakko Keränen
2021-03-18Scrollbar fading and periodic commandsJaakko Keränen
Added a new mechanism to issue periodic but not per-frame commands. This is used for main-thread operations like checking if it's time to fade away the scrollbars. Scrollbars are faded away completely on Apple platforms. Adjusted list right margins accordingly.
2021-03-17Moved "Find on page" menu itemJaakko Keränen
Mobile "Find on page" is now in the nav menu. Added icons to sidebar toggle items.
2021-03-17InputWidget: In a narrow window, omit the default URL schemeJaakko Keränen
The default URL scheme is "gemini". If missing, it will always be added back when making requests. This allows it to be omitted from the URL input field if space needs saving. Other schemes, like "gopher", won't be omitted.
2021-03-16Mobile: Dialog layout fixesJaakko Keränen
Orientation and safe inset changes are now applied to phone dialogs. There is still the occasional unscrollable dialog, but it seems random?
2021-03-15Mobile: Find on page, various minor tweaksJaakko Keränen
On mobile, the search bar appears at the top of the page. Keep the haptic engine running so there is no delay before each effect. After a long-press, remove the "mouse" from the display area so there is no misleading hover. Widget border top/bottom use metrics.
2021-03-13Text: Removed pending glyphs trackerJaakko Keränen
2021-03-13CleanupJaakko Keränen
2021-03-13Touch: Long-press context click on any widgetJaakko Keränen
2021-03-13Window: Toggle sidebar via phone menuJaakko Keränen
2021-03-13Arrange URL child indicators; widget arrangementJaakko Keränen
The indicators in the URL input field are now arranged horizontally, so they don't overlap. Improved arrangement of (un)collapsed widgets.
2021-03-13Mobile: Simplified window event handlingJaakko Keränen
The desktop window events do things that are not relevant on mobile, and may in fact be harmful. Since mobile is essentially fullscreen only, needed updates to root size are done whenever the window is redrawn.
2021-03-12Cut/copy/paste paste via menusJaakko Keränen
IssueID #175
2021-03-12Window: Embed reload button; sidebar context menuJaakko Keränen
2021-03-10Mobile: Adjusting sidebar appearanceJaakko Keränen
2021-03-10Mobile: Phone-styled input dialogJaakko Keränen
2021-03-10Mobile: Working on the phone preferencesJaakko Keränen
2021-03-09Mobile: Revising phone-style dialogsJaakko Keränen
Sliding panels and left-edge swipes.
2021-03-08Scale images for displayJaakko Keränen
Resize images down to the maximum texture size or the screen size, whichever is smaller. IssueID #167
2021-03-07Multithreading issuesJaakko Keränen
It was possible that the window was accessed from a background request `postCommand` before the window was created. The CA file/path from preferences must be set before TlsRequest is used.
2021-03-07Added more menu iconsJaakko Keränen
2021-03-06Rasterize a few glyphs on every frameJaakko Keränen
Also various widget fixes/improvements.
2021-03-06Mobile: Dealing with keyboard heightJaakko Keränen
The software keyboard obstructs part of the UI, so need to offset the view if the focused input widget would not be visible.
2021-03-05Defined a set of UI icons; use in menusJaakko Keränen
2021-03-04LabelWidget: Added an optional iconJaakko Keränen
Label icons are intended for context menus.
2021-03-04Windows: Fixed build; updated release notesJaakko Keränen
2021-03-04Window: Check for display pixel ratio changesJaakko Keränen
This works on macOS at least, still need to check other platforms. IssueID #83
2021-03-04Changing UI scaling at runtimeJaakko Keränen
UI scaling factor is applied when closing the Preferences dialog. IssueID #83
2021-03-03Load keyboard modifier mapping from modmap.txtJaakko Keränen
IssueID #87
2021-03-03Added full set of platform #definesJaakko Keränen
2021-03-03CapsLock as a modifier key; adding a modifier mapping tableJaakko Keränen
IssueID #87
2021-03-02Windows: App icon color for custom frameJaakko Keränen
2021-03-02Window: Small top padding adjustmentJaakko Keränen