Conversation
Gonna take a while to figure out all the other edited files.
|
Optional popup icon UI with optional style name click actions, and light gray default theme combined. I wanted to tweak the theme to incorporate tophf's suggestions, mainly using semi-transparency wherever possible for userstyle compatibility, and leaving a lot of the text/icon contrast alone, particularly in the manager. I also decided to convert all our colors to effing variables. If I hadn't underestimated what a PITA that was gonna be, I never would've started, but I think it's pretty complete. This involved a ton of text replace and manual editing without double checking every single edit individually, so it'll need to be tested thoroughly. I wouldn't be surprised if I missed some altogether either. To make it even more userstyle friendly, I incorporated some common Variables leave the door open for implementing a color slider for the UI, which would make the effort worthwhile. Otherwise, they'll make userstyles easier, and adding new elements simpler for us in the future by just adding the common selector. I also monkey-patched the highlighting bug. In the default "token under cursor" regular highlighting interfered with "find" highlighting. In "selection only" regular highlighting didn't work at all. I always had it disabled, so I never noticed, but neither the JS nor the accompanying CSS made any sense or worked together. AFAICT, highlighting has never worked correctly since One of the main goals of The condition is Pretty much works in "token under cursor", but the default highlighting CSS still interfered with "find" highlighting. The condition doesn't work at all for "selection only", and the CSS makes even less sense since it relies on the
Anyway, I had no luck fixing the condition, so the monkey-patch was to fix "selection only" by leaving it excluded from the animation and fixing the CSS to not rely on the Everything works now, but we should really fix the condition so "selection only" can also have transitions which are optimized. They're a nice touch. |
|
Testing it briefly, I don't think I forgot any files, but I'm guessing something in @Mottie @eight04 Both of you are welcome to fix/improve whatever in this PR. |
|
Took a little break, but leaving it broken was bugging me. Think I resolved all the conflicts. |
|
Didn't even occur to me that I'd need to check the html diffs, but I did. Everything appears to be working now. |
|
Just a quick skim:
|
What does one have to do with the other? If you're saying you're planning on screwing up something major in this PR, then that's a bad idea because I'm not doing it a third time. If you're not gonna cause major conflicts, then what does it matter? There's no big rush.
I started working on this a couple months ago.
Again, who cares? They needed to be styled correctly, and I was restyling the UI.
I strongly disagree when it comes to the |
| --main-bg: hsl(0, 0%, 90%); | ||
| --gray-lightness-92: hsl(0, 0%, 92%); | ||
| --gray-lightness-93: hsl(0, 0%, 93%); | ||
| --gray-lightness-95: hsl(0, 0%, 95%); |
There was a problem hiding this comment.
Do we really need 26 levels of gray? I think a bunch of these could be combined.
Also I don't think "normal" humans can discern the differences in alpha channel between .05. .06, .07 and .1. Can we combine these as well? I think every 10% is okay, but not anything less than 5%.
There was a problem hiding this comment.
.06 makes a difference when stacked on top of another to achieve a combination shade. There's also a very discernible difference between .05 and .07 on elements like zebra-striping.
There was a problem hiding this comment.
I actually did combine quite a few shades of gray. You could probably eliminate at least a few more, but when you're converting the massive volume of values, you can't really go hunting for every element to check if a slightly different shade is detrimental.
If the PR is small, we can review and merge it faster. Also, it is a good idea to focus on one thing in one PR.
The preference system is refactored and |
|
Removing If it's just a matter of putting this PR off for a bit because it's less essential, that's NBD. As far as there being some urgency to merge a highlight fix, it's been broken for almost a year and no one has even reported it. Since that's the case, "reviewing and merging it faster" doesn't really feel that important. Like I said, it's probably because power users use themes which override the bugs in the default. You're welcome to separate and merge the monkey-patch as it is. It's just the |
00eadf6 to
7963a3a
Compare
6475a2f to
592047a
Compare
b780606 to
4349385
Compare
5aed490 to
28cdf05
Compare
24d6cc5 to
0d6b4f6
Compare
Probably best to load fresh. Whoever tests first can tell me how broken it is. I'm sure I forgot a file somewhere, but my local copy works. =)