-
Notifications
You must be signed in to change notification settings - Fork 40
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
Change Bartik default color to black #842
Comments
I like this idea because the gradient in Bartik looks awfully dated. On the other hand, I'm not sure that many people would want a stark-block website. I'm curious what others think about this proposal. |
#000; |
I like black, too. But admin-bar loses too much contrast. |
Actually liking the blue now. I think without the Bartik rounded tabs and without the gradient, it looks quite sufficiently non-Drupal, and looks quite modern/flat-design-y, and satisfies @quicksketch's concern about the acceptability of plain black, and @pablo-romero's concern about the admin bar. |
Yeah one item that modernizes the whole theme is if you make the header a flat color and remove the gradient. In our situation, that means just setting the top and bottom color to the same thing, and boom, more modern theme. |
Tried this. It seems that color module cant mix flat and gradient. I attempted to have a default with flat but keep the gradients in color.inc in case someone wanted this still. but It seems color module needs to be able to replace color1 and color2 (top and bottom in this case) from color.inc with the gradient colors in colors.css (maybe vice versa). Trying to have two same colors causes all the color schemes to be non-gradient. If anyone can figure this out, please advise, otherwise, shall we ditch gradients altogether and go flat for all schemes? |
I think we're going to have to find a more compatible way of implementing this change. I don't think we can remove the ability to have a gradient at all mid-release. Even though we might not be affecting very many existing sites, this wouldn't set a good precedent.
Ahhh, I think I see what you're saying. The way color module works is replacing the "default" color with the selected color from the scheme. If the two default colors are the same value, they both get replaced twice, resulting in only one color showing. |
What if we left the default color.css exactly as-is and just set a default color scheme during the default profile installation? The color module API is not very good. I already separated the CSS generation in the existing issue at #792, but it's waiting on tests. After that is complete, we could just call the new |
Which by-the-way, I think we should provide a set of less-dated color schemes as well.
We may need to find a way to make the removal of tabs compatible as well. I see the current PR makes a new color for "Active menu item" (good idea), maybe we should make another one for "Menu item"? That's definitely making a lot of options (and a lot of rope for users to hang themselves with bad color schemes). |
What if we renamed this PR effort as jen_bartik, (or quick_bartik, or even bartik_sketch) and put bartik in contrib? Or how about 'nearly flat' with a gradient of
Would this default need to be a gradient still or will we be able to make a non-default two-same-color 'gradient' and save that as default? Frankly if we had such tags, I'd tag this critical; I'd be wrong, but it would demonstrate how much I wish we didnt ship with default bartik. |
I'm not opposed (and I don't think anyone would be) to making a new default theme mid-cycle. As long as it's an additive process (i.e. Bartik sticks around in core for everyone using it). I think we should do the least amount of change possible to modernize what we have, and save any major change for a new default theme. |
I am probably being awkward saying this, but as a Drupal user I found it strangely re-assuring to find trusty Bartik there in Backdrop! I felt I was in familiar territory. But I have never found Bartik's colour changing arrangement particularly inviting, and a 'Bartik plus' that offered a few check button options might be nice. |
How about a little subtheme - bartik_flat - with nothing but color and CSS changes? |
Yes, and could it have a checkbox to choose whether to have main menu tab borders showing or not? |
We can make the two colors the same to effectively remove the gradient. It's already possible to use the same color twice in a color scheme, it's just not possible to use the same color twice in the Bartik-provided "colors.css" file. So the fix in this issue is simply to set the color scheme in
This could probably be made a bit cleaner, the |
I understand and I think that's good enough for now; at least better by far than the old gradient. Would have been nice to be able to offer the user more than one flat-color option though. On which note I have one last option, then I'll stop being annoying. Have a look at this; its a gradient from #48a9e4 to #48a9e3, and I find the difference imperceptible. Is it acceptable to cheat like that?:
Can we do this mid-cycle too? A theme setting to restore tabs using CSS maybe? If all above fails, I'm going to put Bartik Flat as a contrib subtheme after renaming it something less goofy. |
I think we can still provide the user multiple flat-color options as different color schemes in the UI. I haven't looked into how this works, but I think it's possible.
I think it's acceptable.
This could be added via a setting mid-cycle yes, though I'd like to get others' feedback on it. |
You're absolutely right, I just checked. As long as the default color scheme has two gradient colors, it all works fine. The others can have the same hex code for the 'top' and 'bottom' gradient color, no problem. So we can set the default to be a near gradient ( So just the tabs to get an opinion on. @serundeputy @pablo-romero @Graham-72 @klonos any thoughts on
|
I rarely use Bartik. So, not leaning towards one way or another specifically, but I am all for progress/improvement even if that means to "sacrifice" backwards compatibility when it comes to themes. Functionality (i.e. modules and core) is another story. If we go with this, then a UI option would be best I believe. @docwilmot: Did I say well done on coming up with the near gradient solution? Good thinking! |
@docwilmot I don't mind keeping the tabs as long as we keep Bartik, until there's a new default front-end theme. I never use Bartik either (except for some local tests). Instead of removing the tabs, I'd just "modernize" them a little bit, and make them degrade better on small screens (css only). There's also an issue @BWPanda wrote about sub-items at #726. |
Thanks @pablo-romero; latest try should please most people:
|
Thanks @docwilmot! I gave the PR a spin. I ran into a few issues:
I love the new schemes "Giant Goldfish", "Mocha", and "Black Drop". "Icier" seems too similar to "Ice". Maybe we just update "Ice" directly? I'd love to drop "Firehouse" entirely. One nice thing about the way that schemes are saved is that the names are irrelevant in the config storage, only the colors are stored. So if we delete or update schemes, it won't impact existing sites other than to indicate that the scheme is "Custom" instead of a preset. |
How about having a white 1 or 2px outline around Drop? |
Better yet a (negative) reverse-color version for dark backgrounds. |
Thanks for all the progress on this issue :) For starters, I prefer the black color to the blue from a branding perspective. I don't think the disappearing dragon is an issue because I don't think we should include a logo (or dragon) in a front-end theme . It always bothered me that when you used Drupal to build your OWN website, you ended up with a blue alien-head staring back at you. The logo / branding should belong to the owner of the site. I think the tabs changes are out of scope for this issue, and may slow us down (I found myself wanting to make suggestions about better ways to handle that code on the PR). Can we just table anything that's not the requested color change, and do the other things as a follow-up? I'd like to focus on getting this in for 1.3.0. |
Well I just talked it over with @quicksketch and he filled me in on why we need the tab thing to be a setting (because we want to remove the rounded-ness, but we can't go changing the way people's sites look if they are actually using Bartik). So I get it now! Let's leave the tabs. So it looks like there's only three small changes needed for the PR:
|
I bet that's what most of us were thinking too. Now, as for the logo, I don't really mind it. I always thought of it as a placeholder and in my head I'd imagine how the site would look with its own logo. With layouts in core and what we are planning for blocks, I'd expect the logo to live in its own "Logo" block that people would be able to move around to where they want it (left/right of their site name/slogan). Loosing the rounded corners of the tabs brings the theme to the 21st century with a more "material" design. Plain as that. |
I don't think I've seen a layout yet that lets you move the logo from left to right. The logo is uploaded under "Site settings" (where you add your site name) and there's a checkbox on the header block allowing you to show it (or not). I suppose a contrib module could add a new header block that's actually more like a mini-panel and lets you arrange the things inside it, but the only way to solve that problem today is with css in the theme. But now that I've written all this, I don't think it's relevant to this issue :) |
How do you do an update hook for a theme? |
Never mind above. New question: if we save To do that though, there is no simple function which saves color palettes. Its all done in So to save a custom palette I'd need to directly create a new color folder in But, like any other custom palette if the user decides to try out a new palette, the custom settings would be lost and gone forever. Alternatively, in conclusion, to ensure that the old Bartik color scheme is available always, we could keep Long post for little gain I suspect. Whats the way to go here? |
I need some help with this.
I cant think of anyway to do this sanely. The theme settings config So I cannot simply save a previously default setting as blue lagoon. Here is my try:
Works fine if you test this code block, but run as an update hook, its complaining |
Think I've got this fixed. PR soon. |
Looks like @jenlampton is working on rerolling this from backdrop/backdrop#1129. |
I rerolled @jenlampton's PR into a new one at backdrop/backdrop#1194. This adopts the approach of just shipping with a "colors-legacy.css" file that contains the old default colors. However, I adjusted the way this stylesheet is selected. Instead of a checkbox for "Use legacy", we just use the Blue Lagoon option to detect the legacy mode
So now users can toggle back and forth between using the legacy CSS or not just by selecting Blue Lagoon. The other presets actually generate new color CSS files as they did previously. Unfortunately because themes do not have the ability to alter forms, this code lives in Color module, until we can remove it in 2.x. I'd like to add tests before this is merged, but I'd love to get feedback from @jenlampton and @docwilmot. If it sounds good, either of you up for writing tests? |
Nevermind, after getting into the code tests are pretty easy. Updated the PR with a second commit with tests. backdrop/backdrop#1194 |
Merged in backdrop/backdrop#1194 into 1.x for 1.3.0. Thanks @docwilmot for pioneering this and @jenlampton for improving it! |
A couple of posts around the web about Drupalers checking out backdrop have expressed disappointment that the first impression is "this is just Drupal!"
I know we're to work on a new core theme eventually, but I propose, to dilute the let-down factor, we just make Bartik a very non-Drupal Black, just like the API site. That, with the new default node/1 would be a nice simple change, and wouldn't take much.
The text was updated successfully, but these errors were encountered: