Skip to content

Commit

Permalink
Merge branch '71360' into shakib-pre-master
Browse files Browse the repository at this point in the history
  • Loading branch information
shuvo7670 committed Dec 19, 2024
2 parents 51d8f2e + 82ed85a commit 7189bc9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions includes/Extensions/PressBar/PressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,13 @@ public function design_tab_fields($fields) {
'name' => "bar_bg_color",
'type' => "colorpicker",
],
[
'label' => __("Background Image", 'notificationx'),
'name' => "bar_bg_image",
'button' => __('Upload', 'notificationx'),
'type' => "media",
'default' => "",
],
[
'label' => __('Text Color', 'notificationx'),
'name' => "bar_text_color",
Expand Down
3 changes: 3 additions & 0 deletions nxdev/notificationx/frontend/core/Pressbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ const Pressbar = ({ position, nxBar, dispatch }) => {
const closeButtonCSS: any = {};
if (settings?.advance_edit) {
if (settings?.bar_bg_color) componentCSS.backgroundColor = settings.bar_bg_color;
if (settings?.bar_bg_image?.url) {
componentCSS.backgroundImage = `url('${settings.bar_bg_image.url}')`;
}
if (settings?.bar_text_color) componentCSS.color = settings.bar_text_color;
if (settings?.bar_font_size) componentCSS.fontSize = settings.bar_font_size;
if (settings?.bar_btn_bg) buttonCSS.backgroundColor = settings.bar_btn_bg;
Expand Down

0 comments on commit 7189bc9

Please sign in to comment.