Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

[HOLD] Dark Core UI #8362

Closed
wants to merge 44 commits into from
Closed

[HOLD] Dark Core UI #8362

wants to merge 44 commits into from

Conversation

larz0
Copy link
Member

@larz0 larz0 commented Jul 11, 2014

To see the Dark UI:

  1. use brackets_core_ui_variables_dark.less in brackets_shared.less.
  2. paste variables of brackets_core_ui_variables_dark.less into the appropriate core extension stylesheets.

screen shot 2014-07-14 at 3 24 26 pm

larz0 and others added 30 commits June 19, 2014 16:40
…css-refactor

Conflicts:
	src/styles/brackets.less
@larz0
Copy link
Member Author

larz0 commented Jul 15, 2014

@TomMalbran good idea! Forgot about that.

@larz0 larz0 changed the title Dark Core UI [Review Only] Dark Core UI Jul 15, 2014
@larz0
Copy link
Member Author

larz0 commented Jul 15, 2014

To see the Dark UI:

  1. use brackets_core_ui_variables_dark.less in brackets_shared.less.
  2. paste variables of brackets_core_ui_variables_dark.less into the appropriate core extension stylesheets.

@@ -156,7 +156,7 @@ define(function (require, exports, module) {
* @type {FileUtils.LINE_ENDINGS_CRLF|FileUtils.LINE_ENDINGS_LF}
*/
Document.prototype._lineEndings = null;

Copy link
Contributor

Choose a reason for hiding this comment

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

These files where the only changes are whitespace should not be part of the PR. It's unnecessary noise for reviewer and also for the file history.

Copy link
Member Author

Choose a reason for hiding this comment

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

Damn I think I have an extension that strips those out automatically. Do I need to add the whitespaces back?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

@SAplayer That's definitely a good tip, but I agree with @redmunds's larger point that we should clean up the needless whitespace changes. There are 8 files in this PR that do nothing but touch whitespace unnecessarily.

@peterflynn peterflynn changed the title Dark Core UI [HOLD] Dark Core UI Jul 16, 2014
@peterflynn
Copy link
Member

I think we need to sort out the issues in #8420 before we can land this. I'm not entirely clear on how the color overriding works here, but at first glance it looks like it would suffer from the same problem.

But also I think we intended to punt this work to a future sprint, as part of https://trello.com/c/nhQxRyWn/518-theme-support-for-light-dark-mode -- and just focus on fixing #8379 for this release.

@larz0
Copy link
Member Author

larz0 commented Jul 16, 2014

Ok sounds good.

@dangoor
Copy link
Contributor

dangoor commented Jul 21, 2014

@larz0 It sounds like your schedule is pretty full today. I can take a crack at converting what you've done here to work with the new theme style.

@larz0
Copy link
Member Author

larz0 commented Jul 21, 2014

Cool thanks @dangoor.

@peterflynn
Copy link
Member

@larz0 I'm going to close this since we know we can't implement the dark colors using this approach. A lot of this has been ported to #8529 already, and I assume next sprint we can continue that approach to capture the rest of what's posted here (panel colors, etc.). As long as we don't delete the branch yet, we can still look at the diff here for reference: master...larz/css-refactor

@peterflynn peterflynn closed this Jul 25, 2014
@larz0
Copy link
Member Author

larz0 commented Jul 25, 2014

@peterflynn ok sounds good as long as we're keeping this branch for reference.

@TomMalbran
Copy link
Contributor

@larz0 @peterflynn What about having 2 less main files:

In light_ui.less we have

@import url("brackets_core_ui_variables_light.less");
@import url("brackets.less")

In dark_ui.less we have

@import url("brackets_core_ui_variables_dark.less");
@import url("brackets.less")

When switching themes with a different dark option we can switch the files. Also when compiling less we will get 2 files light_ui.css and dark_ui.less. So in production we switch between the CSS files instead.

@peterflynn
Copy link
Member

@TomMalbran
Copy link
Contributor

@peterflynn Nice. I didn't saw that card. Anyway we shouldn't need any script to generate the files. We should only need manually create the files I mentioned and update the Gruntfile so that it compiles 2 less files instead of 1. We can even do something similar for extensions. They give the less file with the variables and we compile it. This can be done at the registry level or at runtime.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants