-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
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.
A few comments on the code side from me
webpack.config.js
Outdated
|
||
module.exports = { | ||
entry: { | ||
"bundle": "./src/vector/index.js", | ||
"indexeddb-worker": "./src/vector/indexedbd-worker.js", |
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.
I'm assuming this and the above is a merge gone wrong: this will break the indexeddb worker.
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.
Webpack.config.js has been updated; other changes forthcoming.
webpack.config.js
Outdated
}, | ||
module: { | ||
preLoaders: [ | ||
{ test: /\.js$/, loader: "source-map-loader" }, | ||
{ test: /\.js$/, loader: "source-map-loader" } |
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 change also presumably wasn't intentional?
webpack.config.js
Outdated
|
||
// 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$/, |
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.
Was this not necessary?
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.
yeah the [\\\/]
is needed for os interoperability
webpack.config.js
Outdated
{ | ||
allChunks: true | ||
} | ||
), |
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.
The previous formatting was correct according to our code style.
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. |
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.
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"; |
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.
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; | ||
} |
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.
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; |
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.
The above three lines need indenting.
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. |
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). |
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
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]
Updated files to create two new themes:
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. |
@tessgadwa is this ready for more review? |
@ara4n Just saw this. Yes, it's ready for more review. |
bump, @lukebarnard1 / @ara4n |
Is the condensed version still needed now that we have the "compact timeline layout" setting? |
My understanding is that the introduction of this setting removed the need
for a condensed version of the theme.
…On Tue, Sep 5, 2017 at 1:40 PM, Hubert Chathi ***@***.***> wrote:
Is the condensed version still needed now that we have the "compact
timeline layout" setting?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3819 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGLNG1WygNNw-6qjK5NI7ePz3xWoOt0Aks5sfbHIgaJpZM4NSHht>
.
--
Tess Gadwa
Chief Executive Officer
_______________________________
Yes Exactly, Inc. | yesexactly.com | 413.325.8251
|
Ok, @tessgadwa looks like you'll need to remove the condensed version and just leave the light contrast theme in. |
@lukebarnard1 is this still an active PR? If so I will certainly make the updates. |
Sure, unless the light contrast theme has already made it in, which it doesn't look like it. |
In an attempt to revive this:
|
@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 👍 |
Thanks for the note. I thought it was closed a long time ago. |
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]