Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update button style to new Elm Theme #32

Merged
merged 6 commits into from
Oct 10, 2024

Conversation

omerhabib26
Copy link

@omerhabib26 omerhabib26 commented Aug 13, 2024

Description:

  • Define generic button style for the whole app
  • Remove the custom/random button initialization
  • Make dialog's buttons appearance close to native

fix: LEARNER-10083 + LEARNER-10084

Ref: https://www.figma.com/design/q6z6cpJsbBBcnPZLPS7KEu/Marketplace-Visual-Design?node-id=3932-2331&t=C9RFjYFEPRxwC2Hc-0

Screenshot 2024-09-03 at 7 48 34 PM
Screenshot 2024-09-03 at 7 48 44 PM
Screenshot 2024-09-03 at 7 48 55 PM
Screenshot 2024-09-03 at 7 49 06 PM
Screenshot 2024-09-03 at 7 49 14 PM
Screenshot 2024-09-03 at 7 49 26 PM
Screenshot 2024-09-03 at 7 49 34 PM
Screenshot 2024-09-03 at 7 49 51 PM
Screenshot 2024-09-03 at 7 49 59 PM
Screenshot 2024-09-03 at 7 50 09 PM
Screenshot 2024-09-03 at 7 50 36 PM
Screenshot 2024-09-03 at 7 50 59 PM
Screenshot 2024-09-03 at 7 51 15 PM
Screenshot 2024-09-03 at 7 52 20 PM
Screenshot 2024-10-09 at 6 48 45 PM
Screenshot 2024-10-09 at 6 48 53 PM
Screenshot 2024-10-09 at 6 51 45 PM
Screenshot 2024-10-09 at 6 51 58 PM

- Define generic button style for the whole app
- Remove the custom/random button initialization
- Make dialog's buttons appearance close to native

fix: LEARNER-10084
- Apply elm theme on Modals and Dialogs Alerts
- Optimise Code

fix: LEARNER-10083
@omerhabib26 omerhabib26 force-pushed the 2U/omer/LEARNER-10084 branch from 3dcdab4 to d9a9235 Compare September 3, 2024 15:01
@@ -204,7 +204,7 @@ private fun CourseVideosUI(
}

var isDownloadConfirmationShowed by rememberSaveable {
mutableStateOf(false)
mutableStateOf(true)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the point of this change? Right now the download confirmation dialog now appears every time the user opens a course. Should be false by default

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated by mistake, reverted.

modifier: Modifier = Modifier.fillMaxWidth(),
text: String = "",
onClick: () -> Unit,
enabled: Boolean = true,
textColor: Color = MaterialTheme.appColors.primaryButtonText,
backgroundColor: Color = MaterialTheme.appColors.primaryButtonBackground,
backgroundColor: Color = Color(0xFFED5C13),//MaterialTheme.appColors.primaryButtonBackground,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it would be better to move the color to resources?

Copy link
Member

@farhan-arshad-dev farhan-arshad-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need product approval for the design changes on the following files:

  • Fullscreen(error message).
  • ChapterEndDialogScreen
  • SetupCourseAccessErrorButtons
  • CourseOutlineScreen
  • NotSupportedUnitFragment
  • DashboardGalleryView(Find new course button)
  • DiscussionThreadsFragment
  • CalendarAccessDialogFragment

@farhan-arshad-dev
Copy link
Member

Need product approval for the design changes on the following files:

  • Fullscreen(error message).
  • ChapterEndDialogScreen
  • SetupCourseAccessErrorButtons
  • CourseOutlineScreen
  • NotSupportedUnitFragment
  • DashboardGalleryView(Find new course button)
  • DiscussionThreadsFragment
  • CalendarAccessDialogFragment

Have we received product approval for these changes?

Also need to address 2 comments, other than that ready to be approved.

@moiz994
Copy link

moiz994 commented Oct 9, 2024

Need product approval for the design changes on the following files:

  • Fullscreen(error message).
  • ChapterEndDialogScreen
  • SetupCourseAccessErrorButtons
  • CourseOutlineScreen
  • NotSupportedUnitFragment
  • DashboardGalleryView(Find new course button)
  • DiscussionThreadsFragment
  • CalendarAccessDialogFragment

Have we received product approval for these changes?

Also need to address 2 comments, other than that ready to be approved.

seem fine to me

@omerhabib26 omerhabib26 merged commit ab076f2 into 2U/develop Oct 10, 2024
4 checks passed
@omerhabib26 omerhabib26 deleted the 2U/omer/LEARNER-10084 branch October 10, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants