aboutsummaryrefslogtreecommitdiff
path: root/src/browsertab.cpp
Commit message (Collapse)AuthorAgeFilesLines
* KristallTextBrowser: replace typographer quotes with ASCII when copying textMike Skec2021-02-231-1/+1
| | | | Text which is selected in a kristalltextbrowser now has it's quotes replaced with ASCII quotes. This was done as copying fancy quotes is seen as an annoyance to most people. It is still possible to copy these quotes, if they are the only thing in the selection (whitespace also allowed, and commas, and fullstops)
* Scroll positions no longer lost after confirming settignsMike Skec2021-02-231-0/+5
|
* Add light icons for favourite/certificate buttons for dark themesMike Skec2021-02-231-0/+28
|
* Add optional root/parent toolbar buttonsMike Skec2021-02-181-3/+47
|
* Fix: remove N-L from tab title. Also limit tab title lengthMike Skec2021-02-171-1/+5
| | | | | | 0) when visiting for example, https://lists.orbitalfox.eu/archives/gemini/2020/000304.html the page title was getting a newline character in it (for some reason). This has now been fixed. 1) the tab title is now limited to 45 characters, until the string is chopped and an ellipsis (...) is appended. This limit was added to prevent pages with enormous titles from clogging up the tab bar. For this reason, the limit is quite high - users browing Gemini don't usually have that many tabs open (compared to the web), so i think we can get away with this high number.
* BrowserTab: use cleaner titles for pages without themMike Skec2021-02-161-1/+10
| | | | For sites that do not have a page title (i.e no '#' heading) the document's filename is used. If no filename exists, then the hostname of the page is used.
* KristallTextBrowser: use IBeam as default cursorMike Skec2021-02-161-1/+1
|
* Improved blockquotesMike Skec2021-02-161-0/+5
|
* Added search engine preferenceMike Skec2021-02-151-2/+13
|
* BrowserTab.cpp: basic search engine functionality addedMike Skec2021-02-151-1/+15
|
* BrowserTab: fix build errors on Qt < 5.13Mike Skec2021-02-141-0/+4
|
* BrowserTab: Update regex source link to correct oneMike Skec2021-02-141-1/+1
|
* BrowserTab: finding quotations now works for all charactersMike Skec2021-02-141-7/+27
| | | | Since #150, when typographer quotes were enabled, searching for text with quotation marks using the searchbox was made slightly more difficult as the search pattern would not match each of the different quotation mark types. This patch addresses this by using a regex which contains the search query, and creates a pattern that matches the various quote types.
* Margins are now split into seperate horizontal/vertical optionsMike Skec2021-02-131-2/+3
|
* Adds per-style pref for text widthMike Skec2021-02-131-2/+5
|
* Adds maximum line width functionalityMike Skec2021-02-131-0/+21
| | | | Hard-coded values for now. This works by setting the left/right margins of the page dynamically (e.g on window resize). The margins are calculated to limit the text's width between a value. If the window width is less than this text width, the text fill width is the same width as the page, the margins in this case will be the user's configured margins (not yet implemented).
* searchbox: fix moving to top/bottom of page during searchMike Skec2021-02-091-2/+4
| | | | When searching for something that wasn't in the page, the cursor would be moved to the top or bottom of the page (depending on search direction). This fixes that by only moving the page if the search term is actually in the current buffer.
* Search box: better reimplementationMike Skec2021-02-091-12/+15
| | | | This was necessary to fix a bug, where the URL bar becomes unusable while search box is visible.
* #144: small search improvementsMike Skec2021-02-091-4/+8
|
* Add 'open in default browser' option on HTTP linksMike Skec2021-02-081-4/+15
|
* BrowserTab: fix showing an empty redirect question boxKarol Kosek2021-01-161-1/+1
| | | | | | The question box was showed when the redirect has a different scheme or host, without checking first if you want to see the it, which could lead to an empty dialog box instead of skipping it entirely.
* Replace history on redirectKarol Kosek2021-01-111-0/+1
|
* Revert "Fixes a 'resource not found' bug"Karol Kosek2021-01-111-15/+6
| | | | | | | That commit broke resolving relative urls (e.g. when you were browsing README.md, the link that goes to BUILDING resolved to README.md/BUILDING). This reverts commit 601887655e7f128c1c938a24fc38d002a8aecb64.
* status bar: show request status when loading pagesMike Skec2021-01-101-0/+7
| | | | status text for loading HTTP/S is only a simple 'loading webpage'. The other protocols display more information
* status bar: New file cache indicatorMike Skec2021-01-101-0/+2
| | | | Mime label was also simplified so that only type/subtype are shown.
* Fixes a 'resource not found' bugMike Skec2021-01-101-6/+15
| | | | When navigating to many sites, such as gemini://rawtext.club:1965/~sloum/geminilist and not having a trailing slash at the end of the URL, local links on the page would be incorrectly generated by QUrl::resolved, which would cause links to give a 'resource not found' error if they weren't at the root path of the server. This patch fixes this by making sure that all links given to the renderers include trailing slashes.
* BrowserTab: add Stop/Refresh action to the menuKarol Kosek2021-01-081-0/+10
|
* BrowserTab: disable impossible move actionsKarol Kosek2021-01-081-2/+4
|
* BrowserTab: hide move actions on selectionKarol Kosek2021-01-081-9/+9
|
* BrowserTab: show "Copy to clipboard" action only on selectionKarol Kosek2021-01-081-8/+6
|
* Functional cache limit, albeit a little inefficientMike Skec2021-01-081-5/+0
|
* cache: item expiry and max item sizeMike Skec2021-01-081-0/+1
| | | | currently no total limit yet
* Add Ctrl+R reload page shortcutPaper2021-01-071-0/+4
|
* favourite popup: adding group combobox!Mike Skec2021-01-071-7/+64
|
* Remembered scroll adjustmentMike Skec2021-01-071-7/+11
| | | | Now only scrolls back if the user navigated back/forward. This is a little more intuitive and makes it less confusing when user clicks a link to a cached page
* cache code refactorMike Skec2021-01-061-18/+20
|
* Implement #21 with cached pagesMike Skec2021-01-061-10/+41
| | | | Maybe in future we can make this work for all pages in history
* Tabs with client cert enabled no longer read from or write to cacheMike Skec2021-01-061-2/+6
| | | | Helps keeps 'interactive pages' like Astrobotany updated. Error message pages are also not cached now, as they are now considered 'internal locations'
* Basic caching functionality implementedMike Skec2021-01-061-10/+50
|
* BrowserTab: use simpler method for getting the HTML page titleKarol Kosek2021-01-051-19/+1
|
* Remove toggleIsFavourite - no longer neededMike Skec2021-01-041-33/+2
| | | | also rename addToFavouritesPopup to showFavouritesPopup
* New popup when adding to favourites!Mike Skec2021-01-041-1/+35
|
* Added 'busy' cursor while current tab is loadingMike Skec2021-01-041-0/+12
|
* favourites: implement #77, and add rename context menusMike Skec2021-01-021-2/+2
|
* Get rid of unneeded hacky code for fancy url barMike Skec2021-01-021-2/+3
|
* Fix bug with fancy url bar stylingMike Skec2021-01-021-8/+6
| | | | We are now also using a custom colour for it in the default light/dark themes, just because we can get a little more control over how it looks. The OS Default theme uses the 'mid' colour from palette
* Compile with Qt 5.9Karol Kosek2021-01-021-1/+1
|
* Fixes for building on ubuntu 20.04 / qt5.12George Dorn2021-01-021-5/+5
|
* Added UI density option.Mike Skec2021-01-011-0/+20
| | | | 'Compact' is the default - saves screen space a bit. The old layout is available in the 'Classic' option
* urlbar styling: only remove styles if not already removedMike Skec2020-12-311-3/+9
|