summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
AgeCommit message (Collapse)Author
2021-10-26Cleanup; minor tweaksJaakko Keränen
2021-10-20iOS: Fixing the buildJaakko 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-10-05SidebarWidget: Crash in TOC tabJaakko Keränen
The heading items will be obsolete if clicking in the sidebar before a page load finishes. IssueID #350
2021-10-01Feeds: Don't forget entries or their unread statusJaakko Keränen
Three important changes: 1) Visited URLs can be marked as "kept" so they will never be discarded due to old age. 2) Feed entries are not discarded from the database until they are removed from the source, and then become too old (six months). 3) Visited feed entry URLs are always flagged as kept, so the (un)read status will not be forgotten.
2021-09-30SidebarWidget: Scroll view to newly added itemsJaakko Keränen
New bookmarks and folders shouldn't appear outside the visible part of the list.
2021-09-30ListWidget: Dragging before/after an itemJaakko Keränen
It's useful to make a distinction whether a drag ended before or after an item, even if it's still referring to the same boundary between items. This allows bookmarks to be reordered inside a folder so that an item is moved to the bottom of a folder, or out of the folder following it in order.
2021-09-27SidebarWidget: Editing folder namesJaakko Keränen
Use the regular bookmark editor but hide the Special Tags section, and disable all but the Title for now.
2021-09-26Minor UI tweaksJaakko Keränen
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-24Bookmarks: Deleting a tree of bookmarksJaakko Keränen
Sidebar asks for confirmation when deleting a folder hierarchy of bookmarks.
2021-09-24SidebarWidget: Creating folders inside clicked folderJaakko Keränen
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-24SidebarWidget: Reordering bookmarks manuallyJaakko Keränen
One can now drag and drop bookmarks to change their order in the list.
2021-09-23Bookmarks: TOML syntax; field for manual orderJaakko Keränen
The bookmarks file is now saved in a TOML subset and named "bookmarks.ini". This makes it more robust and forwards compatible. Added a field for sort order, since that will be used for manual ordering.
2021-09-21Disabling items in native menusJaakko Keränen
Added the special prefix `///` to mark items disabled.
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-17SidebarWidget: Button font glitchesJaakko 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-08-25Merge branch 'dev' into work/v1.7Jaakko Keränen
# Conflicts: # CMakeLists.txt # res/about/version.gmi
2021-08-25SidebarWidget: Fixed right-clicking on sidebar tabsJaakko Keränen
The sidebar context menu should open when clicking on the tabs, not the item context menu.
2021-08-20Added build options to force phone/tablet mobile UIJaakko Keränen
These options are mostly useful on mobile platforms that are not iOS or Android, and for testing purposes.
2021-07-06Text run measurement API change; bug fixesJaakko Keränen
The distinction between measure_Text and advance_Text was not very clear. Now there are only measure_Text functions that return both the bounds and the cursor position advancement, and the appropriate metrics are used by the caller.
2021-06-30Canonical URIsJaakko Keränen
Internally, all URIs should be converted to a canonical form so that they can be compared against each other. The canonical form is an IRI with spaces and reserved characters percent-encoded.
2021-06-15Fixed visual artifact during sidebar animationJaakko Keränen
The sidebars are not supposed to have borders or background fades.
2021-06-15Mobile: Draw Identity button as outlineJaakko Keränen
2021-06-14Mobile: Toolbar color depends on sidebarJaakko Keränen
Toolbar should reflect the colors of the current view, whether it's a page or the sidebar.
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-13Touch: Swiping away the sidebarJaakko Keränen
2021-06-10Mobile: Horizontal sidebar animationJaakko Keränen
Also fixing glitch with search input field where pressing Return would insert newline.
2021-05-29Preferences: Added toggle for UI animationsJaakko Keränen
2021-05-27Fixed icon alignmentsJaakko Keränen
Some of the icons in the Bookmarks list and lookup results were misaligned.
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-21Added identity exportingJaakko Keränen
Exporting an identity will display it in a new tab in PEM encoded format, where it can be saved or copied. IssueID #236
2021-05-20SidebarWidget: Identities list click behaviorJaakko Keränen
Avoid accidental activations by never (de)activating identities based on a single click. Now both left and right mouse clicks will open the context menu.
2021-05-20SidebarWidget: Highlight identities used on current domainJaakko Keränen
2021-05-20Improved Identity management via sidebarJaakko Keränen
Prevent redundant activations: the highest-level URL overrides the same identity being used on lower-level URLs. Changed the icons in the list and added the list of used URLs into the context menu as clickable items.
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-18Mobile: Tablet tweaksJaakko Keränen
Heights of InputWidget vs. LabelWidget. The default sizes should be equal, e.g., so the navbar elements align properly. Don't set the input focus automatically when opening a dialog, since the keyboard may cover much of the UI.
2021-05-18SidebarWidget: Don't animate at launchJaakko Keränen
2021-05-17SidebarWidget: Animate show/hideJaakko Keränen
Also addressed clipping issues when using multiple roots.
2021-05-17SidebarWidget: Icon alignmentJaakko Keränen
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-16Changed UI icons related to bookmarksJaakko Keränen
Use the Book and Bookmark characters.
2021-05-15Mobile: Various improvements and fixesJaakko Keränen
- fill the safe area with theme background - don't set button hover states if dragging/scrolling - edge-draggable widgets must be flagged as such - Preferences top panel offset matches sibling panels' offset - allow toolbar to unhide when document is not scrollable
2021-05-14Mobile and iOS: Various fixes and cleanupJaakko Keränen
Several regressions occurred when the split view mode was implemented.
2021-05-13SidebarWidget: No actions in empty IdentitiesJaakko Keränen
2021-05-13SidebarWidget: Never disable for context menuJaakko Keränen
Sidebars were disabled so the hover item wouldn't change while accessing a context menu, but that's no longer necessary because the context item is tracked separately.
2021-05-05Bookmark editor has toggles for some special tagsJaakko Keränen
2021-05-04Split view pinning, "linksplit" special tagJaakko Keränen
A navigation aid: when in split mode, option to keep one of the tabs pinned to the current page so all links open to the side. Added "linksplit" bookmark tag to activate view splitting when opening a link on the page.