Add colors theme

    • eric mandon
      Participant
        # 3 years, 4 months ago

        Hi,

        how can we add theme colors ?

        Thanks.

      • laravel-bap
        Keymaster
          # 3 years, 4 months ago

          Hi,
          if You want to add custom color schema You need to:
          1. Create new theme color variables in /public/bap/scss/themes/theme-amber.scss
          1. Create new file theme-{color}.scss in folder /public/bap/scss/themes/ and use variables
          3. Include this new file in _all-themes.scss in the same folder.
          4. Add new value constant array Modules/Platform/Core/Helper/ThemeHelper::SUPPORTED_THEMES

          This should be enough to add new color themes.

        • eric mandon
          Participant
            # 3 years, 4 months ago

            Hi,

            Ok, thanks.

            And If I want to modify the presentation of the detail page of a module, I can not find anything in the “Views” directory of the module?

          • laravel-bap
            Keymaster
              # 3 years, 4 months ago

              Check Orders, Invoices and Quotes modules. You can override crud controller and crud view and create Your own.

            • laravel-bap
              Keymaster
                # 3 years, 4 months ago

                Also when use “extends ModuleCrudController” U can override $views property and setup You own views.


                protected $views = [
                ‘index’ => ‘core::crud.module.index’,
                ‘show’ => ‘core::crud.module.show’,
                ‘create’ => ‘core::crud.module.create’,
                ‘edit’ => ‘somemodeule::custom_edit_view’,
                ];

            Viewing 4 reply threads

            You must be logged in to reply to this topic.