Commit graph

88 commits

Author SHA1 Message Date
dece e730cdc0b2 drawer: add better icons 2023-04-12 20:33:34 +02:00
dece 503075f4d0 PageFragment: scroll to top on new page
Fixes an issue where new pages sometimes are shown at the position of
the previous page instead of from their start.
2023-04-12 19:57:29 +02:00
dece 0059b7ff4f app: use real Navigation component flow
This fixes a lot of oddities in navigation, but also introduces UI
changes, like moving the address bar to a specific sub-toolbar in the
PageFragment. Unsure if this is the classiest choice but will do for
now. Probably introduces more issues.
2023-04-12 19:56:16 +02:00
dece 5fe56880cb gradle: update deps 2023-04-12 19:52:51 +02:00
dece 45813c576a gradle: update targetSdk to 33 and fix minor stuff
You know, the usual "I forgot this project for 5 seconds and now I have
to spend 20 minutes to stop Gradle from drowning me in warnings" commit.
2023-01-04 18:25:12 +01:00
dece f7b1b9072c PageFragment: do not count URL as visited twice 2022-02-18 21:36:14 +01:00
dece 44aa42e67d PageFragment: fix back button issue after download 2022-02-17 17:58:14 +01:00
dece 7658212a76 PageViewModel: fix redirections w/o current URL 2022-02-17 17:57:46 +01:00
dece 2f2a70040f PageFragment: fix issue with empty home URL 2022-02-17 17:56:41 +01:00
dece d9802dc44d PageViewModel: hande audio and video links
Big first step in issue #11.
2022-02-17 00:46:07 +01:00
dece 11854d4312 PageViewModel: download images to media store 2022-02-16 23:36:35 +01:00
dece d447370a41 MimeType: use it to process responses accordingly
This prevents Comet from showing JPGs as Gemtext, whew… Any unhandled
MIME type now presents an alert, and we should slowly support more and
more types.
2022-02-16 11:48:23 +01:00
dece a76e84cf1d UriUtilsTest: clean 2022-02-16 11:06:52 +01:00
dece fd5471b615 Uri: add resolveLinkUri with tests 2022-02-16 11:06:26 +01:00
dece fcf12f09d2 Request: fix coroutine pool for server data 2022-02-15 17:09:25 +01:00
dece 59e664ec5c clean and add some docs 2022-02-15 17:09:11 +01:00
dece cd1732c599 MimeType: add class with tests, woah! 2022-02-15 17:08:39 +01:00
dece 1fbfc38d6f colors: use colors more adequately
Turns out Solarized has a bunch of rules like maintaining the same
contrast between normal text on normal background with selected text on
slightly highlighted background and so on. This commit attempts to fix
issues related to that, and indeed it seems to look better!
2022-02-14 19:15:02 +01:00
dece 50793d1440 PageViewModel: use appropriate client certs 2022-02-13 23:56:09 +01:00
dece 3aea6f42c9 HistoryAdapter: show last visits 2022-02-13 19:10:55 +01:00
dece c4d0e66322 PageAdapter: show URL schemes on links
Currently only show them on absolute URLs and if they are not Gemini
links (https, gopher, etc).
2022-02-13 18:14:53 +01:00
dece 8c1bebf315 PageAdapter: show visited links with another color 2022-02-13 18:13:32 +01:00
dece a822287de2 Request: catch SSLProtocolException
For some reason this does not make the whole page reception to fail.
User is not warned about this exception, which may or may not be bad.
2022-02-06 18:40:57 +01:00
dece 4282567f5f Request: add a TLS version preference 2022-02-04 19:09:44 +01:00
dece 1d69c075a1 Identities: let the user specify a subject CN 2022-02-04 19:09:14 +01:00
dece b6d855fdeb styles: fix some issues and rename things around 2022-02-04 19:08:08 +01:00
dece 02ba3a1401 IdentityDialog: show and edit URL paths 2022-02-04 15:28:57 +01:00
dece ea6f54cd73 InputDialog: move to own class 2022-02-04 15:28:41 +01:00
dece 9a91c72d1e Database: use a simpler method for identity usages 2022-02-04 14:58:40 +01:00
dece 11bea0e585 Identities: add deletion and fix sync issues
- Deletion works and clear the corresponding keystore entries.
- No more sync issues with the listing when creating/updating/deleting.
2022-02-04 12:55:20 +01:00
dece f9c341c35a styles: attempt to change link ripple effect
Does not work; it works if we use the style as a theme (????) but won't
correctly use the day/night colors then.
2022-02-04 10:58:56 +01:00
dece e077a3f4c5 Identities: WIP, the list does not look so bad now 2022-02-02 22:40:50 +01:00
dece f45c3facfd update kotlin plugin and some deps 2022-02-02 16:26:10 +01:00
dece 636a096d6f rename a few things around and clean imports 2022-01-28 13:43:32 +01:00
dece 3190d608ca PageFragment: fix loading URLs appearance 2022-01-28 12:10:36 +01:00
dece 30d7ce72b8 PageAdapter: fix empty lines issues in pre blocks 2022-01-28 12:10:36 +01:00
dece 117c70100f consider blockquotes as a blocks instead of lines
This is roughly the same system as for preformatted blocks.

