William Casarin
f12ccc69a4
add hover to profile map demo
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-24 12:49:06 -07:00
William Casarin
7ec31d0eae
fun large profile grid preview
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-24 12:49:06 -07:00
William Casarin
e8168b0004
ui: add profile picture hover animation
...
I wanted to practice doing animation in egui, so here is a simple
profile picture hover affect. When you mouse over a profile picture, it
get slightly bigger.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-24 12:49:06 -07:00
William Casarin
61deeb03e1
note: support nprofile mentions
...
realized we were missing this bit
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-24 12:49:06 -07:00
William Casarin
32923abfc2
perf: profiling note content rendering
...
Made some small speed improvements
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-22 08:58:30 -07:00
William Casarin
c944cac810
style: realtime hover interactions
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 17:57:32 -07:00
William Casarin
1d44b08f13
ui: make pixel sizes correct, use more of the figma
...
I noticed the pixel sizes were off which made it harder to match the
pixel dimensions of rob's figma designs. This restores the pixel size
and adjust the font sizes so that things look somewhat ok with the
default pixel settings.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 17:45:09 -07:00
William Casarin
24633b84bb
ui: introduce profile picture widget
...
We are starting to use profile pics in different places, let's make it a
widget. We'll also probably need to have adjustable sizes and such soon.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 16:49:49 -07:00
William Casarin
863ccd866b
render_pfp: only depend on imgcache
...
This will allow us to build previews a bit nicer
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 16:36:14 -07:00
William Casarin
ee94f27987
profile: add about and username to profile previews
...
Also adjust colors to match design
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 16:28:12 -07:00
William Casarin
893fd582dc
profiles: introduce DisplayNames
...
This is exactly the same as the DisplayName enum in Damus iOS. Due to
the various inconsistencies in `name` and `display_name` between
clients, we have to generalize DisplayName into two variants: one name
or two names.
If we have two names, we treat it in the standard way of display_name is
the real name, and `name` is the username.
If only one is set, then it is considered both the username and "real name".
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 15:55:47 -07:00
William Casarin
2edba9942c
ui: add banners to profile previews
...
profile previews still need lots of work, but this was a challenge to
get an aspectRatio: fill mechanism for images which the banner takes
advantage of.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 15:03:05 -07:00
William Casarin
2f6f92e62c
style: set 0 duration tooltip delay
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 15:03:05 -07:00
William Casarin
7f61d9aeb7
images: add aspect_fill
...
This is similar to SwiftUI's .aspectRatio(contentMode: .fill) so that
we can get a filling banner image
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 15:03:05 -07:00
William Casarin
55111b8b25
test: update test profile with a banner
...
I need this to test profile preview banners
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 15:03:05 -07:00
William Casarin
a408c96d91
ui: remove some old note ui comments
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 15:03:05 -07:00
William Casarin
54bf2a0767
previews: remove central panel frame
...
This was adding padding we don't want
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-21 13:42:49 -07:00
William Casarin
bf7775467d
readme: document previews
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 22:16:54 -07:00
William Casarin
05fe164a49
ui: add initial Profile hover previews
...
The idea with these is that on notedeck you can just hover your cursor
over a profile link to see the profile. I just have a stub for now, but
full design coming soon after.
Also simplify the preview system even further with a macro. In the
future I imagine we can grep every preview in the codebase, and then
include this as a string inside this macro. This is some kind of
template metaprogramming insanity but in theory it could work.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 22:00:19 -07:00
William Casarin
2d566cc637
ui: move RelayView into ui module
...
Trying to keep all UI stuff in there
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 21:53:47 -07:00
William Casarin
51c25b88cc
timeline: use strips instead of panels
...
panels grow when their childs a larger than its container. strips do not
do this, which is better for timelines
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 19:55:02 -07:00
kernelkind
c4d9b5cd3c
Extract the sample relay to test_data for reuse
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 17:39:21 -07:00
William Casarin
9642b9243d
a quick note about the View trait
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 17:38:47 -07:00
William Casarin
22e4b72729
check: remove duplicate and disable wasm checks
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 17:37:41 -07:00
William Casarin
73f54d1c4f
ci: disable wasm builds for now
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:32:51 -07:00
William Casarin
99ac578ebd
fix clippy warnings
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:30:08 -07:00
William Casarin
a71e8206fb
introduce View and Previews traits
...
In this commit we refactor the preview mechanism, and switch to
responsive views by default.
To create a preview, your view now has to implement the Preview trait.
This is very similar to SwiftUI's preview mechanism.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
a5e1fbf328
Add preview for RelayView
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
349e3baa99
Add relay view
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
805e18261c
Add warn color and highlight color
...
Use highlight color for 'connected' relay status. There doesn't seem to
be a better place to put it.
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
5ee415c1b4
enostr: expose RelayStatus
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
f6c46a1eb5
Add monospace text style
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
bf23e778b3
Seperate mobile dark color theme into its own func
...
I believe this is less messy
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
dae57d78ef
Add precommit hook to suggest proper formatting
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
kernelkind
c76f322a48
Apply cargo fmt
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-19 14:13:11 -07:00
William Casarin
ff5e5ed74a
make notedeck front and center
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-17 14:37:11 -07:00
William Casarin
6e939a414f
readme: show notedeck preview
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-17 14:33:19 -07:00
William Casarin
d247382219
ui: add frame around note previews
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-14 18:23:33 -07:00
William Casarin
a8185d9a75
note: don't allow nested note previews
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-14 17:36:05 -07:00
William Casarin
6f2aa56b9e
ids: find more unknown ids from inline notes
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-14 16:30:12 -07:00
William Casarin
402a1337f2
ui: switch to flags for note options
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-14 16:23:59 -07:00
William Casarin
e348950e7a
crates: add bitflags
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-14 16:23:36 -07:00
William Casarin
72b9b0dab9
ui: only inline preview kind1 notes for now
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-14 16:23:01 -07:00
William Casarin
dcd53beea8
remove minimum window size
...
This is preventing me from doing a single column layout on desktop
Cc: kernelkind
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-14 12:11:30 -07:00
William Casarin
3b9cd3f3c4
mobile: black panel bg color
...
for battery life
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-12 21:14:56 -07:00
William Casarin
0a9e7698c1
theme: update to correct colors based on figma design
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-12 21:00:48 -07:00
William Casarin
483e8e85d6
fix until filters
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-12 20:30:28 -07:00
kernelkind
f0d56da4f5
Use custom style in app
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-12 19:53:23 -07:00
kernelkind
cf07427204
Refactor 'ui tests' conception to previews
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-12 19:52:34 -07:00
kernelkind
03e751011b
Add MobileAccountLoginView
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-04-12 19:52:34 -07:00