[openstreetmap/openstreetmap-website] Map color mode preference (PR #5362)

Anton Khorev notifications at github.com
Sun Dec 1 02:13:22 UTC 2024


Includes #5339. Implements step 5 from https://github.com/openstreetmap/openstreetmap-website/issues/5324#issuecomment-2504102012.

![image](https://github.com/user-attachments/assets/228d027d-2731-4c58-bf2c-0633e094660f)
![image](https://github.com/user-attachments/assets/0db27006-dd89-4dfd-8491-5a06077832bc)

You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/5362

-- Commit Summary --

  * Add auto/manual color scheme stylesheets depending on user preferences
  * Show site color scheme on user preferences page
  * Add site color scheme select to preferences form
  * Store selected site color scheme
  * Make a generic preferred color scheme method
  * Set map color scheme depending on user preferences
  * Show map color scheme on user preferences page
  * Add map color scheme select to preferences form
  * Store selected map color scheme

-- File Changes --

    M app/assets/stylesheets/common.scss (22)
    M app/assets/stylesheets/parameters.scss (1)
    A app/assets/stylesheets/screen-auto-ltr.scss (3)
    A app/assets/stylesheets/screen-auto-rtl.rtlcss.scss (3)
    D app/assets/stylesheets/screen-ltr.scss (1)
    A app/assets/stylesheets/screen-manual-ltr.scss (3)
    A app/assets/stylesheets/screen-manual-rtl.rtlcss.scss (3)
    D app/assets/stylesheets/screen-rtl.rtlcss.scss (1)
    M app/controllers/application_controller.rb (10)
    M app/controllers/preferences_controller.rb (15)
    M app/views/layouts/_head.html.erb (6)
    M app/views/layouts/site.html.erb (11)
    M app/views/preferences/edit.html.erb (16)
    M app/views/preferences/show.html.erb (9)
    M config/locales/en.yml (10)
    M test/controllers/preferences_controller_test.rb (52)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/5362.patch
https://github.com/openstreetmap/openstreetmap-website/pull/5362.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5362
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5362 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20241130/9a7f1565/attachment-0001.htm>


More information about the rails-dev mailing list