Skip to content

Commit d2a2399

Browse files
authored
Merge pull request #217 from jparkerweb/develop
v3.4.2
2 parents 4591ba3 + 6fb0de2 commit d2a2399

File tree

6 files changed

+56
-5
lines changed

6 files changed

+56
-5
lines changed

CHANGELOG.md

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

55
## 🎉 What's New
6+
### v3.4.2 - 2025-04-23
7+
#### 📦 Updated
8+
- Added an example section to the `3rd Party API Settings` tab for clarity
9+
- Minor General Setting tab formatting improvements
10+
611
### v3.4.1 - 2025-04-22
712
#### ✨ Added
813
- Added `Banner Fade` slider control to the Targeting & Positioning UI

UPDATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
</a>
44

55
## 🎉 What's New
6+
### v3.4.2 - 2025-04-23
7+
#### 📦 Updated
8+
- Added an example section to the `3rd Party API Settings` tab for clarity
9+
- Minor General Setting tab formatting improvements
10+
611
### v3.4.1 - 2025-04-22
712
#### ✨ Added
813
- Added `Banner Fade` slider control to the Targeting & Positioning UI

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.1",
4+
"version": "3.4.2",
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/settings/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const DEFAULT_SETTINGS = {
1818
numberOfImages: 10,
1919
defaultKeywords: 'nature, abstract, landscape, technology, art, cityscape, wildlife, ocean, mountains, forest, space, architecture, food, travel, science, music, sports, fashion, business, education, health, culture, history, weather, transportation, industry, people, animals, plants, patterns',
2020
xPosition: 50,
21-
yPosition: 75,
21+
yPosition: 60,
2222
customBannerField: ['banner'],
2323
customXPositionField: ['banner-x, x'],
2424
customYPositionField: ['banner-y, y'],

src/settings/tabs/settingsTabAPISettings.js

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function random20characters() {
7171
export function createAPISettings(containerEl, plugin) {
7272
// section callout
7373
const calloutEl = containerEl.createEl('div', { cls: 'tab-callout' });
74-
calloutEl.createEl('div', { text: '🌐 Optionally select which 3rd party API provider to use for fetching images. See the Examples tab for more information on referencing images by URL or local image. You can use any combination of API keyword, URL, or local image between notes.' });
74+
calloutEl.createEl('div', { text: '🌐 Optionally select which 3rd party API provider to use for displaying random images.' });
7575

7676
// Add API provider radio buttons
7777
new Setting(containerEl)
@@ -255,6 +255,47 @@ export function createAPISettings(containerEl, plugin) {
255255
new Notice(isValid ? '✅ Unsplash API key is valid!' : '❌ Invalid Unsplash API key');
256256
}));
257257

258+
259+
// Usage Example
260+
const exampleContainer = containerEl.createEl('div', {
261+
attr: {
262+
style: `
263+
margin: 20px 0;
264+
padding: 20px;
265+
border: 1px solid var(--modal-border-color);
266+
border-radius: 7px;
267+
`
268+
}
269+
})
270+
271+
exampleContainer.createEl('div', { text: 'Usage Example',
272+
attr: {
273+
style: `
274+
font-weight: bold;
275+
font-size: 1.1rem;
276+
color: var(--color-accent);
277+
`
278+
}
279+
});
280+
281+
exampleContainer.createEl('div', { text: 'Add keyword(s) to the banner frontmatter to display random API images matching the keywords.',
282+
attr: {
283+
style: `
284+
margin: 10px 0;
285+
`
286+
}
287+
});
288+
289+
exampleContainer.createEl('img', {
290+
attr: {
291+
src: 'https://raw.githubusercontent.com/jparkerweb/pixel-banner/refs/heads/main/img/3rd-party-apis-example.jpg',
292+
style: `
293+
width: auto;
294+
max-width: 100%;
295+
`
296+
}
297+
});
298+
258299
// Images section
259300
new Setting(containerEl)
260301
.setName('Images')

src/settings/tabs/settingsTabGeneral.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function createGeneralSettings(containerEl, plugin) {
1212

1313
// Add the showSelectImageIcon setting
1414
const showSelectImageIconSetting = new Setting(SelectImageSettingsGroup)
15-
.setName('Show Select Image Icon')
15+
.setName('Show Pixel Banner Flag')
1616
.setDesc('Show the banner selector icon in the top-left corner of notes')
1717
.addToggle(toggle => toggle
1818
.setValue(plugin.settings.showSelectImageIcon)
@@ -38,7 +38,7 @@ export function createGeneralSettings(containerEl, plugin) {
3838

3939
// Add the selectImageIconOpacity setting
4040
const selectImageIconOpacitySetting = new Setting(SelectImageSettingsGroup)
41-
.setName('Pixel Banner Icon Opacity')
41+
.setName('Pixel Banner Flag Opacity')
4242
.setDesc('Set the opacity of the banner selector icon in the top-left corner (0-100)')
4343
.addSlider(slider => slider
4444
.setLimits(0, 100, 1)

0 commit comments

Comments
 (0)