osu-cs492-w23 / final-project-team-11

final-project-team-11 created by GitHub Classroom
0 stars 2 forks source link

Add a context menu to delete / categorize / pin notes #12

Closed cdgco closed 1 year ago

cdgco commented 1 year ago

When pressing and holding on a note, a context / action menu should pop up giving the user the option to delete, pin, or categorize a note.

cdgco commented 1 year ago

In order to setup navigation on the button, I already added a click listener to the cards, and added a second long click listener that can be used for this feature.

cdgco commented 1 year ago

It would also be a good idea to add a menu inside of the note editing page to perform these actions as well.

JetLiTheQT commented 1 year ago

It'd be cute if we could change the background image of the cards as well.

cdgco commented 1 year ago

Btw, for this, what I had in mind are "bottom sheets" https://m2.material.io/components/sheets-bottom#usage

https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#BottomSheetScaffold(kotlin.Function1,androidx.compose.ui.Modifier,androidx.compose.material.BottomSheetScaffoldState,kotlin.Function0,kotlin.Function1,kotlin.Function0,androidx.compose.material.FabPosition,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.unit.Dp,kotlin.Function1,kotlin.Boolean,androidx.compose.ui.graphics.Shape,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Function1)

cdgco commented 1 year ago

Another option to add here could be a button to enable or disable private mode on a note

cdgco commented 1 year ago

Just added the private note toggle