Even though the spec implies that a line starting with ">" is a
blockquote type line and should be a quote on its own, it is so
frequently used as a block-like type that taking the spec literally
causes rendering issues on many capsules. To be clear, we get blocks
like this:

> Lorem ipsum dolor sit amet,
> consectetur adipiscing elit.
>
> Sed do eiusmod tempor incididunt
> ut labore et dolore magna aliqua.

where we should instead have something like:

> Lorem ipsum dolor sit amet, consectetur adipiscing elit.
> Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

To the people's defense, it is usual to quote a message using the first
syntax. As this issue is minor and the spec is not very adamant on
things here, I don't think there is much wrongdoing in treating the
first syntax as the norm, but the code is open to changes!
2022-01-28 12:10:36 +01:00
dece 9c0603cf67 PageFragment: show the URL being loaded
The URL is shown in italic to distinguish between the current URL and
the URL that is currently being loaded. Unsure that it is enough, it
does not look very good to me anyway.
2022-01-28 12:10:36 +01:00
dece e8283d2ed4 PageAdapter: do not underline links, it's boring 2022-01-28 12:10:36 +01:00
dece 2b694a0bc1 Gemtext: fix preformatted issue 2022-01-28 12:10:36 +01:00
dece 54db4e17a6 use Solarized colors 2022-01-28 12:10:36 +01:00
dece caa6f03e20 PageFragment: fix currentUrl messy property 2022-01-26 18:34:22 +01:00
dece 1f2be8cdee Identities: WIP
This commit overwrites the version 1 database schema. Yeah as long as
Comet is not out of alpha, I'm not dealing with this horrendous
migration process.
2022-01-26 01:26:29 +01:00
dece 020f48149b PageViewModel: docs 2022-01-25 19:36:59 +01:00
dece f02220f430 PageFragment: move some data to the view model
This should advance on #4.
2022-01-25 19:32:05 +01:00
dece 4ff8e82271 cleanup and renaming things around 2022-01-25 18:55:46 +01:00
dece 8231a7080a HistoryFragment: basic history browsable list
Have a card for each entry, rendered from last visited first to oldest.
Will probably start choking once the history has too many entries.
2022-01-24 20:09:04 +01:00
dece 473b1e012c colors: fix text for night theme
Probably more to fix!
2022-01-20 00:16:50 +01:00
dece 9358c0abca navigation: use global action for home/settings
This really does not feel right...
2022-01-20 00:16:27 +01:00
dece 6c556c3035 schemas 2022-01-19 22:54:33 +01:00