Skip to content

Dark theme#492

Merged
mario merged 5 commits into
masterfrom
dt2
Aug 9, 2019
Merged

Dark theme#492
mario merged 5 commits into
masterfrom
dt2

Conversation

@dan0xii

@dan0xii dan0xii commented Mar 5, 2019

Copy link
Copy Markdown
Contributor

Initial work on a dark theme. There's still quite a bit of styling to do.
Closes #207.

  • Conversation & information bubbles in the chat window need to be styled in dark mode.
  • Emoji screen background is black, should match the chat window background colour.
  • Conversation info screen has a black background when it should be dark grey to match the settings window.
  • Long press on a conversation and the dialog at the bottom of the screen is not styled.

A couple of notes:

@dan0xii dan0xii added design Related to the design 1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) labels Mar 5, 2019
@mario

mario commented Mar 5, 2019

Copy link
Copy Markdown
Contributor

I want to get rid of #407 TextFieldBoxes anyway as it's nothing but troubles :-/

@mario

mario commented Mar 5, 2019

Copy link
Copy Markdown
Contributor

As for the idea files - don't kill the existing ones? :)

@mario

mario commented Mar 5, 2019

Copy link
Copy Markdown
Contributor

As for the EmojiPicker, all the colors can be customized:

https://github.com/vanniktech/Emoji/tree/master/emoji/src/main/res

See values and values-night.

@dan0xii

dan0xii commented Mar 5, 2019

Copy link
Copy Markdown
Contributor Author

As for the idea files - don't kill the existing ones? :)

I don't know why that happened. :) I'll fix it.

@dan0xii
dan0xii force-pushed the dt2 branch 2 times, most recently from 4b5d2af to de1b372 Compare March 7, 2019 13:23
@nextcloud nextcloud deleted a comment Mar 7, 2019
@mario

mario commented Mar 19, 2019

Copy link
Copy Markdown
Contributor

@dan0xii hey there! :) Do you need any assistance here?

@mario

mario commented Apr 6, 2019

Copy link
Copy Markdown
Contributor

I have managed to remove the usage of TextFieldBoxes from one place, and failed to do so from the other (ServerSelectionController) due to theming issues, but it's a bit late so maybe I can try later :)

@thurloat

thurloat commented May 3, 2019

Copy link
Copy Markdown

I know this may be outside the scope of this, but it would be sick to match the colour scheme of the nextcloud install you're connected to. Or have an RGB colour picker for the window dressings and button colours.

@dan0xii

dan0xii commented May 6, 2019

Copy link
Copy Markdown
Contributor Author

@dan0xii hey there! :) Do you need any assistance here?

I've been caught up irl but I'll be working on this again now. Regardless, help wouldn't be refused. :)

@mario

mario commented May 7, 2019

Copy link
Copy Markdown
Contributor

You came back @dan0xii and I went to a short vacation :) But still super happy to answer any questions you might have.

@dan0xii
dan0xii force-pushed the dt2 branch 4 times, most recently from 8cbf152 to 3c61a87 Compare June 12, 2019 21:08
@dan0xii
dan0xii force-pushed the dt2 branch 4 times, most recently from 05afe99 to 0159463 Compare June 24, 2019 20:08
@dan0xii

dan0xii commented Jun 24, 2019

Copy link
Copy Markdown
Contributor Author

Hello Mario, I think this is ready for review now. There is probably a bit of cleanup to be done but I'd appreciate feedback on the theme. Thanks.

@mario

mario commented Jun 25, 2019

Copy link
Copy Markdown
Contributor

HI @dan0xii thanks for the contribution. I'll take a look at this tomorrow with priority.

@mario

mario commented Jun 25, 2019

Copy link
Copy Markdown
Contributor

Hi there. First of all, nice job but I did not expect anything less from you! :)

Few comments, as always:

  • Conversation list -> conversation names are not really visible
  • Inside a conversation - mentions inside a system message are not really visible
  • There’s a similar issue with names if you type “@“ in the input box
  • Could you look into the emoji thing? Because some of the emojis are really not visible on this particular background color
  • For some reason, when in conversation, some messages have dark grey background, some white, some blue - why the three types?

