summaryrefslogtreecommitdiff
path: root/src/ui/window.c
AgeCommit message (Collapse)Author
2021-04-10Mobile: Close menus when toolbar hiddenJaakko Keränen
2021-04-10Mobile: Zooming using pinch gesturesJaakko Keränen
2021-04-10Mobile: Freeze UI draws when app hiddenJaakko Keränen
Maybe a workaround for the squished view issue?
2021-04-09Mobile: Wrong menu item labelJaakko Keränen
2021-04-08Mobile: Sidebar on orientation change; paddingJaakko Keränen
Sidebar is hidden on orientation changes. Added a bottom padding to account for the overlapped toolbar.
2021-04-07Window: Only draw widgets after window exposedJaakko Keränen
No point in wasting time drawing anything before the window is actually visible. Should test this is different platforms, though...
2021-04-07Windows: Don't set a maximum size for the windowJaakko Keränen
The maximum size was introduced to avoid the window being too large at launch, but this doesn't work if the window is moved to different monitor. IssueID #199
2021-04-07macOS: No display scaling, only pixel ratioJaakko Keränen
IssueID #239
2021-04-07SidebarWidget: Store width as resolution independent unitsJaakko Keränen
DPI and pixel ratio changes should not radically change width of the sidebar. IssueID #239
2021-04-07Window: Adjusted minimum display scalingJaakko Keränen
2021-04-07Window: Pixel ratio and display scalingJaakko Keränen
IssueID #239
2021-04-05Mobile: Fixing the build post-1.3Jaakko Keränen
2021-04-03Window: Defer events posted during startupJaakko Keränen
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.