Loading Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ RUN patch -u ${BASE_DIR}/core/templates/layout.guest.php -i ${TMP_PATCH_DIR}/016 RUN patch -u ${BASE_DIR}/lib/private/Notification/Manager.php -i ${TMP_PATCH_DIR}/020-fairuse-notification-fix.patch RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/user_ldap/lib/User_LDAP.php -i ${TMP_PATCH_DIR}/023-ldap-check-pwd-optimization.patch RUN patch -u ${BASE_DIR}/lib/private/User/Manager.php -i ${TMP_PATCH_DIR}/025-optimize-get-by-email.patch RUN patch -u ${BASE_DIR}/apps/theming/lib/Themes/CommonThemeTrait.php -i ${TMP_PATCH_DIR}/026-primary-color-fix.patch RUN rm -rf ${TMP_PATCH_DIR} RUN curl -fsSL -o ldap_write_support.tar.gz \ Loading patches/026-primary-color-fix.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line From: Avinash <avinashg@e.email> Date: Web, 12 Mar 2023 17:00 +0530 Subject: [PATCH] To fix the primary color in nextcloud 25 onwards --- apps/theming/lib/Themes/CommonThemeTrait.php 2023-04-12 17:16:23.456078658 +0530 +++ apps/theming/lib/Themes/CommonThemeTrait-new.php 2023-04-12 17:17:30.456079957 +0530 @@ -38,6 +38,9 @@ * will change in between. */ protected function generatePrimaryVariables(string $colorMainBackground, string $colorMainText): array { + $defaults = new \OC_Defaults(); + $this->primaryColor = $defaults->getColorPrimary(); + $this->defaultPrimaryColor=$defaults->getColorPrimary(); $colorPrimaryLight = $this->util->mix($this->primaryColor, $colorMainBackground, -80); $colorPrimaryElement = $this->util->elementColor($this->primaryColor); $colorPrimaryElementDefault = $this->util->elementColor($this->defaultPrimaryColor); Loading
Dockerfile +1 −0 Original line number Diff line number Diff line Loading @@ -164,6 +164,7 @@ RUN patch -u ${BASE_DIR}/core/templates/layout.guest.php -i ${TMP_PATCH_DIR}/016 RUN patch -u ${BASE_DIR}/lib/private/Notification/Manager.php -i ${TMP_PATCH_DIR}/020-fairuse-notification-fix.patch RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/user_ldap/lib/User_LDAP.php -i ${TMP_PATCH_DIR}/023-ldap-check-pwd-optimization.patch RUN patch -u ${BASE_DIR}/lib/private/User/Manager.php -i ${TMP_PATCH_DIR}/025-optimize-get-by-email.patch RUN patch -u ${BASE_DIR}/apps/theming/lib/Themes/CommonThemeTrait.php -i ${TMP_PATCH_DIR}/026-primary-color-fix.patch RUN rm -rf ${TMP_PATCH_DIR} RUN curl -fsSL -o ldap_write_support.tar.gz \ Loading
patches/026-primary-color-fix.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line From: Avinash <avinashg@e.email> Date: Web, 12 Mar 2023 17:00 +0530 Subject: [PATCH] To fix the primary color in nextcloud 25 onwards --- apps/theming/lib/Themes/CommonThemeTrait.php 2023-04-12 17:16:23.456078658 +0530 +++ apps/theming/lib/Themes/CommonThemeTrait-new.php 2023-04-12 17:17:30.456079957 +0530 @@ -38,6 +38,9 @@ * will change in between. */ protected function generatePrimaryVariables(string $colorMainBackground, string $colorMainText): array { + $defaults = new \OC_Defaults(); + $this->primaryColor = $defaults->getColorPrimary(); + $this->defaultPrimaryColor=$defaults->getColorPrimary(); $colorPrimaryLight = $this->util->mix($this->primaryColor, $colorMainBackground, -80); $colorPrimaryElement = $this->util->elementColor($this->primaryColor); $colorPrimaryElementDefault = $this->util->elementColor($this->defaultPrimaryColor);