I hope that’s enough for initial feedback, and I really can’t thank you enough for all the work you’re putting into this!

@nextcloud nextcloud deleted a comment Jun 27, 2019
@dan0xii

dan0xii commented Jul 1, 2019

Copy link
Copy Markdown
Contributor Author

Conversation list -> conversation names are not really visible

How does this look? I've lightened up the text colour in dark mode.
talk1

Inside a conversation - mentions inside a system message are not really visible

How about this:
talk2

There’s a similar issue with names if you type “@“ in the input box

I'm working on this. The name_text TextView inside rv_item_mention.xml doesn't seem to adhere to system day-night mode.

Could you look into the emoji thing? Because some of the emojis are really not visible on this particular background color

Could you given an example?

For some reason, when in conversation, some messages have dark grey background, some white, some blue - why the three types?

I hadn't noticed this. It wasn't intentional and should now be fixed (see screenshot above).

What is the proper way to exchange data between controllers? I can't pick it up from their documentation. I'm thinking along the lines of how you'd use onActivityResult(). In SettingsController.java I'm calling getActivity().recreate() which doesn't apply to the conversation item header in the main conversation list so it may be that I need to call it again in that class. Hope that makes sense.

@mario

mario commented Jul 5, 2019

Copy link
Copy Markdown
Contributor

@dan0xii looking into this now. Sorry for the delay.

@mario

mario commented Jul 5, 2019

Copy link
Copy Markdown
Contributor

@dan0xii so I've justed tested changing the theme and it's changed in the main conversations list as well. Can you maybe screenshot the issue you're seeing? Conversation and settings are part of the same activity, so there should be no issues there.

As for emojis:

Screen Shot 2019-07-05 at 16 48 38
Screen Shot 2019-07-05 at 16 48 45

As for the mentions:

Do you think if a mention is black, it should have a white border? Unsure. What do you think?

@mario

mario commented Jul 18, 2019

Copy link
Copy Markdown
Contributor

@dan0xii let me know if I can help in any way :)

@mario

mario commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

@dan0xii in your absence, I have temporarily taken over this PR :)

Changes done so far:

  • rebased on master
  • changed the way settings work:

On pre-28: Respect battery saving (default), light, dark
On 28 and up: Respect system settings (default), light, dark

  • Updated dependencies so we don't need to recreate an activity anymore

So this leaves emojis issues and @ which I'll take a look into tomorrow, as well as conversation item. Would appreciate your review of my changes!

@mario

mario commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

Emojis panel issue has been solved by a switch to google emoji set via a different issue.

@mario

mario commented Jul 29, 2019

Copy link
Copy Markdown
Contributor

This leaves the mention chips (once you mention somebody in a conversation) issue the only one standing.

@mario mario added this to the v6.2.0 milestone Aug 7, 2019
dan0xii and others added 5 commits August 9, 2019 17:55
Signed-off-by: Daniel Bailey <daniel.bailey@grappleIT.co.uk>
Signed-off-by: Daniel Bailey <daniel.bailey@grappleIT.co.uk>
Signed-off-by: Daniel Bailey <daniel.bailey@grappleIT.co.uk>
Signed-off-by: Mario Danic <mario@lovelyhq.com>
Signed-off-by: Mario Danic <mario@lovelyhq.com>
@mario

mario commented Aug 9, 2019

Copy link
Copy Markdown
Contributor

@dan0xii I'll go ahead and merge this. Once the master (you @dan0xii !) come back we can look into fixing any remaining issues, if any.

Thanks for all your hard work, you are awesome!

@mario
mario merged commit 0e67796 into master Aug 9, 2019
@mario
mario deleted the dt2 branch August 9, 2019 15:56
@nextcloud nextcloud deleted a comment Aug 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1. to develop Accepted and waiting to be taken care of (should be only set by nextcloud employees) design Related to the design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Dark theme

3 participants