aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add support for XHTML This patch sends XHTML down the HTML renderer path ↵Thomas Groman2021-05-082-1/+2
| | | | | | instead of erroring out unsupported mime. It does not implement XHTML exactly to the spec. That could hopefully be looked at in the future. Signed-off-by: Thomas Groman <tgroman@nuegia.net>
* Further improves localization (#191). Allows switching and setting the ↵Felix (xq) Queißner2021-05-0817-78/+249
| | | | chosen localization properly.
* Inserts setting for current language.Felix (xq) Queißner2021-05-085-25/+314
|
* Fix for #233Mike Skec2021-05-022-1/+7
|
* BrowserTab: accept file dropsKarol Kosek2021-04-212-0/+15
|
* Push lazy-loaded links to the historyKarol Kosek2021-04-182-6/+4
| | | | | | | | | | | | | | | | | | | | When lazy-loaded links were making a new tab, they wasn't calling tab->navigateTo(url, BrowserTab::PushImmediate). What's important is only it can push urls to the history and making a new function just for that seemed like it'd just complicate things. So I've changed it to call tab->navigateTo() on every loading type. Unfortunately, that fixed our issue partly. Sure, links are now put into the history, but lazy-loaded tabs stopped being lazy-loaded anymore. Moreover, they were also reloading a page on first tab switch. So I've made also a check that stops requesting lazy-loaded urls, which made lazy-loading work as intended again, and moved the unsetting lazy-loaded boolean on reload instead of right after it to be able to request the file, which finally... Closes: #214
* main.cpp: support sessions when multiple users have opened KristallKarol Kosek2021-04-171-1/+7
| | | | | | | | | | | | | | Before this change, only the first user who had opened kristall had working ipc. The easiest fix was to prepend an username to the socket and that's exactly what it does on Windows. On Linux and other UNIX systems, we could do that too, but I came up with a bit different approach. I didn't like the fact that Qt puts sockets in /tmp, but luckily we can provide the full path for the socket (Windows uses pipes, so that's why it has its own case). I've changed it to put sockets in the runtime directory, because it's designed for that type of files and it's user-specific, so we don't even have to prepend the username to it.
* Unwarp tr() from QStringsKarol Kosek2021-04-165-25/+25
| | | | | | | | | | We don't need to wrap tr() with QString, because it returns QString anyway. Although it doesn't change the binary size (mostly because compilers were smart to remove that already), it helps to make the code a little bit cleaner. It's a somewhat continuation of c740189bcaa5bc6c073f8b3802303acf5ac36e47, but I thought back then it happened only there, so now I've removed it from all places.
* BrowserTab: reset image scaling for small imagesKarol Kosek2021-04-111-0/+2
| | | | | When you viewed a small image after the bigger one in the same tab, then the graphics_browser was still trying to scale them to the window size.
* BrowserTab: drop QStringKarol Kosek2021-04-111-4/+2
|
* BrowserTab: simplify unsupported media type errorKarol Kosek2021-04-111-32/+11
|
* BrowserTab: call the view source action from menu directlyKarol Kosek2021-04-111-3/+1
|
* GeminiRenderer: remove empty GeminiDocument class and unused includesKarol Kosek2021-04-112-22/+3
|
* Save settings on exitKarol Kosek2021-04-111-1/+1
| | | | | 0d1fd257093c58bfb606aaac530aed3b0877f7fd changed kristall::saveSettings() to settings.sync() which caused bookmarks not to be saved.
* BrowserTab: render image loading errors in a documentKarol Kosek2021-04-101-13/+24
|
* BrowserTab: add scrollbars to image viewKarol Kosek2021-04-101-0/+2
|
* BrowserTab: scale images only when they are bigger than the windowKarol Kosek2021-04-101-2/+6
| | | | Closes: #213
* BrowserTab: simplify image loadingKarol Kosek2021-04-101-8/+3
|
* Respect *FLAGS environment variables.tastytea2021-04-101-9/+5
| | | | | | | | | | This initializes QMAKE_CFLAGS, QMAKE_CXXFLAGS and QMAKE_LFLAGS with the corresponding environment variables on all OSs. The variables will be expanded when qmake is run[1]. This is a generalization of #171. [1] <https://doc.qt.io/archives/qt-4.8/qmake-advanced-usage.html#variables>
* Show application version in the about dialogKarol Kosek2021-04-091-2/+3
|
* MarkdownRenderer: remove resetFormatting function from blockquotesKarol Kosek2021-04-091-1/+0
| | | | It caused some spacing issues with nested blockquotes.
* MarkdownRenderer: suppress first blockKarol Kosek2021-04-051-1/+1
|
* MarkdownRenderer: apply replacing quotesKarol Kosek2021-04-051-1/+2
|
* Move replace_quotes to renderhelpersKarol Kosek2021-04-053-81/+81
|
* MarkdownRenderer: use blockquotes style from configKarol Kosek2021-04-051-0/+6
|
* MarkdownRenderer: use bullet list style from configKarol Kosek2021-04-051-3/+1
|
* MarkdownRenderer: use unordered list style from configKarol Kosek2021-04-051-4/+5
|
* MarkdownRenderer: follow centering first header optionKarol Kosek2021-04-051-1/+11
|
* MarkdownRenderer: use header formatting from configKarol Kosek2021-04-051-0/+3
| | | | | | | | | Now, resetFormatting() between a header and a list block will add an empty block (because that's what resetFormatting()'s doing), which might look a bit off. I couldn't find a better way to this, since using cursor.movePosition(QTextCursor::NextBlock) won't centre the first header in the next commit. ://
* MarkdownRenderer: add default format parameter to resetFormatting()Karol Kosek2021-04-051-5/+5
|
* MarkdownRenderer: move resetting format to a separate functionKarol Kosek2021-04-051-8/+9
|
* MarkdownRenderer: move page_title to RenderState structKarol Kosek2021-04-051-16/+19
|
* don't depend on bashomni2021-04-032-2/+2
|
* systemdialog.ui: set style buttons namesKarol Kosek2021-04-021-66/+44
| | | | The text is hidden unless the user doesn't have that icon installed.
* view source: remove question mark from title bar (#208)Mike Skec2021-03-301-1/+1
|
* BrowserTab: set port on relative redirectsKarol Kosek2021-03-281-0/+1
|
* Restores geometry from previous root window.Felix (xq) Queißner2021-03-171-27/+48
|
* sessions: fix lazyload bugMike Skec2021-03-171-0/+1
|
* rename PageMetadata struct to NamedUrlMike Skec2021-03-172-4/+4
| | | | PageMetadata is a little misleading. NamedUrl sounds stupid but is a bit more accurate
* sessions: add 'lazyloading' for restored tabsMike Skec2021-03-174-7/+31
|
* sessions: save page titles and read them before loading pageMike Skec2021-03-174-7/+38
|
* sessions: restore window tab indicesMike Skec2021-03-173-18/+37
|
* Adds option to have old or new session behaviour. Closes #187Felix (xq) Queißner2021-03-175-62/+102
|
* First draft of session management. Always restores the latest session.Felix (xq) Queißner2021-03-174-25/+130
|
* Strip carriage-returns in gemtextMike Skec2021-03-171-0/+2
|
* mark more strings for translationOIS2021-03-166-26/+26
|
* mnemonics: remove dockwidget hackMike Skec2021-03-122-11/+3
|
* Add accelerators to menubarMike Skec2021-03-122-24/+33
| | | | A bit of a hack was needed to add these to the dock menu items - the accelerators won't work in non-English languages
* kristall.pro: fix gumbo's pkg-config nameKarol Kosek2021-03-091-1/+1
|
* Fixes #41.Felix (xq) Queißner2021-03-081-2/+5
|