We've now mostly reverted to the first color scheme (the one before
the update over a year ago), just adjusting the darkest colors to
look better in dark mode, and the brightest colors to look better
in normal mode.
I'm not sure why this only recently started becoming a problem; I've
been told this only recently became commonly reported in Help, but the
code I've fixed seems to have been around for a long time. Maybe some
recent change exacerbated it or something.
Anyway, this should make team saving much more frequent, matching how
team saving works in the browser.
After a bunch of iterations, this color scheme mostly only has blue
and yellow users complaining.
Blue names are now lighter, and yellow names are now darker, so that
they're more readable in dark mode and regular mode respectively.
This is done using a fancy algorithm to figure out the luminosity
of the generated color, and adjusting accordingly.
- The CSS layout is slightly better
- Improve textbox colors slightly
- Make PM boxes semitransparent like chat
- Fix chatroom list colors
- Fix |unlink| revealed text colors
Exactly what it says on the tin.
Most things aren't particularly dark, but at the moment there aren't
any parts that look particularly ugly, so I consider this a mild
success.
More changes planned.
There's a reason why close-roomtab buttons are <a> tags right now, and
I think it has to do with compatibility with some obscure browser like
IE9 or something.
Still, though, the CSS is much nicer this way, especially for the
upcoming dark mode feature, so I'll just commit this and figure out a
different workaround for whatever problems come up.
Previously, the duration of side conditions like Tailwind, Reflect,
etc would only appear at the end of the turn. Now, they appear
immediately when the move is used.
This should also fix the issue of users asking "Why does it say '3
turns left' when Tailwind lasts 4 turns?"
If ignored users change their name the new name will be added to the ignore list.
If you change name to an already ignored one that name will be removed from the ignore list.
This uses the HTML5 drag-and-drop API to rearrange rooms.
Harder to code and less pretty than doing it manually, but on the
upside, browsers still consider them links, allowing them to be
dragged to bookmarks, textboxes, etc.
Closes#203
Previously, due to the HTML5 drag-and-drop API's security model, we
couldn't tell if a dragged file was a team or not. This new code makes
the check slightly more reliable.
Tooltips wouldn't disappear in certain obscure situations. This should
mitigate those obscure situations.
(Specifically, opponent forfeits while you're hovering over a move or
pokemon.)
- Enter now moves onto the next field if the selected field is valid
- Tab/Enter on the last move now focuses EVs/IVs button, so it's much
easier to refocus the last move