summaryrefslogtreecommitdiff
path: root/src/ui/widget.h
AgeCommit message (Collapse)Author
2021-03-04Changing UI scaling at runtimeJaakko Keränen
UI scaling factor is applied when closing the Preferences dialog. IssueID #83
2021-02-26Visual design improvementsJaakko Keränen
URL input field has a maximum width. Adjusted navbar appearance and margins. Tuned UI palette and added UI accent color preference.
2021-02-23Widget: Inserting children at a specific indexJaakko Keränen
2021-02-22Dialog buttons on the rightJaakko Keränen
Follow typical GUI conventions by placing dialog buttons on the right edge. This leaves space for additional actions on the left.
2021-02-21Animated widget offsets; phone sidebarsJaakko Keränen
2021-02-20iOS: Removed 2nd sidebar; background tweaksJaakko Keränen
2021-02-19Touch: Scrollbars can be dragged via touchJaakko Keränen
Widgets can be flagged as being touch-draggable, which makes them receive finger down/motion/up events directly, and no momentum scrolling is applied.
2021-02-18iOS: Working on touch event handlingJaakko Keränen
Handle finger down, motion, and up events to implement basic taps, long presses, and inertia scrolling. Much finetuning still to be done, and certain widgets like input fields and scrollbars need a direct drag mode (they were working fine via the "mouse" events already).
2021-02-02Improved focus switching for dialogsJaakko Keränen
Widgets can now be defined as being the "focus root", i.e., the topmost widget under which focus switching happens. Normally this is the window root widget, but dialogs use this flag to confine focus switching inside the dialog. InputWidget in Overwrite mode will focus switch to the next focusable widget when the text field becomes full.
2021-01-17Improved menu button behaviorJaakko Keränen
Clicking a menu button while the menu is open should just close the menu. Menus should not close if the mouse pointer leaves the window.
2020-12-04Added a second sidebar; removed hover outlineJaakko Keränen
A sidebar on the right is a better solution than a kludgy non-interactive special-purpose outline that appears when hoving the mouse on the document scrollbar.
2020-11-27Widget: Allow scrolling tall widgetsJaakko Keränen
Useful for menus and dialogs that wouldn't fit inside the window.
2020-10-31Preferences: Changed apperance of tabsJaakko Keränen
2020-10-29LabelWidget: Flag for wrapping textJaakko Keränen
Widgets now have an optional virtual method that gets called when the size of the widget changes during arranging. Wrapped text in LabelWidget uses this to update its height.
2020-10-24DocumentWidget: Page load progress indicatorJaakko Keränen
Show clearly that something is happening, even though we don't know the exact duration of the operation.
2020-09-21Radio button widget flagJaakko Keränen
2020-09-20Widget: Expanded flags to 64 bitsJaakko Keränen
Ran out of room in 32 bits, more flags needed for arranging.
2020-09-20Centering widgets and sheet contentsJaakko Keränen
Added a new arrange flag for centering a child horizontally. The two-column layout in Preferences has expanding vertical paddings so the page contents are vertically centered.
2020-09-20Added tabs to make room for more preferencesJaakko Keränen
The Preferences sheet now has tabs (General, Proxies) so that more options can fit there in the future.
2020-09-16Dismiss menus when clicking outside themJaakko Keränen
Added a new widget flag for notifying about missed mouse clicks. Only used in popup menus at the moment. IssueID #2
2020-09-06Widget: API convenience; fixed position flagJaakko Keränen
2020-09-05Widget: More granularity for drawing widgetsJaakko Keränen
Allow draw background and children separately.
2020-08-23Widget: Optional padding for child arrangementJaakko Keränen
2020-08-22Added BSD 2-clause license and copyright noticesJaakko Keränen
2020-08-16Added Pure Black and Pure White themesJaakko Keränen
Font changes cause window redrawing to pause so document layout doesn’t get an intermediate update with a different width. Sheets are mouse-modal.
2020-08-12Save and load app state (tabs, history)Jaakko Keränen
2020-08-10Tab bar is hidden when there is a single tabJaakko Keränen
Needed some fixes in the widget arrangement behavior.
2020-08-09Closing and duplicating tabsJaakko Keränen
2020-08-09Closing tabs/windowJaakko Keränen
2020-08-08Creating new tabs; cleaned up DocumentWidgetJaakko Keränen
2020-08-02Flag for tight label padding; aligning labels visuallyJaakko Keränen
2020-07-27Widget: Added flag for collapsing during arrangeJaakko Keränen
2020-07-27Finding previous textJaakko Keränen
2020-07-26Finding text in the documentJaakko Keränen
2020-07-25Widget: Drawing optional framesJaakko Keränen
2020-07-23DocumentWidget: Scrolling via scrollbar and keysJaakko Keränen
2020-07-23Added ScrollWidget for scroll barsJaakko Keränen
2020-07-21Initial commitJaakko Keränen
Borrowing the app skeleton from Bitwise Harmony.