-
Notifications
You must be signed in to change notification settings - Fork 499
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
Fixes part of #4195 : Added dark mode support to QuestionPlayer and Exploration #4382
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhaktideshmukh Please add screenshots for Exploration player too.
<stroke | ||
android:width="2dp" | ||
android:color="@color/color_def_oppia_dark_blue" /> | ||
android:color="@color/component_color_shared_input_interaction_edit_text_border_color" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you naming it like
input_interaction_edit_text
and above you are naming it as text_input_layout_
shouldn't these be consistent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you naming it like
input_interaction_edit_text
and above you are naming it astext_input_layout_
shouldn't these be consistent?
Correct these should be consistent but in styles.xml
, for input interaction some are named as ...text_input...
and some as ..input_interaction...
so this was little confusion that which convention should be followed since for already existing color I have not created a new color and have used the existing one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case lets fix this confusion in this PR atleast for this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case lets fix this confusion in this PR atleast for this file.
I think ...input_interaction...
sounds better to me.
So should I replace ...text_input...
with ...input_interaction...
?
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make following changes:
- The hint color should be changed https://xd.adobe.com/view/c05e9343-60f6-4c11-84ac-c756b75b940f-950d/screen/4744bfae-84be-44fa-a27d-9a252fdfc2f9/specs/
- I don't have any reference for cursor-color but I believe we can use this one https://xd.adobe.com/view/c05e9343-60f6-4c11-84ac-c756b75b940f-950d/screen/d80a87ee-06df-4d82-ab8e-8311b9adccf6/specs/
- When input-interaction is not. selected I think the border should have similar width as that of selected state. Reference: https://xd.adobe.com/view/c05e9343-60f6-4c11-84ac-c756b75b940f-950d/screen/4744bfae-84be-44fa-a27d-9a252fdfc2f9/specs/
Have updated the screenshots according to the new changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhaktideshmukh PTAL Thanks. Somewhere on lines of this solution https://stackoverflow.com/a/7238526
@@ -12,7 +12,7 @@ | |||
<style name="OppiaThemeWithoutActionBar" parent="Theme.MaterialComponents.Light.NoActionBar.Bridge"> | |||
<item name="colorPrimary">@color/color_palette_primary_color</item> | |||
<item name="colorPrimaryDark">@color/color_palette_primary_dark_color</item> | |||
<item name="colorAccent">@color/color_palette_accent_color</item> | |||
<item name="colorAccent">@color/component_color_shared_edit_text_cursor_color</item> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be changed here because colorAccent
must be getting used at various other places too. and it will affect other UI elements when changed.
Changing it in theme is fine but we should be changing the exact curor_color
to some similar attribute and not its parent attribute like colorAccent
.
Also the color in lightmode has changed because of latest commit. It should not be black, it should be blue https://xd.adobe.com/view/3dca36c2-5115-419c-b25e-0f10526b077c-6899/screen/5ef661fa-8995-45b2-b10d-64c1b5cc7890/
Hi @bhaktideshmukh, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
@rt4914, I have made the changes the way you suggested but upon clicking input interaction, app is crashing. |
Hi @bhaktideshmukh. This sounds like it might be a good case for a debug doc (see https://github.com/oppia/oppia/wiki/Debugging-Docs) as that provides more context as to what you tried, what you're specifically observing, and what you think might be going wrong but are unsure of how to proceed. Note that it doesn't actually need to be a Google doc--you can add the same information as a comment to this thread to provide context for reviewers. Note that without this information, it can be quite difficult to help since reviewers generally do not know as much about what you've tried as you do. |
…ndroid into input_interaction
I guess there was some glitch from my side, I have updated the files and app is not crashing now and is working properly so I don't think there is any need for the debugging doc. |
<stroke | ||
android:width="2dp" | ||
android:color="@color/color_def_oppia_dark_blue" /> | ||
android:color="@color/component_color_shared_input_interaction_edit_text_border_color" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case lets fix this confusion in this PR atleast for this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhaktideshmukh PTAL at all open comments.
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks.
Explanation
Fixes part of #4195
Mock link :-- https://xd.adobe.com/view/c05e9343-60f6-4c11-84ac-c756b75b940f-950d/screen/249c3349-605b-4569-bbe9-1a017ab90101/specs/
This PR handles:--
Screenshots
Essential Checklist
For UI-specific PRs only
If your PR includes UI-related changes, then: