Skip to content

Commit

Permalink
Merge branch 'overwrite-all' of https://github.com/felixhahnweilheim/…
Browse files Browse the repository at this point in the history
…humhub-flex-theme into overwrite-all
  • Loading branch information
felixhahnweilheim committed Jan 31, 2025
2 parents a82e447 + a566317 commit c3949cd
Show file tree
Hide file tree
Showing 56 changed files with 155 additions and 8 deletions.
1 change: 1 addition & 0 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
class Module extends \humhub\components\Module
{
public $resourcesPath = 'resources';
public $defaultRoute = 'admin';

public const FLEX_THEME_NAME = 'FlexTheme';

Expand Down
16 changes: 16 additions & 0 deletions assets/AdminAssets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

namespace humhub\modules\flexTheme\assets;

class AdminAssets extends \humhub\components\assets\AssetBundle
{
public $publishOptions = [
'forceCopy' => false
];

public $sourcePath = '@flex-theme/resources';

public $js = [
'js/flex-theme-admin.js',
];
}
2 changes: 2 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## TBA
- Fix #42: Division by zero (when trying to lighten white color)
- Fix #43: Invalid faded color calculated from 3 digits base color
- Enh #45: Add option to reset all colors of the current form
- Enh #45: Add default route 'admin'

## 0.3.0 (14 february 2024)
**NOTE** Files in themes/FlexTheme/css now need to be writable by the PHP process (see https://docs.humhub.org/docs/admin/installation/#file-permissions)
Expand Down
1 change: 1 addition & 0 deletions messages/am/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/an/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/ar/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/bg/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/br/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/ca/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/cs/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/cy/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/da/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
13 changes: 7 additions & 6 deletions messages/de/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@
'WARNING' => 'WARNUNG',
'Warning: Flex Theme is not active, settings on this page won\'t have any effect!' => 'Warnung: Flex Theme is nicht aktiv, Einstellungen auf dieser Seite haben keinen Effekt!',
'Your settings will be overwritten!' => 'Ihre Einstellungen werden überschrieben!',
'Dark Mode' => '',
'Experimental' => '',
'File upload links' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Dark Mode' => 'Dunkler Modus',
'Experimental' => 'Experimentell',
'File upload links' => 'Datei-Upload-Links',
'Please use the module {darkmode} and select "HumHub (dark)".' => 'Bitte nutze das Modul {darkmode} und wähle "HumHub (dark)" aus.',
'Reset all colors' => 'Alle Farben zurücksetzen',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => 'Einstellungen wurden mit Warnungen/Fehlern gespeichert. Bitte sieh in den Logs nach. (Administration > Information > Protokolle)',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => 'Zeige Datei-Upload-Optionen (Bild, Audio, Video...) als Buttons anstelle des Dropdown-Menüs.',
];
1 change: 1 addition & 0 deletions messages/el/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
39 changes: 39 additions & 0 deletions messages/es-419/admin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

return [
'<strong>Flex Theme</strong> Configuration' => '',
'Advanced' => '',
'Background Colors' => '',
'Color for Like Icon' => '',
'Colors' => '',
'Dark Mode' => '',
'Default' => '',
'Experimental' => '',
'File upload links' => '',
'Flexible Theme for HumHub' => '',
'General Settings' => '',
'Import/Export' => '',
'Invalid Format' => '',
'JSON could not be converted!' => '',
'Like Icon' => '',
'Like Icon (already liked)' => '',
'Main Colors' => '',
'Must be a color in hexadecimal format, like "#00aaff" or "#FA0"' => '',
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
'Style of Comment Button' => '',
'Style of Like Button' => '',
'Text Colors' => '',
'Text and icon' => '',
'Text link' => '',
'There seem to be invalid values!' => '',
'Topic Menu' => '',
'WARNING' => '',
'Warning: Flex Theme is not active, settings on this page won\'t have any effect!' => '',
'Your settings will be overwritten!' => '',
];
1 change: 1 addition & 0 deletions messages/es/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/et/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/eu/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/fa-IR/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/fi/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/fr/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/he/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/hr/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/ht/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/hu/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/id/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/it/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/ja/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/ko/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/lt/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/lv/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/nb-NO/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/nl/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/nn-NO/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/pl/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
1 change: 1 addition & 0 deletions messages/pt-BR/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'Only icon' => '',
'Please go to Administration > Settings > Appearance and select "Flex Theme".' => '',
'Please use the module {darkmode} and select "HumHub (dark)".' => '',
'Reset all colors' => '',
'Settings were saved with warnings/errors. Please check the logging. (Administration > Information > Logging)' => '',
'Show File Upload options (image, audio, video...) as buttons instead of dropdown.' => '',
'Show topic menu in user profiles and spaces.' => '',
Expand Down
Loading

0 comments on commit c3949cd

Please sign in to comment.