stable

Clone or download

Read-only

chore: Ease configuration of available theme variants

When platform administrators want to define which theme variant to allow (or the default one) they have to use "FlamingParrot_Blue" (or Red, Green, …). FlamingParrot does not speak to them, it complicates the understanding of how to configure the theme for the platform. We should switch to basic colors under those variants ("blue", "red", "green", …) To test you can define both `$sys_default_theme_variant` and `$sys_available_theme_variants` (see local.inc.dist for example). There should not be functional changes. You can use both `FlamingParrot_Blue` or the new value `blue`. Current preference for existing users should not be impacted. FlamingParrot and BurningParrot pages are displayed with the selected theme, with the right favicon. Part of request #31137: Ease configuration of available theme variants Change-Id: I9ff5bcb3e9283e3f31c118424e5c3e341b5fbb80

Modified Files

Name
M plugins/mediawiki/www/skins/Tuleap123/Tuleap123.php +2 −2 Go to diff View file
M plugins/pluginsadministration/include/pluginsadministrationPlugin.php +0 −2 Go to diff View file
M src/common/Event/Event.class.php +0 −1 Go to diff View file
M src/common/Layout/Layout.class.php +3 −3 Go to diff View file
M src/common/Layout/ThemeVariant.class.php +47 −36 Go to diff View file
M src/common/Layout/ThemeVariantColor.php +34 −100 Go to diff View file
M src/common/Layout/ThemeVariation.php +2 −12 Go to diff View file
M src/common/Mail/MailPresenterFactory.class.php +1 −4 Go to diff View file
M src/common/OpenGraph/OpenGraphPresenter.php +1 −1 Go to diff View file
M src/common/Project/REST/v1/ThirdPartyIntegrationStylesRepresentation.php +1 −2 Go to diff View file
M src/common/User/Account/Appearance/ThemeColorPresenter.php +7 −16 Go to diff View file
M src/common/User/Account/Appearance/ThemeColorPresenterBuilder.php +3 −5 Go to diff View file
M src/common/User/Account/UpdateAppearancePreferences.php +6 −6 Go to diff View file
M src/etc/local.inc.dist +8 −8 Go to diff View file
M src/themes/BurningParrot/include/BurningParrotTheme.php +3 −3 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenter.php +1 −1 Go to diff View file
M src/themes/BurningParrot/include/HeaderPresenterBuilder.php +3 −4 Go to diff View file
M src/themes/FlamingParrot/include/HeaderPresenter.class.php +4 −5 Go to diff View file
M src/www/themes/FlamingParrot/FlamingParrot_Theme.class.php +5 −32 Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/android-chrome-192x192.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/android-chrome-256x256.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/apple-touch-icon.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/browserconfig.xml Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/favicon-16x16.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/favicon-32x32.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/favicon.ico Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/mstile-150x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/mstile-310x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/mstile-310x310.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/mstile-70x70.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/safari-pinned-tab.svg Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Blue/site.webmanifest Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/android-chrome-192x192.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/android-chrome-256x256.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/apple-touch-icon.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/browserconfig.xml Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/favicon-16x16.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/favicon-32x32.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/favicon.ico Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/mstile-150x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/mstile-310x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/mstile-310x310.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/mstile-70x70.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/safari-pinned-tab.svg Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/site.webmanifest Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/android-chrome-192x192.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/android-chrome-256x256.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/apple-touch-icon.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/browserconfig.xml Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/favicon-16x16.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/favicon-32x32.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_BlueGrey/favicon.ico Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/mstile-150x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/mstile-310x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/mstile-310x310.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/mstile-70x70.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/safari-pinned-tab.svg Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Green/site.webmanifest Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/android-chrome-192x192.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/android-chrome-256x256.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/apple-touch-icon.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/browserconfig.xml Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/favicon-16x16.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/favicon-32x32.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/favicon.ico Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/mstile-150x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/mstile-310x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/mstile-310x310.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/mstile-70x70.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/safari-pinned-tab.svg Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Orange/site.webmanifest Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/android-chrome-192x192.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/android-chrome-256x256.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/apple-touch-icon.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/browserconfig.xml Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/favicon-16x16.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/favicon-32x32.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/favicon.ico Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/mstile-150x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/mstile-310x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/mstile-310x310.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/mstile-70x70.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/safari-pinned-tab.svg Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Purple/site.webmanifest Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/android-chrome-192x192.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/android-chrome-256x256.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/apple-touch-icon.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/browserconfig.xml Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/favicon-16x16.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/favicon-32x32.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/favicon.ico Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/mstile-150x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/mstile-310x150.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/mstile-310x310.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/mstile-70x70.png Binary file Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/safari-pinned-tab.svg Go to diff View file
R src/www/themes/FlamingParrot/images/favicon/FlamingParrot_Red/site.webmanifest Go to diff View file
A tests/unit/common/Layout/ThemeVariantTest.php +166 −0 Go to diff View file
M tests/unit/common/Layout/ThemeVariationTest.php +2 −2 Go to diff View file
M tests/unit/common/User/Account/Appearance/ThemeColorPresenterBuilderTest.php +13 −17 Go to diff View file
M tests/unit/common/User/Account/UpdateAppearancePreferencesTest.php +9 −6 Go to diff View file