Commit Graph

577 Commits

Author SHA1 Message Date
Mike Skec 0d517157fc Domain-relative URL fix 2021-03-01 11:29:38 +01:00
Mike Skec ac43dbbe89 help.gemini: add centre-h1 info 2021-02-28 12:11:51 +01:00
Mike Skec 803559502d Add preference for centred H1
Also moves the 'enable text width' checkbox to next to the text width option, to save space.
2021-02-28 12:11:51 +01:00
Mike Skec c14d071e1e GeminiRenderer: add centred first H1 capability
Pref added in next commit
2021-02-28 12:11:51 +01:00
Mike Skec ca4c2f0a95 GeminiRenderer: list indentation fix 2021-02-27 13:43:19 +01:00
Mike Skec beaccb9d28 BrowserTab.cpp: allow parent/root on all except about: pages
This allows, e.g going to parent directory in local directory listings, and also allows doing so on error pages
2021-02-27 11:47:39 +01:00
Mike Skec 562938e11f help.gemini: add emoji preference info 2021-02-27 11:47:39 +01:00
Mike Skec 414c4aa0a7 DocumentStyle: fix build error on unsupported emoji builds 2021-02-27 11:47:39 +01:00
Mike Skec 23feba7e5a Adds emoji toggle preference. 2021-02-27 11:47:39 +01:00
Mike Skec 435532d97d GeminiRenderer: don't replace quotes in page title 2021-02-27 11:47:39 +01:00
Felix (xq) Queißner 5d8ab903e4 Fixes desktop file 2021-02-26 19:52:34 +01:00
Mike Skec 93ca4b363b DocumentStyle: fixes for font issues
This commit should hopefully fix all the font problems we were having. Instead of using font substitution for emojis, we just instead call QFont::setFamilies. Builds with Qt versions below 5.13 will not have proper emoji support.

0) emojis seem to work fine at least in my environment
1) when selecting theme with font that is not on the system, a respectable default is used instead
2) custom fonts now work great on Windows (seems to be due to the removal of insertSubstitutions, which didn't seem to work in my build)
3) the dodgey 'Kristall XX' stuff was removed, as it seems like we don't need it
2021-02-25 09:43:47 +01:00
Carlos Henrique Lima Melara a0970f024d Only test for dpkg-buildflags on linux systems 2021-02-24 15:11:07 +01:00
Carlos Henrique Lima Melara bca97fe4c7 Check if dpkg-buildflags is present and append flags in qmake for
hardening
2021-02-24 15:11:07 +01:00
Mike Skec 5d39646cef KristallTextBrowser: touch scroll fix
Tries to use touch scrolling only if a TouchScreen device is present. This prevents Touch*Pad* devices from allowing annoying click+mouse scrolling
2021-02-24 13:10:20 +01:00
Carlos Henrique Lima Melara 1db0a60a42 Fix some typos pointed by Debian lintian in src/about/help.gemini 2021-02-24 09:10:20 +01:00
Mike Skec 7261fc4bbf SettingsDialog: search engine combobox fix
Custom search engines were not being displayed in the combobox after closing/reopening the settings dialog, it was defaulting to the default option. This fixes that.

Also adds the Veronica gopher search engine to list of default options
2021-02-23 22:24:59 +01:00
Karol Kosek aafd9eb899 SettingsDialog: set minimum width to the style settings 2021-02-23 22:07:50 +01:00
Karol Kosek 975cca8c71 SettingsDialog: make style settings scrollable 2021-02-23 22:07:50 +01:00
Karol Kosek c23988a2ec GopherClient: add text-search support 2021-02-23 18:55:26 +01:00
Karol Kosek 291bfd02b4 Makefile: remove MAKEFLAGS parameter from sub-make calls
This broke running make with flags like -k or -s set,
because make apparently removes hyphens from those flags,
making it to think that we want to run a not existing target.

Also, flags are stored in env, so child processes know which flags
are in use and we don't have to provide them again.
2021-02-23 12:30:42 +01:00
Mike Skec 731dead13f MainWindow: set tab tooltips 2021-02-23 11:31:33 +01:00
Mike Skec 195b5560ab KristallTextBrowser: replace typographer quotes with ASCII when copying text
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)
2021-02-23 11:31:33 +01:00
Mike Skec 0f23a86b9d More consistent line height in headings and preformatted blocks
Also updates help.gemini to reflect changes
2021-02-23 11:31:33 +01:00
Mike Skec 53ff9f5a0c Fix window geometry/state not being saved in some environments
The window state and geometry are now saved either after app.exec() finished, or if closeEvent is emitted on the MainWindow.

This allows the window geometry/state restoration to be a lot more reliable. E.g in my configuration (Fluxbox) - if I closed the window using my own defined keybinding, the state would not get saved
2021-02-23 11:31:33 +01:00
Mike Skec 3170b38373 Scroll positions no longer lost after confirming settigns 2021-02-23 11:31:33 +01:00
Mike Skec 50b3b64690 Slightly nicer light fav/cert icons 2021-02-23 11:31:33 +01:00
Mike Skec 31426ba0ef Add light icons for favourite/certificate buttons for dark themes 2021-02-23 11:31:33 +01:00
Karol Kosek 804592dd57 help.gemini: remove duplicated shortcut
Co-authored-by: Mike Skec <skec@protonmail.ch>
2021-02-23 11:30:29 +01:00
Karol Kosek 2c096333fb help.gemini: add shortcuts from #86 and #95 to the manual 2021-02-23 11:30:29 +01:00
Mike Skec a219a8b3e5 Add 'indent size' option
Also includes some about:help additions
2021-02-23 09:29:53 +01:00
Mike Skec b03693711a Fix experimental text highlights
The that was used to achieve this is a bit messy/crazy, however, it seems to work quite well for all the cases I tested it on. This will finally close #141
2021-02-20 12:10:48 +01:00
Mike Skec 995ff2c30a List item symbol prefernece 2021-02-20 12:10:48 +01:00
Mike Skec 0659d87271 Change default blockquote indent to 1
I think it's a nicer default
2021-02-20 12:10:48 +01:00
Mike Skec 58ebb115f1 DocumentStyle: better default blockquote font 2021-02-20 12:10:48 +01:00
Mike Skec fd233bc12f Update help.gemini
Also add icons to root/parent navigation menu options, and move the preferences for them in the settings dialog
2021-02-18 11:23:23 +01:00
Mike Skec 42813aa9ef Add optional root/parent toolbar buttons 2021-02-18 11:23:23 +01:00
Mike Skec 415a5bd7b8 Continuation of #134 2021-02-18 11:23:23 +01:00
Mike Skec 6e127eb49d Add unlimited cache life option 2021-02-18 11:23:23 +01:00
Mike Skec fb230927ab Change Root shortcut to Alt+/
more consistent with other nav options
2021-02-17 09:24:05 +01:00
Mike Skec b3c5c6fe82 Fix: remove N-L from tab title. Also limit tab title length
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.
2021-02-17 09:24:05 +01:00
Mike Skec b82ecad546 Add basic root/parent navigation options to menu, with shortcuts 2021-02-17 09:24:05 +01:00
Mike Skec 9bf17318f9 Add seperate 'icon theme' preference 2021-02-16 11:11:23 +01:00
Mike Skec 7820c0fb5c BrowserTab: use cleaner titles for pages without them
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.
2021-02-16 11:11:23 +01:00
Mike Skec 2d5e076e13 KristallTextBrowser: use IBeam as default cursor 2021-02-16 11:11:23 +01:00
Mike Skec ad07a321b4 blockquotes: better default value when using old themes 2021-02-16 00:19:29 +01:00
Mike Skec 4135e0d368 Improved blockquotes 2021-02-16 00:19:29 +01:00
Mike Skec 5acffd9b54 SettingsDialog: fix build failure 2021-02-15 10:48:07 +01:00
Mike Skec 13aa1092eb help.gemini: add help entry for search engine 2021-02-15 10:48:07 +01:00
Mike Skec 4805c389a7 Added search engine preference 2021-02-15 10:48:07 +01:00