-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Material Template Fixes #1662
Material Template Fixes #1662
Conversation
See #1661 |
Sorry misread, thought this was Golden layout as well. |
So I don't know what's up with that, I do not see scrollbars, only when I actually try to scroll. Same with the other templates. |
That's probably specific to my particular browser tbh, so I'll probably have to fix this everywhere for all templates. |
Actually I can't any browser to show all the scrollbars all the time, is this a windows thing? |
I see the scrollbars in windows too with chrome |
Okay, clearly needs fixing but really I blame windows 😜 |
The only thing I know is that |
FYI. I will start working on this. |
I've now implemented the fixes needed and aligned with the VanillaTemplate. I have some ideas on providing a MaterialTheme for Bokeh. I will try to add that as well. |
I've now added a Bokeh MaterialTheme and MaterialDarkTheme but then
I will stop now. @philippjfr can you help or guide me to a solution on the two issues above? Thanks. |
@@ -59,3 +59,113 @@ class DarkTheme(Theme): | |||
|
|||
bokeh_theme = param.ClassSelector(class_=(_BkTheme, str), | |||
default=_BkTheme(json=BOKEH_DARK)) | |||
|
|||
MATERIAL_FONT = "Roboto, sans-serif, Verdana" | |||
MATERIAL_THEME = { |
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 should live in panel/template/material/init.py
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.
That's awesome. I just did not know that one. Will move it.
Again, in the interest of making quick progress here I'll merge and make a new PR. You have access rights for this repo so please push directly to holoviz/panel rather than your own fork so we can collaborate more easily. |
@philippjfr . Did you have any ideas on fixing the below I've now added a Bokeh MaterialTheme and MaterialDarkTheme but then
|
Hi @ceball I've have heard you have an interest in applications using Material Theme. If you have any ideas, guidance, requirements feel free to comment. Thanks. |
That is deliberate, the default.css corresponds to the default theme. I'm still trying to understand why you created the MaterialTheme instead of extending the DefaultTheme but maybe it's just not well documented and that was your intention? |
The intention is to make the Bokeh/ HoloViews plot look consistent with the bootstrap theme. This includes the "Roboto" font, some font size changes, some color changes etc. Maybe I implemented it wrongly. I believe the Bokeh JSON THEME is correct. But maybe I need some guidance on how to move on from there @philippjfr ? |
@philippjfr . One temporary solution for getting material themed widgets could be using a small script to replace the bokeh classes with the material classes. Maybe it's as simple as defining the conversions in a dictionary. What do you think? The thing I don't know is if I can get the script to execute every time the css class changes. But maybe I can using a MUTATIONOBSERVER. If it works it could be a really easy and powerful thing. POC |
One problem right now is I don't know how to find documentation for MASTER. I can only find documentation for 0.9.7. Maybe a link to the MASTER documentation in the GITHUB README or the DEVELOPER GUIDE would be nice to have. |
Here's where those builds go: https://pyviz-dev.github.io/panel/ |
@philippjfr |
The builds have been broken for a while, trying to fix that. It's usually rebuilt on each dev release or when a commit ending in |
I have tested the Material Template and see some issues that I would like to fix
I will develop the fixes ASAP. Will change the Material Template to behave as the Vanilla Template.