Commit Graph

585 Commits

Author SHA1 Message Date
William Casarin 1a490eb069 use stable toolchain
this was overriding rustup to use nightly

Signed-off-by: William Casarin <jb55@jb55.com>
2024-10-16 08:41:31 -07:00
William Casarin 54dcbd724b Merge 'column titlebar #345'
William Casarin (2):
      update to use upstream egui-nav branch

kernelkind (13):
      basic add column impl
      remote sub new timeline
      add more add column options
      animate add column options
      push column picker immediately to new column
      move get first router to Columns
      tmp use kernelkind egui-nav
      title bar
      unsubscribe timeline on deletion
      fix deck author bug & rename titles
      tmp: kernelkind/egui-nav
      updated back arrow
      tmp: kernelkind/egui-nav
2024-10-11 12:56:15 +02:00
William Casarin f7c6e2774e update to use upstream egui-nav branch
Signed-off-by: William Casarin <jb55@jb55.com>
2024-10-11 12:54:49 +02:00
kernelkind b1549a52c7 tmp: kernelkind/egui-nav
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 21:43:31 -04:00
kernelkind a2fc754e1b updated back arrow
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 21:38:43 -04:00
kernelkind 983640b85a tmp: kernelkind/egui-nav
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 21:37:16 -04:00
kernelkind ee5aa32469 fix deck author bug & rename titles
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-08 19:10:25 -04:00
kernelkind 0d994172a0 unsubscribe timeline on deletion
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-07 14:02:37 -04:00
kernelkind 1bf9d5d934 title bar
add title bar to columns with title specific to the column type.
also add column deletion button

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-07 14:02:33 -04:00
kernelkind 0a22210c89 tmp use kernelkind egui-nav
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-07 12:42:51 -04:00
kernelkind 45223dbc25 move get first router to Columns
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-01 12:59:00 -04:00
kernelkind 57069ff7c0 push column picker immediately to new column
instead of pushing to temporary column first

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-10-01 12:51:14 -04:00
kernelkind ebe4bf3046 animate add column options
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
kernelkind 80be174f41 add more add column options
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
kernelkind e2dd1b3298 remote sub new timeline
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
kernelkind 731f206424 basic add column impl
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-30 10:27:48 -04:00
Ken Sedgwick a17b2dcb17 Untangle zoom when in TextEdit
Addresses ([#140])

I don't think the zoom code in handle_key_events was necessary because
gui zooming already appears to be handled by egui::gui_zoom.

Description of keybindings:
https://github.com/emilk/egui/blob/59d71831fd43139bf9b427b779a241099b9c9826/crates/egui/src/gui_zoom.rs#L5-L26

Zooming using the described keybindings works fine with a textedit
focused.

This PR removes the ContextAction::SetPixelsPerPoint aggressively;
maybe it should remain for other future uses?
2024-09-27 12:44:42 -07:00
William Casarin 6c94987a7a Merge multi-subscriber #287
kernelkind (2):
      multi subscriber impl
      implement multi_subscriber for Thread
2024-09-26 14:04:25 -07:00
kernelkind 7d9a23c87d route back after clicking 'post' button
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-26 13:51:04 -07:00
William Casarin 5ddeb0e383 remove dead code in side panel
Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 13:49:51 -07:00
William Casarin 56af979c21 panel: rasterize damus logo
Image is set to double the pixel size to reduce artifacts.

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 13:43:53 -07:00
William Casarin 7fe3d5e99f Merge side panel update #327
A few merge conflicts resolved, and changes the image to svg

kernelkind (7):
      initial compose note view
      change side panel width to 64.0
      Add AnimationHelper
      update sidebar to match new design
      remove app from sidebar
      remove profile_preview_controller
      add logo to side panel

Closes: https://github.com/damus-io/notedeck/pull/327
2024-09-26 13:21:11 -07:00
kernelkind 9c572e18a3 add logo to side panel
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-26 13:17:21 -07:00
William Casarin 7e4bddcacb Merge hitbox improvements #319
Ken Sedgwick (6):
      debug: implemented fmt::Debug for Pubkey
      debug: implemented fmt::Debug for NoteId
      hitbox: more naming cleanup
      hitbox: extend the hitbox to the full width of the container
      hitbox: handle hits on quoted notes correctly
      hitbox: cache note size instead of rect

Closes: https://github.com/damus-io/notedeck/pull/319
2024-09-26 12:54:09 -07:00
Ken Sedgwick 21298b43f5 hitbox: cache note size instead of rect 2024-09-26 12:52:12 -07:00
Ken Sedgwick c25fde4a06 hitbox: handle hits on quoted notes correctly 2024-09-26 12:51:33 -07:00
Ken Sedgwick 5b7c9c9234 hitbox: extend the hitbox to the full width of the container 2024-09-26 12:42:57 -07:00
Ken Sedgwick 1f64350197 hitbox: more naming cleanup 2024-09-26 12:42:35 -07:00
Ken Sedgwick 35e8e536e6 debug: implemented fmt::Debug for NoteId 2024-09-26 12:42:35 -07:00
Ken Sedgwick f00b301e88 debug: implemented fmt::Debug for Pubkey 2024-09-26 12:42:35 -07:00
William Casarin dbb164970c remove PostActionExecutor
Just use PostAction::execute

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 12:41:38 -07:00
William Casarin 13d6873eb1 Merge note context menu #328
This merges kernel's note context menu with a bunch of refactorings on
top, closing #328 and #318

William Casarin (7):
      refactor: remove processs_note_selection
      refactor: make options_button a NoteOptions
      note: switch to muted menu_options_button color
      context: move note context button to its own file
      context: fix hitbox, float on far right
      context: set cursor icon on hover

kernelkind (3):
      Add 'more options' to each note
      can left click note more options button
      process 'more options' for previews
2024-09-26 12:33:56 -07:00
William Casarin d416044f47 context: set cursor icon on hover
So we know its clickable. I mean the animation signals that as well, but
still.

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 12:31:23 -07:00
William Casarin 5120686679 context: fix hitbox, float on far right
This updates the context menu to "float" instead of using the layout
engine. This is so that we don't take up an unnecessary amount of space
when we increase the hitbox height.

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 12:18:10 -07:00
William Casarin 2dba41186d context: move note context button to its own file
Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 10:51:08 -07:00
William Casarin 0c3b2ae817 note: switch to muted menu_options_button color
Otherwise it stands out too much

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 09:40:53 -07:00
William Casarin a9cb734ef6 refactor: make options_button a NoteOptions
No reason why this needs to be a standalone bool

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 09:32:21 -07:00
William Casarin 1a94c21d96 refactor: remove processs_note_selection
Moved this to NoteOptionSelection::process

Signed-off-by: William Casarin <jb55@jb55.com>
2024-09-26 09:22:05 -07:00
kernelkind 171889b3aa process 'more options' for previews
forgot to add this part

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-25 13:15:12 -04:00
kernelkind e60793ff37 remove profile_preview_controller
no longer needed

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-24 16:52:58 -04:00
kernelkind 2832def161 remove app from sidebar
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-24 16:52:58 -04:00
kernelkind 0ea3132ee2 update sidebar to match new design
also adds interaction on hover & click

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-24 16:52:58 -04:00
kernelkind d76678dffc Add AnimationHelper
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-24 16:52:58 -04:00
kernelkind c66cf6a98c change side panel width to 64.0
matches figma design

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-24 16:52:58 -04:00
kernelkind fd75e93605 initial compose note view
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-24 16:52:58 -04:00
kernelkind ad319b643f can left click note more options button
egui doesn't support custom buttons so
`stationary_arbitrary_menu_button` had to be hacked together

Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-19 19:04:28 -04:00
kernelkind 6f5f090fbe Add 'more options' to each note
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-19 19:04:28 -04:00
William Casarin 2208e68726 Merge 'Initial quote reposts #305'
kernelkind (6):
      post quote reposts impl
      make PostActionExecutor for code reuse
      add repost button
      address PR comments
      make views pure
      minor cleanup
2024-09-18 14:15:43 -07:00
kernelkind 814736f9b3 implement multi_subscriber for Thread
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-18 13:53:34 -04:00
kernelkind d52c50acc2 multi subscriber impl
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-09-18 13:53:34 -04:00