Add a setting allowing the use of system's default font in Web UI (#4033)
* add a system_font_ui setting on the server * Plug the system_font_ui on the front-end * add EN/FR locales for the new setting * put Roboto after all other fonts * remove trailing whitespace so CodeClimate is happy * fix user_spec.rb * correctly write user_spect this time * slightly better way of adding the classes * add comments to the system-font stack for clarification * use .system-font for the class instead * don't use multiple lines for comments * remove trailing whitespace * use the classnames module for consistency * use `mastodon-font-sans-serif` instead of Roboto directly
parent
f76e7182
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/controllers/settings/preferences_controller.rb 1 ajout, 0 suppressionapp/controllers/settings/preferences_controller.rb
- app/javascript/mastodon/features/ui/index.js 12 ajouts, 2 suppressionsapp/javascript/mastodon/features/ui/index.js
- app/javascript/styles/basics.scss 15 ajouts, 0 suppressionapp/javascript/styles/basics.scss
- app/lib/user_settings_decorator.rb 5 ajouts, 0 suppressionapp/lib/user_settings_decorator.rb
- app/models/user.rb 4 ajouts, 0 suppressionapp/models/user.rb
- app/views/home/initial_state.json.rabl 1 ajout, 0 suppressionapp/views/home/initial_state.json.rabl
- app/views/settings/preferences/show.html.haml 1 ajout, 0 suppressionapp/views/settings/preferences/show.html.haml
- config/locales/simple_form.en.yml 1 ajout, 0 suppressionconfig/locales/simple_form.en.yml
- config/locales/simple_form.fr.yml 1 ajout, 0 suppressionconfig/locales/simple_form.fr.yml
- config/settings.yml 1 ajout, 0 suppressionconfig/settings.yml
- spec/lib/user_settings_decorator_spec.rb 7 ajouts, 0 suppressionspec/lib/user_settings_decorator_spec.rb
- spec/models/user_spec.rb 8 ajouts, 0 suppressionspec/models/user_spec.rb
Veuillez vous inscrire ou vous se connecter pour commenter