Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

Emeegeemee
Copy link
Contributor

Closes #7708

@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

1 similar comment
@googlebot
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.


  • If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check your existing CLA data and verify that your email is set on your git commits.
  • If you signed the CLA as a corporation, please let us know the company's name.

@Emeegeemee
Copy link
Contributor Author

I signed it!

@googlebot
Copy link

CLAs look good, thanks!

1 similar comment
@googlebot
Copy link

CLAs look good, thanks!

@@ -153,6 +161,9 @@ function ThemingProvider($mdColorPalette) {
extendPalette: extendPalette,
theme: registerTheme,

registerStyles: function(styles) {
Copy link
Member

Choose a reason for hiding this comment

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

I initially thought, that there will be a function, which compiles the provided style on demand as well? Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you clarify what you mean by compile? I would expect the provided styles are valid CSS just like $MD_THEME_CSS and will just be appended to the constant before the themes are generated.

Copy link
Member

Choose a reason for hiding this comment

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

@Emeegeemee Sorry, I got some different thoughts, which are not valid anymore, since $mdColors will come.

Just thought again about your method, and it looks good.

@ThomasBurleson
Copy link
Contributor

  • Please provide a CodePen or Doc Theme Demo that justifies this feature addition.
  • Also your test does not test anything. Please provide better tests.

I am preparing to reject this PR as "too risky".

@ThomasBurleson ThomasBurleson added needs: team discussion This issue requires a decision from the team before moving forward. needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue labels Apr 5, 2016
@Emeegeemee
Copy link
Contributor Author

I've updated the tests to be more specific and added a few missing checks, please let me know if you want something more specific tested.

As for a demo I'm not really sure where to start, from my perspective all of the currently implemented components serve as great demo's to the power of using the theming system. Would a document explaining how to create and register custom styles be better? I'm thinking of updating and moving this guide into the theme section of the documentation if that make sense.

As for your "too risky" comment could you give some examples that I could help reduce or mitigate. I definitely see the potential for developers making a mistake with registering styles. Doing so would cause the rest of the theming to break, but I believe that you would just get components without theming similar to if the themes were disabled.

@ThomasBurleson ThomasBurleson added ui: theme pr: merge ready This PR is ready for a caretaker to review and removed needs: demo A CodePen demo or GitHub repository is needed to demonstrate the reproduction of the issue needs: team discussion This issue requires a decision from the team before moving forward. labels Apr 19, 2016
@ThomasBurleson ThomasBurleson added this to the 1.1.1 milestone Apr 19, 2016
@ThomasBurleson ThomasBurleson self-assigned this Apr 19, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.1, Backlog Apr 21, 2016
@ThomasBurleson
Copy link
Contributor

@devversion - can you rebase this please and force push to this PR?

@ThomasBurleson ThomasBurleson added the needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved label Jun 2, 2016
@ThomasBurleson
Copy link
Contributor

@devversion - ping!

devversion added a commit to devversion/material that referenced this pull request Jun 3, 2016
* Add a public method, which allows developers to register their own theme styles for the app theming
* Adds descriptions and examples to the service documentation.

Credits to @Emeegeemee for implementing the `registerStyles` functionality.

Closes angular#7708. Closes angular#7864.
@devversion
Copy link
Member

@Emeegeemee Thanks for the great PR again - We have a new PR, which includes your changes and gives deservedly credit to you :)

devversion added a commit to devversion/material that referenced this pull request Jun 3, 2016
* Add a public method, which allows developers to register their own theme styles for the app theming
* Adds descriptions and examples to the service documentation.

Credits to @Emeegeemee for implementing the `registerStyles` functionality.

Closes angular#7708. Closes angular#7864.
ThomasBurleson pushed a commit that referenced this pull request Jun 3, 2016
* Add a public method, which allows developers to register their own theme styles for the app theming
* Adds descriptions and examples to the service documentation.

Credits to @Emeegeemee for implementing the `registerStyles` functionality.

Closes #7708. Closes #7864.

Closes #8641
@Splaktar Splaktar removed this from the - Backlog milestone Jun 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved pr: merge ready This PR is ready for a caretaker to review ui: theme
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants