summaryrefslogtreecommitdiff
path: root/src/ui/sidebarwidget.c
AgeCommit message (Collapse)Author
2021-11-28Bookmarks: Internal tags have a dot prefixJaakko Keränen
Internal behavior tags are now written in bookmarks.ini with a dot prefix (like hidden files on Unix), and at runtime they are removed from the tags string. This makes things more efficient as it isn't necessary to compile regular expressions all the time. TODO: Add "Edit Feed..." into the Bookmarks context menu, and a new menu item for listing all subscriptions. IssueID #331
2021-11-24SidebarWidget: Tighter layout for Feeds actionsJaakko Keränen
2021-11-24SidebarWidget: Non-item-related context menusJaakko Keränen
IssueID #388
2021-11-24SidebarWidget: Save feeds mode (all/unread)Jaakko Keränen
2021-11-23SidebarWidget: Hover state colorsJaakko Keränen
2021-11-23SidebarWidget: CleanupJaakko Keränen
2021-11-23SidebarWidget: Redesigned Feeds action toolbarJaakko Keränen
The action toolbar now has a button for marking all as read, and keyboard shortcuts for switching between Unread and All modes.
2021-11-23Select folder when adding/editing bookmarksJaakko Keränen
Most recently used folder is persistently stored in bookmarks.ini. IssueID #358
2021-11-22Input queries vs. navigation historyJaakko Keränen
Input query responses (status 1x) are not preserved in History so that when navigating back, they are skipped. The corresponding URLs are flagged as Transient so they are not shown in the History sidebar. The History sidebar shows the query string in URLs. IssueID #382
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.