Commit Graph

14 Commits

Author SHA1 Message Date
Badri Sunderarajan be74fc8e43
Tweak chat bubble selection and metadata colours
I can do this confidently now that I've figured out how to test
them live on the phone! (Colours there render pretty differently
from the ones on my laptop screen, so I've got to view it directly
to make it work.)
2024-03-24 21:44:39 +05:30
Badri Sunderarajan 41bc583b06
Customise style for own and system chat bubbles
Partially addresses the concerns in #2! Own messages are now on
the opposite side in their own colour, and system messages (such
as "* is online", detected by having no "from" attribute) are
displayed without any bubble at all.

Along the way, we also fixed bug #14 where own messages would
show the other person's name underneath. That was because we were
looking at the nickname attribute, which, as it turns out, gives
the nickname for the entire conversation or something, not for the
chat itself. I think it wasn't a problem in groupchats, but anyway,
that's something to tackle another day...
2024-03-24 18:04:50 +05:30
Badri Sunderarajan ec007df1e6
Make softkey height into a variable
Not that we'll need to change the height, but we need to refer to
it in some places and variables makes it more clear what exactly
we're referring to (as opposed to bare numbers).
2024-03-24 16:39:33 +05:30
Badri Sunderarajan e92e76ad8f
Resize icons to add a bit of margin
This makes them look better on the KaiOS app menu. Come to think
of it, maybe I should add *even* more margin but ehh I'm done for
now
2024-03-24 13:04:51 +05:30
Badri Sunderarajan f79289e5fc
Customise system statusbar colour when this app is open
Explanation for what exactly happened: I added a margin to the
header, made the app fullscreen, and activated a magic setting in
the manifest to render the system statusbar on *top of* the app.
Thanks to the following blog post for teaching me how:

  https://kaios.dev/2023/03/complete-manifest.webapp-guide/
2024-03-23 19:14:19 +05:30
Badri Sunderarajan aa0f1c5641 Fix checkbox styling
The original kaios-native-ui was using a fancy mask-image property,
which was unfortunately a bit *too* fancy for KaiOS to handle.
Instead, we've fallen back to good ol' conditions and a number of
new SVGs for the selected version of the checkbox. The drawback is,
of course, that selected checkboxes will perforce be white (which
can be easily overridden to black if so desired, but not so easily
to any other colour: Inkscape is your friend though).
2022-09-27 19:17:32 +05:30
Badri Sunderarajan c8c5d3178c Fix styling for selected elements
KaiOS 2 doesn't support :focus-within, so we're replacing it with
a (resurrected) wee bit of JavaScript.

Closes #8
2022-09-27 19:15:16 +05:30
Badri Sunderarajan 356911ed52 Update Inkscape export info for white icon
Should've done this earlier but :P
2022-09-27 18:09:54 +05:30
Badri Sunderarajan 1dbe3183c0 Add splash screen
This gives us something prettier than a blank page while the app
is loading (although, of course, it could also prove a bit more
cryptic to debug if something goes wrong).

Closes #5
2022-09-27 17:54:25 +05:30
Badri Sunderarajan d671932569 Implement conversation view!
This has a few hacks and is a bit buggy, but at least it's usable
and you can begin texting people now :D
2022-09-17 14:43:23 +05:30
Badri Sunderarajan 3eb3af64e8 Update (or rather, create) icon 2022-09-14 19:04:49 +05:30
Badri Sunderarajan 1c91812afc Add basic running ConverseJS! 2022-09-14 18:34:00 +05:30
Badri Sunderarajan 537cdf3c45 Set up home screen with KaiOS-native-UI 2022-09-14 18:29:32 +05:30
Badri Sunderarajan 9fbf10063f Initial commit, with basically nothing 2022-09-14 18:28:36 +05:30