Skip to content

Commit 3ba0d4d

Browse files
authored
Merge pull request #236 from jparkerweb/develop
Develop
2 parents f65b12e + e3fedaa commit 3ba0d4d

File tree

6 files changed

+30
-12
lines changed

6 files changed

+30
-12
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,24 @@
33
All notable changes to the Pixel Banner plugin will be documented in this file.
44

55
## 🎉 What's New
6-
### v3.5.0 - 2025-05-17
6+
### v3.5.0 - 2025-05-18
77
#### ✨ Added
88
- New "Banner Icon Rotation" option to rotate the banner icon from 0 to 360 degrees
99
- New "Icon Image" support to allow banner icons to contain both text/emojis and an image
10-
- Added Banner Icon Image contorls to the Position, Size & Style Modal (image source and alignment)
10+
- Added Banner Icon Image controls to the Position, Size & Style Modal (image source and alignment)
1111
- Banner Icon Image sources include:
1212
- Local images
1313
- Web URL
1414
- Online Collections (FREE downloadable icons)
1515
- Banner Icon Image alignment options include:
1616
- Left or Right (set the position of the icon image relative to the text/emojis)
1717
- New Border Radius slider control available in the Position, Size & Style Modal
18+
- Four new AI Models to choose from when generating an image for a banner
1819

1920
#### 📦 Updated
2021
- Embedded notes now respect custom frontmatter settings (border radius, banner height, etc.)
2122
- Any system action that sets the frontmatter value for a Banner or Icon Image now uses `![[image]]` format vs `[[image]]`
23+
- Updated Token currency to allow for fractional tokens (e.g. 0.5 tokens) for better pricing where applicable
2224

2325
#### 🐛 Fixed
2426
- Resolved issue with content being pushed down when banner was present in embedded notes

UPDATE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<a href="https://www.youtube.com/watch?v=VWS1efySjZM">
2-
<img src="https://pixel-banner.online/img/pixel-banner-transparent-bg.png" alt="Pixel Banner" style="max-width: 400px;">
1+
<a href="https://www.youtube.com/watch?v=fwvVX7to7-4">
2+
<img src="https://pixel-banner.online/img/pixel-banner-v3.5.jpg" alt="Pixel Banner" style="max-width: 400px;">
33
</a>
44

55
## 🎉 What's New
6-
### v3.5.0 - 2025-05-17
6+
### v3.5.0 - 2025-05-18
77
#### ✨ Added
88
- New "Banner Icon Rotation" option to rotate the banner icon from 0 to 360 degrees
99
- New "Icon Image" support to allow banner icons to contain both text/emojis and an image
10-
- Added Banner Icon Image contorls to the Position, Size & Style Modal (image source and alignment)
10+
- Added Banner Icon Image controls to the Position, Size & Style Modal (image source and alignment)
1111
- Banner Icon Image sources include:
1212
- Local images
1313
- Web URL
@@ -20,13 +20,13 @@
2020
#### 📦 Updated
2121
- Embedded notes now respect custom frontmatter settings (border radius, banner height, etc.)
2222
- Any system action that sets the frontmatter value for a Banner or Icon Image now uses `![[image]]` format vs `[[image]]`
23-
- Updated Token currancy to allow for fractional tokens (e.g. 0.5 tokens) for better pricing where applicable
23+
- Updated Token currency to allow for fractional tokens (e.g. 0.5 tokens) for better pricing where applicable
2424

2525
#### 🐛 Fixed
2626
- Resolved issue with content being pushed down when banner was present in embedded notes
2727
- Resolved issue with max-width slider being disabled even when a custom max-width was set in frontmatter
2828
- Addressed background color preventing banner from showing in reading mode for some themes
2929

30-
<a href="https://www.youtube.com/watch?v=VWS1efySjZM">
31-
<img src="https://pixel-banner.online/img/pixel-banner-truck.jpg" alt="Pixel Banner" style="max-width: 400px;">
32-
</a>
30+
<a href="https://www.youtube.com/watch?v=VWS1efySjZM">
31+
<img src="https://pixel-banner.online/img/pixel-banner-transparent-bg.png" alt="Pixel Banner" style="max-width: 400px;">
32+
</a>

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "pexels-banner",
33
"name": "Pixel Banner",
4-
"version": "3.4.5",
4+
"version": "3.5.0",
55
"minAppVersion": "1.6.0",
66
"description": "Enhance your notes with customizable banner images, including AI-generated designs and a curated store of downloadable banners. Transform your workspace with visually stunning headers that add context, improve aesthetics, and take your note-taking beyond the ordinary.",
77
"author": "Justin Parker (eQui\\\\ Labs)",

src/modal/modals/iconImageSelectionModal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export class IconImageSelectionModal extends Modal {
115115
width: var(--dialog-max-width);
116116
max-width: 1100px;
117117
min-height: 50vh;
118+
max-height: 95vh;
118119
}
119120
120121
.pixel-banner-image-select-modal .pixel-banner-image-delete {

src/modal/modals/selectPixelBannerModal.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ export class SelectPixelBannerModal extends Modal {
208208
const aiButton = bannerSourceButtons.createEl('button', {
209209
cls: 'pixel-banner-source-button pixel-banner-api-dependent',
210210
attr: {
211+
id: 'pixel-banner-plus-ai-button',
211212
style: `
212213
position: relative;
213214
`
@@ -245,6 +246,7 @@ export class SelectPixelBannerModal extends Modal {
245246
const storeButton = bannerSourceButtons.createEl('button', {
246247
cls: 'pixel-banner-source-button pixel-banner-api-dependent',
247248
attr: {
249+
id: 'pixel-banner-plus-store-button',
248250
style: `
249251
position: relative;
250252
`
@@ -638,6 +640,19 @@ export class SelectPixelBannerModal extends Modal {
638640
// Connection Status
639641
const isConnected = this.plugin.pixelBannerPlusEnabled;
640642
const pixelBannerPlusServerOnline = this.plugin.pixelBannerPlusServerOnline;
643+
644+
if (!isConnected) {
645+
const aiButton = document.getElementById('pixel-banner-plus-ai-button');
646+
const storeButton = document.getElementById('pixel-banner-plus-store-button');
647+
648+
aiButton.disabled = true;
649+
aiButton.classList.add('pixel-banner-button-disabled');
650+
aiButton.title = "You need an authorize Pixel Banner Plus account to use this feature";
651+
652+
storeButton.disabled = true;
653+
storeButton.classList.add('pixel-banner-button-disabled');
654+
storeButton.title = "You need an authorize Pixel Banner Plus account to use this feature";
655+
}
641656

642657
// Always show server offline message if isOnline is false or server is actually offline
643658
const statusText = (!isOnline || !pixelBannerPlusServerOnline)

src/modal/modals/targetPositionModal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ export class TargetPositionModal extends Modal {
17511751
cls: 'banner-icon-rotate-slider',
17521752
attr: {
17531753
min: '0',
1754-
max: '365',
1754+
max: '360',
17551755
step: '5',
17561756
value: this.currentBannerIconRotate,
17571757
style: `

0 commit comments

Comments
 (0)