Skip to content

Theme: Add new theme called "Base" #248

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

Closed
wants to merge 5 commits into from
Closed

Conversation

rxaviers
Copy link
Member

@rxaviers rxaviers commented Jan 8, 2015

Keep "Smoothness" and "UI Lightness" in the gallery, while the new
theme will be available as "Base" and it will be the default.

Ref jquery/jquery-ui#1384

TODO:

  • Remove a temporary change below before landing.

"dependsOn": "jQuery1.6+",
"label": "Experimental"
},
{
Copy link
Member Author

Choose a reason for hiding this comment

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

Note to self. This is a temporary change. Remove before landing.

@rxaviers
Copy link
Member Author

rxaviers commented Jan 8, 2015

Follow these instructions to run the server locally using "Base" by default:

  1. Run grunt prepare. It will fail, because it won't find version 1a10f10cb0a39281e91eec5a53b5bb874497c629.
  2. Run cd tmp/jquery-ui && git checkout --detach 20a636844961a1fb2de7a892ab28890091822e6a && git pull origin refs/pull/1384/head:pr/1384 && cd ../../.
  3. Run grunt prepare again. I must pass now.
  4. Run node server.js --console and browse it.

@rxaviers
Copy link
Member Author

rxaviers commented Jan 8, 2015

Themeroller displaying the new theme called "Base".

screenshot from 2015-01-08 17 00 59

@rxaviers
Copy link
Member Author

rxaviers commented Jan 8, 2015

jQuery UI 1.9.2, 1.10.4, 1.11.2, 1.12.0-pre packages with the new theme called "Base" available for download:

@rxaviers rxaviers mentioned this pull request Jan 8, 2015
@kborchers
Copy link
Member

Didn't I see a better mockup somewhere with the rounded corners removed and a better font? This feels very similar to smoothness with just a slight color and maybe a font change when I look at it.

@jzaefferer
Copy link
Member

We changed the font-size in general, independent of this new theme. That doesn't seem to be included here, though. Rounded corners are still in the new theme, its just smaller radii(?). The smaller font-size might make the rounded corners more obvious.

One thing that looks very wrong on the screenshot is the overlay and shadow element demo. The overlay doesn't cover the background, the shadow also disappears in the middle.

@rxaviers
Copy link
Member Author

rxaviers commented Jan 9, 2015

We changed the font-size in general, independent of this new theme.

Please, can you point me to this change?

@rxaviers
Copy link
Member Author

rxaviers commented Jan 9, 2015

One thing that looks very wrong on the screenshot is the overlay and shadow element demo. The overlay doesn't cover the background, the shadow also disappears in the middle.

I'm assuming changes are going to be made on jquery/jquery-ui#1384, so I can later update this PR accordingly.

@jzaefferer
Copy link
Member

Please, can you point me to this change?

jquery/jquery-ui#1374

@kborchers
Copy link
Member

Rounded corners are still in the new theme, its just smaller radii(?). The smaller font-size might make the rounded corners more obvious.

Let me rephrase my comment. Can we get rid of the rounded corners in this new base theme to make it feel more current?

@jzaefferer
Copy link
Member

You can check out the actual theme and discuss it at the original PR: jquery/jquery-ui#1374

@kborchers
Copy link
Member

You can check out the actual theme and discuss it at the original PR: jquery/jquery-ui#1374

I thought this was the Theme PR. The one you referenced is just the font size change so this would be the appropriate place to discuss the removal of the rounded corners. It doesn't seem like too much to ask for since most themes for current frameworks have removed rounded corners. They make it feel outdated no matter what you do to color or font.

@kborchers
Copy link
Member

Maybe you meant jquery/jquery-ui#1384 which I see now. I will comment there.

@jzaefferer
Copy link
Member

Yes, sorry, that's the one I meant.

@rxaviers
Copy link
Member Author

This PR is now (temporarily) pointing to d2eb0c93cfc5fce158ac2af6ca7b0f50760d9b90, i.e., @jzaefferer's jquery/jquery-ui#1420.

I have it deployed locally. Please, @jzaefferer just let me know if I can provide a screenshot of a particular place or perform any test and post here.

@rxaviers
Copy link
Member Author

Updated jQuery UI 1.9.2, 1.10.4, 1.11.2, 1.12.0-pre packages using the new "Base" theme (based on d2eb0c93cfc5fce158ac2af6ca7b0f50760d9b90). They're available for download on https://gist.github.com/rxaviers/edd9cb1ecdedb3e65b10.

Below is how the tooltip dropshadow is presented to me on 1.12.0-pre package and on 1.11.2.

1.12.0-pre 1.11.2
screenshot from 2015-01-21 09 49 59 screenshot from 2015-01-21 09 50 03

The Overlay shadow also changed. It looks better on 1.12.0-pre (although, the white stripe underneath it is still present). Using the Base theme on 1.11.2 or older packages is still problematic.

1.12.0-pre 1.11.2
screenshot from 2015-01-21 09 36 03 copy screenshot from 2015-01-21 09 35 59

@rxaviers
Copy link
Member Author

I've noticed a problem that happens since my first update. The initial Icons on 1.12-pre package are all duplicate / the same. In contrast, this doesn't happen on 1.11.2 (or older) using the Base theme.

1.12.0-pre 1.11.2
screenshot from 2015-01-21 09 36 03 screenshot from 2015-01-21 09 35 59 copy

@rxaviers
Copy link
Member Author

Jörn and I had a chat. Below is the outcome:

  • Create a new template/zip/index-1-12.html with several style and markup fixes: (a) drop body font size override, (b) fix overlay markup, (c) fix caret icons (s/ui-icon-carat/ui-icon-caret/g), (d) fix menu markup (add div inside li's).
  • Do not use an image when using the flat texture.
  • Update "Base" theme variables according to @jzaefferer's tooltip shadow update Theme update jquery-ui#1436.
  • The white stripe of the overlay background was a local thing and must be ignored - it should work just fine on the server (it'is due to bad image background generation).

Double check:

  • On 1.9 and 1.10, accordion is not working properly in index.html demo page.

@rxaviers
Copy link
Member Author

Updated jQuery UI 1.9.2, 1.10.4, 1.11.2, 1.12.0-pre packages using the new "Base" theme (based on 4371d59abd4a24275e0aaa4cae49a2fed591c9ae). They're available for download on https://gist.github.com/rxaviers/5293bc717f283f5eaad7

@rxaviers rxaviers force-pushed the new-theme-called-base branch from f095a1a to 4e9efe9 Compare January 22, 2015 20:13
Keep "Smoothness" and "UI Lightness" in the gallery, while the new
theme will be available as "Base" and it will be the default.

Ref jquery/jquery-ui#1384
Temporary update jquery/jquery-ui#1420
@ d2eb0c93cfc5fce158ac2af6ca7b0f50760d9b90

Do not use an image when using the flat texture.

Updated index.html for the 1.12.0 package.
@ 4371d59abd4a24275e0aaa4cae49a2fed591c9ae
@rxaviers rxaviers force-pushed the new-theme-called-base branch from 4e9efe9 to 8ac9a2d Compare January 23, 2015 23:11
@rxaviers
Copy link
Member Author

On 1.9 and 1.10, accordion is not working properly in index.html demo page.

Fixed this regression with dc11c77.

@jzaefferer
Copy link
Member

So with Jasper's last update and this fix, is everything addressed and we can merge both PRs to master? Or are we still missing something?

@rxaviers
Copy link
Member Author

It'd be good if @jaspermdegroot could make a final review (packages at https://gist.github.com/rxaviers/5293bc717f283f5eaad7). At least, browsing index.html and visualizing if the widgets with new Base theme are correct.

@rxaviers
Copy link
Member Author

To Whom It May Concern,

Based on the "we shouldn't bring back those comments/variables" decision (jquery/jquery-ui#1436), TR is going to have dead controls for such variables until the baseline of the available releases for download is at least 1.12.0, when those controls could be removed from TR.

@jzaefferer
Copy link
Member

TR is going to have dead controls for such variables until the baseline of the available releases for download is at least 1.12.0, when those controls could be removed from TR.

I'm okay with that. Specifically the shadow controls have probably seen very little use anyway.

Are we ready to land this? I suggest keeping the extra changes until we merge this and the UI theme PR to master, test on stage, then remove it until we release 1.12.

@rxaviers
Copy link
Member Author

Are we ready to land this?

Yeap. I still suggest that @jaspermdegroot make a final review on all packages at https://gist.github.com/rxaviers/5293bc717f283f5eaad7.

I suggest keeping the extra changes until we merge this and the UI theme PR to master, test on stage, then remove it until we release 1.12.

Ok.

@jaspermdegroot
Copy link
Member

I suppose the reason that all the changes in the default theme (except changes in ui-widget-shadow) have been applied to previous versions of UI is that the ThemeRoller isn't version aware? Feels a bit wrong though to make changes in something that already has been released. The default theme in the ThemeRoller will be different from the one that you can download via the "Quick Downloads" links at the top of the Download Builder page.

1.12: The color for ui-widget-shadow should be #666666 instead of #dddddd. I changed that in my last commit. See jquery/jquery-ui@4371d59

Other than that it looks good!

@jzaefferer
Copy link
Member

I suppose the reason that all the changes in the default theme (except changes in ui-widget-shadow) have been applied to previous versions of UI is that the ThemeRoller isn't version aware

That's wrong. Based on the discussion we had around this, it sounded like TR would use the theme.css file from the respective release, not just the newest. Was that wrong?

@rxaviers
Copy link
Member Author

I'm confused. I think @jaspermdegroot and @jzaefferer are talking about two different things. Correct me if I'm wrong.

I think @jaspermdegroot is talking about the fact the Custom Downloads for 1.12.0 and all the previous releases (1.11.2, 1.10.4 and 1.9.2) will include the Base theme by default from now on as decided prior to the creation of this PR. Although, the Quick Downloads will include Base for 1.12.0, but UI Lightness for the previous ones (given the fact those are existing old packages). I think Jasper has a valid point. But, the decision is up to you all.

@jzaefferer is talking about either of these two things: (a) the custom downloads should use the theme.css file from the respective release, which is true (please, just let me know if it's not); or (b) the TR (the page, the web interface) should use the theme.css file from the respective release, which doesn't happen (TR, the interface, is not release-aware and it uses the latest released jQuery UI's theme.css).

@jzaefferer
Copy link
Member

Alright, I misunderstood that. Let's go ahead and merge this and the UI PR.

jaspermdegroot added a commit to jquery/jquery-ui that referenced this pull request Jan 27, 2015
Changes tooltip to use the ui-widget-shadow class, which now applies the
box-shadow style. .ui-widget-shadow was created when box-shadow wasn't
available. By now, there's no point in faking a custom shadow anymore.
This removes the only non-structural CSS from a widget-specific file.

Updates demos to use the same font-family, removes unused images.

Will be available as the new default theme on ThemeRoller called "Base",
while "UI Smoothness" and "UI Lightness" will still be available in the
gallery.

Fixes #10617
Fixes #10880
Closes gh-1436
Ref jquery/download.jqueryui.com#248
@jzaefferer
Copy link
Member

Upstream change landed in jquery/jquery-ui@79c4fa1

@rxaviers rxaviers closed this in e617430 Jan 27, 2015
@jzaefferer
Copy link
Member

Still need to integrate this into jqueryui.com to actually be able to test on stage.

@rxaviers rxaviers deleted the new-theme-called-base branch January 27, 2015 16:59
@rxaviers rxaviers mentioned this pull request Jan 27, 2015
1 task
jzaefferer added a commit to jquery/jquery-ui that referenced this pull request Feb 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants