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

High Contrast Light Theme #3819

Closed
wants to merge 3 commits into from
Closed

Conversation

tessgadwa
Copy link

Configuration and CSS files for option high contrast condensed light Riot desktop theme.

Usersettings.js in matrix-react-sdk must also be updated in order for the theme to be accessible from the Settings menu.

Signed-off-by: Tess Gadwa [email protected]

@lukebarnard1
Copy link
Contributor

I've had a quick play with this, and it's generally looking good. I'll review the code in a bit (the changes to webpack config are unexpected).

There were three things that I noticed (feel free to ignore the black outlines, my screenshot thing is a bit crap):

  1. Redacted messages look like they're from the dark theme
    2017-05-05-175046_284x155_scrot

  2. Undecryptable messages appear mis-aligned
    2017-05-05-174920_231x157_scrot

  3. Likewise for membership events
    2017-05-05-174903_289x104_scrot

I also noticed that the line-height of messages has been decreased and I'm not sure if that was intentional:
2017-05-05-175853_507x124_scrot
2017-05-05-175759_499x97_scrot

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

A few comments on the code side from me


module.exports = {
entry: {
"bundle": "./src/vector/index.js",
"indexeddb-worker": "./src/vector/indexedbd-worker.js",
Copy link
Member

Choose a reason for hiding this comment

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

I'm assuming this and the above is a merge gone wrong: this will break the indexeddb worker.

Copy link
Author

Choose a reason for hiding this comment

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

Webpack.config.js has been updated; other changes forthcoming.

},
module: {
preLoaders: [
{ test: /\.js$/, loader: "source-map-loader" },
{ test: /\.js$/, loader: "source-map-loader" }
Copy link
Member

Choose a reason for hiding this comment

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

This change also presumably wasn't intentional?


// olm takes ages for webpack to process, and it's already heavily
// optimised, so there is little to gain by us uglifying it.
/olm[\\\/](javascript[\\\/])?olm\.js$/,
/olm\/(javascript\/)?olm\.js$/,
Copy link
Member

Choose a reason for hiding this comment

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

Was this not necessary?

Copy link
Member

Choose a reason for hiding this comment

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

yeah the [\\\/] is needed for os interoperability

{
allChunks: true
}
),
Copy link
Member

Choose a reason for hiding this comment

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

The previous formatting was correct according to our code style.

@dbkr dbkr changed the title Develop High Contrast Light Theme May 5, 2017
@tessgadwa
Copy link
Author

tessgadwa commented May 5, 2017

Line height of messages was decreased, and very much intentional! A more condensed display seems to be one of the things people are asking for, even more so than high contrast.

Copy link
Contributor

@lukebarnard1 lukebarnard1 left a comment

Choose a reason for hiding this comment

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

The changes to webpack appear to be reverting something else. I would go and get the latest webpack.config from develop and then apply your one-line change to it.

@@ -0,0 +1,4 @@
@import "_base.scss";
@import "_dark.scss";
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this explains why redacted messages appear to come from the dark theme! Perhaps this should be _light ?

color: rgba(0, 0, 0, 1) !important;
font-weight:600;
opacity: 1 !important;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

There should be an empty line at the bottom here, and that } should not have a tab before it

.mx_SearchBox_search {
color: rgba(0, 0, 0, 1) !important;
font-weight: bold !important;
opacity: 1 !important;
Copy link
Contributor

Choose a reason for hiding this comment

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

The above three lines need indenting.

@tessgadwa
Copy link
Author

tessgadwa commented May 5, 2017

Line height of messages was decreased, and very much intentional! A more condensed display seems to be one of the things people are asking for, even more so than high contrast.

@lukebarnard1
Copy link
Contributor

one of the things people are asking for, even more so than high contrast

I think we should separate the two concerns in that case. I think having an optional "condensed" mode is more what people are after (despite me not being able to find that GH issue).

@tessgadwa
Copy link
Author

tessgadwa commented May 5, 2017

Hey Luke,

Thanks for the thorough code review; I'll plan to make these changes over the weekend. I am all for separating out high contrast and condensed themes -- I'll see if I can pull up any of the convo threads from DesignUX that asked for this.

Based on feedback from Alan Day and others, refined the theming submitted in the original PR submitted March 14 to:

- Make body text less heavy
- Condense vertical spacing of text
tessgadwa added 2 commits May 9, 2017 22:38
File update to add two new Riot desktop themes: high contrast and high contrast condensed text.

Signed-off-by: Tess Gadwa [email protected]
CSS files for two new Riot desktop themes: high contrast and high contrast condensed.

Usersettings.js in matrix-react-sdk must also be updated in order for the theme to be accessible from the Settings menu.

Signed-off-by: Tess Gadwa [email protected]
@tessgadwa
Copy link
Author

tessgadwa commented May 10, 2017

Updated files to create two new themes:

  • Light High Contrast
  • Light High Contrast Condensed

LHC differs only from the current theme in color and font-weight; LHC-Condensed includes the same changes and addresses several user' concerns that there is too much whitespace.

@ara4n
Copy link
Member

ara4n commented May 15, 2017

@tessgadwa is this ready for more review?

@tessgadwa
Copy link
Author

@ara4n Just saw this. Yes, it's ready for more review.

@t3chguy
Copy link
Member

t3chguy commented Aug 2, 2017

bump, @lukebarnard1 / @ara4n

@uhoreg
Copy link
Member

uhoreg commented Sep 5, 2017

Is the condensed version still needed now that we have the "compact timeline layout" setting?

@tessgadwa
Copy link
Author

tessgadwa commented Sep 5, 2017 via email

@lukebarnard1
Copy link
Contributor

Ok, @tessgadwa looks like you'll need to remove the condensed version and just leave the light contrast theme in.

@tessgadwa
Copy link
Author

@lukebarnard1 is this still an active PR? If so I will certainly make the updates.

@lukebarnard1
Copy link
Contributor

is this still an active PR

Sure, unless the light contrast theme has already made it in, which it doesn't look like it.

@t3chguy
Copy link
Member

t3chguy commented Dec 27, 2017

In an attempt to revive this:

@lukebarnard1
Copy link
Contributor

@tessgadwa given that we're about to go through a redesign of Riot with the intention of improving the contrast of colours in the app, I think we'll close this and the other PR.

Thanks anyway for the contribution 👍

@tessgadwa
Copy link
Author

Thanks for the note. I thought it was closed a long time ago.

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.

6 participants