abstreet/widgetry_demo
Michael Kirk e6ed2e67de Collapse button styles to be theme specified (no visible changes).
Button colors are now determined by the color scheme, but for now all
schemes are hardcoded to use the same "night" button colors. Read on for
rationale...

Previously, which button colors to use (dark/light) was specified inline
while building the UI.

Eventually we want to live in a world where color scheme determines:
- panel colors
- button colors
- text colors

The theme could already choose panel colors easily enough, but because
the buttons and text were not determined by theme, choosing anything
other than a black or dark grey panel color makes the buttons and text
unreadable.

This PR tackled the themeable "button colors" portion, but all themes
continue to use the "night" colors for now, because using the actual
"day" colors would still make the text unreadable.

next up: themeable text!

The one intentional regression is within the pregame tutorial,
which has always been styled differently from the rest of the app. An
expeditious hack has caused the prev/next/continue buttons to lose their
visible hover state. I'll restore this upon completing the day theme
work.
2021-02-23 09:52:33 -08:00
..
pkg On the web, load different maps by making asynchronous HTTP calls. #21 (#364) 2020-10-08 10:51:13 -07:00
src Collapse button styles to be theme specified (no visible changes). 2021-02-23 09:52:33 -08:00
Cargo.toml Upgrade most dependencies 2021-02-03 18:13:06 -08:00
index.html WebGL 1.0 support, with automatic fallback for Safari/iOS (#504) 2021-02-06 19:04:43 -08:00
run_web.sh On the web, load different maps by making asynchronous HTTP calls. #21 (#364) 2020-10-08 10:51:13 -07:00