William Casarin
4e7d168d22
refactor: rename widgets to ui
...
consolidate ui related things like widgets into our ui module
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-12 16:16:19 -07:00
William Casarin
9b7c63c800
refactor: move note into its own widget
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-12 16:03:16 -07:00
William Casarin
99b163da7e
textmode: fix coloring of abbreviated names
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-12 15:09:07 -07:00
William Casarin
bfdd066654
fix warnings
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-11 15:00:58 -07:00
William Casarin
116ba27f3f
ircmode: tighten username
...
will probably have to change the design of this for mobile
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-11 13:36:29 -07:00
William Casarin
9d1e8ce666
irc mode
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-11 11:09:30 -07:00
William Casarin
7ecacc69a5
log: reduce spammy new note log
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-09 18:49:52 -07:00
William Casarin
4526434405
update to latest nostrdb, adding tag support
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-07 14:53:50 -07:00
William Casarin
6222a7db63
Fix all warnings
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-04-01 10:19:47 -07:00
kernelkind
4bd01682da
Add ui_test_harness binary implementation
...
Adds ability to run UI components isolated from main app.
`cargo run --bin ui_test_harness -- AccountLoginView`
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-04-01 10:15:50 -07:00
kernelkind
242053c6e0
Constrain app minimum size
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-04-01 10:15:47 -07:00
kernelkind
80b76c5381
Use app_creation for common app setup functions
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-04-01 10:15:45 -07:00
kernelkind
a927c56870
Create account login panel
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-04-01 10:15:42 -07:00
kernelkind
343d3dc569
Add login manager
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-04-01 10:15:38 -07:00
kernelkind
83197bac78
Update egui 0.26.1 -> 0.27.1
...
Needed for shadows
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-04-01 10:15:27 -07:00
kernelkind
7a113825dd
Add login key parsing
2024-03-26 10:04:59 +00:00
William Casarin
89f7f838a7
load timelines from commandline
...
great way to test queries statelessly
2024-03-22 11:15:09 +01:00
William Casarin
2936012308
filters: fix hashtag filters
...
We might need to move to something a bit more generic that works
for all generic tag filters.
2024-03-22 10:23:41 +01:00
William Casarin
450709afa7
test: use my timeline query by default for testing
2024-03-21 18:23:33 +01:00
William Casarin
f364748005
ui: reduce vertical padding for more compact timelines
2024-03-21 15:54:08 +01:00
William Casarin
9ebbaf40e5
style: initial logic for mobile style
...
we definitely watch pure black for oled mobile screens, better battery
life.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-03-21 14:31:00 +01:00
William Casarin
ea952c4c58
actionbar: support both dark and light buttons
...
since there is no way to do icon masks, we simply use two different
textures for dark and light mode reply buttons.
I used this command to create the dark mode button:
convert reply.png -channel RGB -negate reply-dark.png
Signed-off-by: William Casarin <jb55@jb55.com >
2024-03-21 14:28:49 +01:00
William Casarin
c0979d1707
widgets: begin organizing ui components into widgets
...
egui widgets are nice because there are many helper methods on the
egui::Ui struct for adding widgets to the screen in various ways. For
example, add_sized which designates an area to paint a widget. This is
useful in the note_contents case, as it allows us to reserve
available_space-20.0 pixels of the available area, saving 20.0 pixels
for a side-actionbar popout.
I'm not sure I'll use the side actionbar yet, but I've been
experimenting with that as an option to save vertical space in the
timeline.
I still need to make the side actionbar into a widget as well. It
currently uses the CollapsingHeader widget, which is designed for
expanding elements vertically. We may need to make our own widget for
animating an horizontal expansion if we want to achieve a similar effect
for the side actionbar.
2024-03-13 13:38:02 +00:00
William Casarin
247feb9e26
filter: unify nostrdb and remote limits
...
Before we were setting filter limits in two different places. Let's
unify them so we don't have to sources of truth for filter limits.
2024-03-13 13:24:06 +00:00
William Casarin
50aa21b2f0
app: make ndb public
...
We will be using this in some submodules, so expose it for now
2024-03-13 13:23:13 +00:00
William Casarin
08fad55773
weird actionbar experiment
2024-03-12 10:11:27 +00:00
William Casarin
d4879aefe9
actionbar placeholder
2024-03-09 01:39:16 -08:00
William Casarin
4a5a9d4319
black background
2024-03-09 01:21:07 -08:00
William Casarin
87f385b683
profile picture image cache
...
coding from a plane so this is helping alot with PFPs
2024-02-27 14:26:02 -08:00
William Casarin
40fd85da58
relay: don't query unknown authors if we have none to query
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-16 11:39:22 -08:00
William Casarin
3870bc9506
pfp: small fix in profile pic loading
...
I want to tweak the size of the profile pic, this is a small change
that I noticed toward that goal.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-16 11:39:22 -08:00
William Casarin
4ea82cd332
debug: fix annoying decode error message
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-16 11:39:22 -08:00
William Casarin
300dfc8a4e
fonts: remove old font loading code
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-16 11:39:22 -08:00
William Casarin
97aaa651d8
style: allow font style customization in the future
...
I had a work in progress commit that changed font styles that needed
this change, so doing it here for now.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-16 11:39:22 -08:00
William Casarin
b0d0e45133
fonts: implement roberto's typography for notedeck
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 16:18:24 -08:00
William Casarin
5ecc43786f
ui: remove extra padding on main panel
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 14:53:09 -08:00
William Casarin
f3201bee21
ui: add reltime rendering
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 13:56:07 -08:00
William Casarin
2ce2d4cc70
notecache: add initial in-memory notecache
...
This is useful for things like relative time strings and other
transient note cache state
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 13:07:01 -08:00
William Casarin
c246b9d92f
time: add time_ago function from Damus iOS
...
Useful relative time formatting
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 13:07:01 -08:00
William Casarin
2f54a05705
timecache: add timecache help for timed caches
...
Some things we definitely don't want to generate every frame, such as
relative-time formatted strings, as that would create a heap allocation
each frame.
Introduce TimeCached<T> which is responsible for updating some state
after some expiry.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 13:07:01 -08:00
William Casarin
5521779f42
android: fix args
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 13:07:01 -08:00
William Casarin
1dab4757df
perf: always show profiling info for now
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 13:07:01 -08:00
William Casarin
2a79bdbbab
query: reduce initial filter size for now
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-15 13:07:01 -08:00
William Casarin
0f2a5c3055
enable japanese, chinese, korean fonts
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-12 01:07:39 -08:00
William Casarin
0945b21710
disable inline image renderer for now
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-12 01:07:22 -08:00
William Casarin
7dcfde7109
enable passing queries via argument
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-12 01:06:59 -08:00
William Casarin
20a68a19f2
images: add copy link to image context menu
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-11 14:40:14 -08:00
William Casarin
72a53c0192
media: render images on posts
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-11 13:58:38 -08:00
William Casarin
30b55abd72
links: set hyperlink color to purple
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-11 13:03:11 -08:00
William Casarin
63e195852b
note: make links clickable
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-11 13:00:07 -08:00